-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chain height not updated? #457
Comments
This is the failed assertion https://github.com/subsquid/squid-sdk/blob/85c33df3231d0feb985d5cb8c568c4129cb5d470/util/util-internal-ingest-tools/src/hot.ts#L106 I don't really see anything wrong with Chopsticks. Will ask subsquid team for help. |
Did you manage to get some more insight into this? |
Haven't got an answer from subsquid team. Will followup. |
Hey, @Tbaut , could you post full reproduction instructions here? |
Sure, it's not straight forward unfortunately since it involves many systems. Here is something that's as simple as it gets: Chopsticks
endpoint: wss://rococo-rpc.polkadot.io
mock-signature-host: true
block: 7437969
db: ./db.sqlite
import-storage:
System:
Account:
- - - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- providers: 1
data:
free: '10000000000000000000'
Council:
Members: [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
PhragmenElection:
Members:
- who: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
stake: 1000000000000
deposit: 1000000000000
TechnicalCommittee:
Members: [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
TechnicalMembership:
Members: [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY] And the command npx @acala-network/chopsticks@latest --config ./chopsticks-config.yml SubsquidInstall the squid cli to be able to use npm i -g @subsquid/cli@latest Clone the example repo that indexes Rococo transfers, I changed minor things to point it at Chopsticks, and run it (it's with npm as yarn isn't supported by subsquid)
This will start an indexer pointed at chopsticks and start at the same block height, 7437969, (see the Make a Tx
|
Here is the reason
As a result block number becomes misparsed to a wrong value. |
Nice one, it's now fully working 🎉 thank you so much for your work. |
Hello there, here is my next error. My setup is still the same, still forking rococo at the same block. #7,437,969 and pointing my indexer at it. Then I make a transaction, Chopsticks creates a block, and the indexer fires some rpc at it. Then it fails because it seems that the chain head didn't get updated in Chopsticks.
Here's the log of Chopsticks
Subsquid rpcs and error at the end:
The text was updated successfully, but these errors were encountered: