AcalaNetwork / chopsticks

Create parallel reality of your Substrate network.
Apache License 2.0
138 stars 84 forks source link

Chopstick crash on latest Moonbeam runtime (RT2500) #407

Closed crystalin closed 1 year ago

crystalin commented 1 year ago

(RT2500 is only on alphanet, not yet on Moonriver/Moonbeam)

Command: node_modules/.bin/ts-node packages/chopsticks/src/cli -c configs/moonbase-alpha.yml

This is forking Moonbase Alphanet (RT2500). Sending a transaction (transfer from Alith to Balthazar on PolkadotJs) fails with:

A node of the proof has an invalid format: InvalidHeaderBits

Here is the stack trace if needed:

rejected (txpool.js:6)
processTicksAndRejections (node:internal/process/task_queues:95)
Promise.then (async)
step (txpool.js:7)
(anonymous) (txpool.js:8)
__awaiter (txpool.js:4)
_TxPool_buildBlockIfNeeded (txpool.js:184)
(anonymous) (txpool.js:124)
(anonymous) (txpool.js:8)
__awaiter (txpool.js:4)
buildBlockWithParams (txpool.js:119)
(anonymous) (txpool.js:145)
(anonymous) (txpool.js:8)
__awaiter (txpool.js:4)
buildBlock (txpool.js:129)
invokeFunc (lodash.js:10401)
trailingEdge (lodash.js:10450)
timerExpired (lodash.js:10438)
listOnTimeout (node:internal/timers:573)
processTimers (node:internal/timers:514)
Timeout (async)
init (node:internal/inspector_async_hook:25)
emitInitNative (node:internal/async_hooks:202)
emitInitScript (node:internal/async_hooks:505)
initAsyncResource (node:internal/timers:160)
Timeout (node:internal/timers:194)
setTimeout (node:timers:164)
setTimeout (lodash.js:6710)
leadingEdge (lodash.js:10409)
debounced (lodash.js:10478)
_TxPool_maybeBuildBlock (txpool.js:174)
(anonymous) (txpool.js:94)
fulfilled (txpool.js:5)
processTicksAndRejections (node:internal/process/task_queues:95)
Promise.then (async)
step (txpool.js:7)
(anonymous) (txpool.js:8)
__awaiter (txpool.js:4)
submitExtrinsic (txpool.js:91)
(anonymous) (index.js:232)
fulfilled (index.js:5)
processTicksAndRejections (node:internal/process/task_queues:95)
Promise.then (async)
step (index.js:7)
(anonymous) (index.js:8)
__awaiter (index.js:4)
submitExtrinsic (index.js:229)
author_submitAndWatchExtrinsic (author.ts:51)
(anonymous) (index.ts:35)
(anonymous) (server.ts:129)
emit (node:events:514)
emit (node:domain:489)
receiverOnMessage (websocket.js:1184)
emit (node:events:514)
emit (node:domain:489)
dataMessage (receiver.js:541)
getData (receiver.js:459)
startLoop (receiver.js:158)
_write (receiver.js:84)
writeOrBuffer (node:internal/streams/writable:399)
_write (node:internal/streams/writable:340)
Writable.write (node:internal/streams/writable:344)
socketOnData (websocket.js:1278)
emit (node:events:514)
emit (node:domain:489)
addChunk (node:internal/streams/readable:343)
readableAddChunk (node:internal/streams/readable:316)
Readable.push (node:internal/streams/readable:253)
onStreamRead (node:internal/stream_base_commons:190)
callbackTrampoline (node:internal/async_hooks:130)
TCPWRAP (async)
init (node:internal/inspector_async_hook:25)
emitInitNative (node:internal/async_hooks:202)
xlc commented 1 year ago

Can you provide a script to reproduce the error? I tried a few balances.transferKeepAlive and it is running fine.

crystalin commented 1 year ago

Thank you @xlc I just retried and it works now. I suspect it might have been an issue with polkadotjs api