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 eos-transfers example is run via yarn example eos-transfers, it works. However, is you start modifying values to see demux's difference behaviours, it crashes.
[2019-07-11T16:16:40.446Z] ERROR: demux/32914: Invalid array length
RangeError: Invalid array length
at ObjectActionHandler.rollbackTo (/Users/olivier/projects/demux-js-dfuse/node_modules/demux/examples/eos-transfers/ObjectActionHandler.js:68:26)
at ObjectActionHandler.<anonymous> (/Users/olivier/projects/demux-js-dfuse/node_modules/demux/examples/eos-transfers/node_modules/demux/dist/AbstractActionHandler.js:187:28)
at Generator.next (<anonymous>)
at /Users/olivier/projects/demux-js-dfuse/node_modules/demux/examples/eos-transfers/node_modules/demux/dist/AbstractActionHandler.js:7:71
at new Promise (<anonymous>)
at __awaiter (/Users/olivier/projects/demux-js-dfuse/node_modules/demux/examples/eos-transfers/node_modules/demux/dist/AbstractActionHandler.js:3:12)
at ObjectActionHandler.handleRollback (/Users/olivier/projects/demux-js-dfuse/node_modules/demux/examples/eos-transfers/node_modules/demux/dist/AbstractActionHandler.js:182:16)
at ObjectActionHandler.<anonymous> (/Users/olivier/projects/demux-js-dfuse/node_modules/demux/examples/eos-transfers/node_modules/demux/dist/AbstractActionHandler.js:54:24)
at Generator.next (<anonymous>)
at fulfilled (/Users/olivier/projects/demux-js-dfuse/node_modules/demux/examples/eos-transfers/node_modules/demux/dist/AbstractActionHandler.js:4:58)
It is caused by ObjectActionHandler's rollbackTo trying to create an array with negative length, since latestBlockNumber is 0 (by default), and blockNumber will be something like 68149703.
I'm trying to understand why is a rollback attempted here, maybe you can shed some light on this.
The text was updated successfully, but these errors were encountered:
When the eos-transfers example is run via
yarn example eos-transfers
, it works. However, is you start modifying values to see demux's difference behaviours, it crashes.Changing
startAtBlock
from 50000000 to -1:And changing watch to be in replay mode:
Will crash on the first block with this error:
It is caused by ObjectActionHandler's rollbackTo trying to create an array with negative length, since
latestBlockNumber
is0
(by default), andblockNumber
will be something like68149703
.I'm trying to understand why is a rollback attempted here, maybe you can shed some light on this.
The text was updated successfully, but these errors were encountered: