Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pausing to find oracle #1181

Open
wkshare opened this issue Aug 8, 2024 · 2 comments
Open

Pausing to find oracle #1181

wkshare opened this issue Aug 8, 2024 · 2 comments

Comments

@wkshare
Copy link

wkshare commented Aug 8, 2024

I added two args:

function range(start: number, end: number): number[] {
  return Array.from({ length: end - start + 1 }, (_, i) => start + i);
}
const driftClient = new DriftClient({
  connection: provider.connection,
  wallet: provider.wallet,
  programID: driftPublicKey,
  accountSubscription: {
    type: "polling",
    accountLoader: bulkAccountLoader,
  },
  marketLookupTable: new PublicKey(sdkConfig.MARKET_LOOKUP_TABLE),
  perpMarketIndexes: range(0, 35),   #added this######arg 1
  spotMarketIndexes: range(0, 24),   #added this######arg 2
});

now my script display the logs sometimes.

Pausing to find oracle BAtFj4kQttZRVep3UZS2aZRDixkGYgWsbqTBVDbnSsPF failed
Pausing to find oracle 486kr3pmFPfTsS4aZgcsQ7kS4i9rjMsYYZup6HQNSTT4 failed
Pausing to find oracle 6bEp2MiyoiiiDxcVqE8rUHQWwHirXUXtKfAEATTVqNzT failed
Pausing to find oracle GqkCu7CbsPVz1H6W6AAHuReqbJckYG59TXz7Y5HDV7hr failed
Pausing to find oracle Ffq6ACJ17NAgaxC6ocfMzVXL3K61qxB2xHg6WUawWPfP failed
Pausing to find oracle 6x6KfE7nY2xoLCRSMPT1u83wQ5fpGXoKNBqFjrCwzsCQ failed
Pausing to find oracle AwqRpfJ36jnSZQykyL1jYY35mhMteeEAjh7o8LveRQin failed
Pausing to find oracle 8TQztfGcNjHGRusX4ejQQtPZs3Ypczt9jWF6pkgQMqUX failed
Pausing to find oracle 4HbitGsdcFbtFotmYscikQFAAKJ3nYx4t7sV7fTvsk8U failed
Pausing to find oracle 13jpjpVyU5hGpjsZ4HzCcmBo85wze4N8Au7U6cC3GMip failed
Pausing to find oracle 23KmX7SNikmUr2axSCy6Zer7XPBnvmVcASALnDGqBVRR failed
Pausing to find oracle H3pn43tkNvsG5z3qzmERguSvKoyHZvvY6VPmNrJqiW5X failed
Pausing to find oracle 4FG7UyPkszGvcSVCCKaLSZsArGjyxitwhJeQhYu2bFTS failed
Pausing to find oracle BAtFj4kQttZRVep3UZS2aZRDixkGYgWsbqTBVDbnSsPF failed
Pausing to find oracle 486kr3pmFPfTsS4aZgcsQ7kS4i9rjMsYYZup6HQNSTT4 failed
Pausing to find oracle 6bEp2MiyoiiiDxcVqE8rUHQWwHirXUXtKfAEATTVqNzT failed
Pausing to find oracle 79EWaCYU9jiQN8SbvVzGFAhAncUZYp3PjNg7KxmN5cLE failed
Pausing to find oracle GojbSnJuPdKDT1ZuHuAM5t9oz6bxTo1xhUKpTua2F72p failed
Pausing to find oracle 5Wf1WrXLeNJghU8WRo5odvwAjpjSSF4THbjdxbKmwVsi failed
Pausing to find oracle 8ocfAdqVRnzvfdubQaTxar4Kz5HJhNbPNmkLxswqiHUD failed
Pausing to find oracle 23y63pHVwKfYSCDFdiGRaGbTYWoyr8UzhUE7zukyf6gK failed
Pausing to find oracle Dk8eWjuQHMbxJAwB9Sg7pXQPH4kgbg8qZGcUrWcD9gTm failed
Pausing to find oracle HBordkz5YxjzNURmKUY4vfEYFG9fZyZNeNF1VDLMoemT failed
Pausing to find oracle CLxofhtzvLiErpn25wvUzpZXEqBhuZ6WMEckEraxyuGt failed
Pausing to find oracle C9Zi2Y3Mt6Zt6pcFvobN3N29HcrzKujPAPBDDTDRcUa2 failed
Pausing to find oracle 8TQztfGcNjHGRusX4ejQQtPZs3Ypczt9jWF6pkgQMqUX failed
Pausing to find oracle 9757epAjXWCWQH98kyK9vzgehd1XDVEf7joNHUaKk3iV failed
Pausing to find oracle 9b1rcK9RUPK2vAqwNYCYEG34gUVpS2WGs2YCZZy2X5Tb failed
Pausing to find oracle BfXcyDWJmYADa5eZD7gySSDd6giqgjvm7xsAhQ239SUD failed
Pausing to find oracle Gwvob7yoLMgQRVWjScCRyQFMsgpRKrSAYisYEyjDJwEp failed
Pausing to find oracle 4CyhPqyVK3UQHFWhEpk91Aw4WbBsN3JtyosXH6zjoRqG failed
Pausing to find oracle GqkCu7CbsPVz1H6W6AAHuReqbJckYG59TXz7Y5HDV7hr failed
Pausing to find oracle C6LHPUrgjrgo5eNUitC8raNEdEttfoRhmqdJ3BHVBJhi failed
Pausing to find oracle Ffq6ACJ17NAgaxC6ocfMzVXL3K61qxB2xHg6WUawWPfP failed
Pausing to find oracle EVyoxFo5jWpv1vV7p6KVjDWwVqtTqvrZ4JMFkieVkVsD failed
Pausing to find oracle FgBGHNex4urrBmNbSj8ntNQDGqeHcWewKtkvL6JE6dEX failed
Pausing to find oracle 6x6KfE7nY2xoLCRSMPT1u83wQ5fpGXoKNBqFjrCwzsCQ failed
Pausing to find oracle AwqRpfJ36jnSZQykyL1jYY35mhMteeEAjh7o8LveRQin failed
Pausing to find oracle hnefGsC8hJi8MBajpRSkUY97wJmLoBQYXaHkz3nmw1z failed
Pausing to find oracle 5ZPtwR9QpBLcZQVMnVURuYBmZMu1qQrBcA9Gutc5eKN3 failed
Pausing to find oracle 4HbitGsdcFbtFotmYscikQFAAKJ3nYx4t7sV7fTvsk8U failed
Pausing to find oracle 7aqj2wH1BH8XT3QQ3MWtvt3My7RAGf5Stm3vx5fiysJz failed
Pausing to find oracle 13jpjpVyU5hGpjsZ4HzCcmBo85wze4N8Au7U6cC3GMip failed
Pausing to find oracle 23KmX7SNikmUr2axSCy6Zer7XPBnvmVcASALnDGqBVRR failed
Pausing to find oracle 4FG7UyPkszGvcSVCCKaLSZsArGjyxitwhJeQhYu2bFTS failed
Pausing to find oracle HxM66CFwGwrvfTFFkvvA8N3CnKX6m2obzameYWDaSSdA failed
Pausing to find oracle HVwBCaR4GEB1fHrp7xCTzbYoZXL3V8b1aek2swPrmGx3 failed
Pausing to find oracle H3pn43tkNvsG5z3qzmERguSvKoyHZvvY6VPmNrJqiW5X failed
Pausing to find oracle F47c7aJgYkfKXQ9gzrJaEpsNwUKHprysregTWXrtYLFp failed
Pausing to find oracle En8hkHLkRe9d9DraYmBTrus518BvmVH448YcvmrFM6Ce failed
Pausing to find oracle FAq7hqjn7FWGXKDwJHzsXGgBcydGTcK4kziJpAGWXjDb failed
Pausing to find oracle BekJ3P5G3iFeC97sXHuKnUHofCFj9Sbo7uyF2fkKwvit failed
Pausing to find oracle 9QE1P5EfzthYDgoQ9oPeTByCEKaRJeZbVVqKJfgU9iau failed
Pausing to find oracle BmDWPMsytWmYkh9n6o7m79eVshVYf2B5GVaqQ2EWKnGH failed
Pausing to find oracle B7RUYg2zF6UdUSHv2RmpnriPVJccYWojgFydNS1NY5F8 failed
Pausing to find oracle HJ9K9AamqVMp86j3uQgpA1tdJNRAwfVuL75FD9P3QBrn failed
Pausing to find oracle BPTQgHV4y2x4jvKPPkkd9aS8jY7L3DGZBwjEZC8Vm27o failed
Pausing to find oracle 5Mb11e5rt1Sp6A286B145E4TmgMzsM2UX9nCF2vas5bs failed
Pausing to find oracle HpMoKp3TCd3QT4MWYUKk2zCBwmhr5Df45fB6wdxYqEeh failed
Pausing to find oracle BXej5boX2nWudwAfZQedo212B9XJxhjTeeF3GbCwXmYa failed
Pausing to find oracle BRuNuzLAPHHGSSVAJPKMcmJMdgDfrekvnSxkxPDGdeqp failed
@cxp-13
Copy link

cxp-13 commented Aug 17, 2024

  1. try to replace perpMarketIndexes to mustIncludePerpMarketIndexes and spotMarketIndexes to mustIncludeSpotMarketIndexes

That is the define on code of them.

mustIncludePerpMarketIndexes = new Set<number>();
mustIncludeSpotMarketIndexes = new Set<number>();

If your function arguments need to be of type Set, but you're generating arrays, you can make sure they fit by converting the arrays to Set

const mustIncludePerpMarketIndexes = new Set<number>(range(0, 35));
const mustIncludeSpotMarketIndexes = new Set<number>(range(0, 24));

@crispheaney
Copy link
Member

what is the polling frequency of your bulk account loaders?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants