You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the assetId in compactBlock.gasPrices is set to undefined (not absent, but a present value of undefined), spreading it after attaching an assetId to the object will clobber the assetId which was just set.
But, the idb table requires an asset id for the keypath. So this setGasPrices call will throw an error and prevent sync from progressing.
I believe this is at the root of some of the 'long sync time' issues reported by users.
The text was updated successfully, but these errors were encountered:
Yep worth adjusting the logic. However, no user should be encountering this as all blocks that contain new gas prices have included an assetId.
Edit: Correction, some include assetId and some exclude it. But none explicitly have undefined set as that field (which feels like is consistent with the Typescript type given by bufbuild for the type).
web/packages/query/src/block-processor.ts
Lines 171 to 178 in 69b0837
When the
assetId
incompactBlock.gasPrices
is set toundefined
(not absent, but a present value of undefined), spreading it after attaching anassetId
to the object will clobber theassetId
which was just set.But, the idb table requires an asset id for the keypath. So this
setGasPrices
call will throw an error and prevent sync from progressing.I believe this is at the root of some of the 'long sync time' issues reported by users.
The text was updated successfully, but these errors were encountered: