@hyperbridge/sdk 2.8.6 → 2.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8041,7 +8041,15 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
8041
8041
  if (!this.httpApi) {
8042
8042
  const httpUrl = deriveHttpUrl(this.wsEndpoint());
8043
8043
  const api = new ApiPromise({
8044
- provider: new HttpProvider(httpUrl),
8044
+ // Response cache off (third argument, capacity 0). polkadot-js caches every request that
8045
+ // names a block hash — `chain_getHeader(hash)`, `state_getRuntimeVersion(hash)`, storage
8046
+ // reads at a hash — by storing the request promise itself, a rejected one included, for a
8047
+ // 30s TTL that every hit refreshes. The phantom poll retries the block it failed on with
8048
+ // identical parameters every tick, so one reset connection became the same rejection
8049
+ // replayed from memory on every tick, faster than the TTL could lapse, and the node never
8050
+ // saw a second request. The cache bought nothing here anyway: the poll reads each block
8051
+ // once, and `api.at(hash)` reuses registries at the api layer regardless.
8052
+ provider: new HttpProvider(httpUrl, {}, 0),
8045
8053
  typesBundle: HYPERBRIDGE_TYPES_BUNDLE,
8046
8054
  // A second connection to the node the ws api already reported on; its init warnings
8047
8055
  // would just be duplicates.