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
hello there,
I'm using with papi the archive_unstable_hashByHeight because it's the only way to get a block hash from a block number. It used to be possible with pjs using api.rpc.getBlockHash(number), and this was working well with Chopstick too.. but it's not the case any more.
Is there any way you can support this? Also I'm actually requesting a block height that has been seen by smoldot, so this block should be found easily.
Here's the error stack, using chopsticks v1.0.0
ERROR (ws): Error handling request: 'ResponseError: Method not found: archive_unstable_hashByHeight
[0] at /home/thib/.npm/_npx/1063adea9feffe0e/node_modules/@acala-network/chopsticks/dist/cjs/rpc/index.js:39:19
[0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[0] at async processRequest (/home/thib/.npm/_npx/1063adea9feffe0e/node_modules/@acala-network/chopsticks/dist/cjs/server.js:225:30)
[0] at async WebSocket. (/home/thib/.npm/_npx/1063adea9feffe0e/node_modules/@acala-network/chopsticks/dist/cjs/server.js:287:30)'
[0] app: "chopsticks"
The text was updated successfully, but these errors were encountered:
archive_unstable_hashByHeight has never existed on Chopsticks RPC. This is just an alias of getBlockHash and has nothing to do with smoldot. If you can please add this alias and make a PR
Thanks for the pointer, I have no idea what I'm talking about indeed! I've never hinted at the fact that Chopstick changed, I say it's not working any more (now with papi, knowing perfectly that this is what made it fail). I'll check how to make aliases and make a pr ;)
hello there,
I'm using with papi the
archive_unstable_hashByHeight
because it's the only way to get a block hash from a block number. It used to be possible with pjs usingapi.rpc.getBlockHash(number)
, and this was working well with Chopstick too.. but it's not the case any more.Is there any way you can support this? Also I'm actually requesting a block height that has been seen by smoldot, so this block should be found easily.
Here's the error stack, using chopsticks v1.0.0
The text was updated successfully, but these errors were encountered: