-
Notifications
You must be signed in to change notification settings - Fork 154
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
Sidecar fails to decode Bittensor block #1513
Comments
Hello @alpay-falconx ,
So maybe the error is how you build and run the docker image ? When you run the container, can you check that in the console you don't get any errors such as "Sidecar not being able to find the types bundle file" ? If everything runs correctly and it finds the types bundle file then In the console you should see this
and the types_bundle path should be the corresponding one for your setup. |
@Imod7 thanks for the sanity check. I had error level logs which were covering up some errors and also was not running the latest |
Description
Related issue: polkadot-js/apps#11001
When using the typesBundle from this PR, the sidecar fails to decode a block with exstrinsics containing events from the following pallet: balances, subtensorModule.
For example this testnet finney block at height 3,012,511 which contains a
transferKeepAlive
extrinsic fails to get decoded with the following error:Steps to Reproduce
I pasted the typesBundle linked above into the sidecar repo as a json file and set the
SAS_SUBSTRATE_TYPES_BUNDLE
variable in.env.docker
to the path where the json is located (./bittensorTypesBundle.json
). I also set the node url withSAS_SUBSTRATE_URL=wss://test.finney.opentensor.ai:443
which points to the public bittensor node mentioned here https://docs.bittensor.com/bittensor-networks.So the typesBundle file contains this
Given the above I took the following steps:
docker build -t bittensorsidecar .
(run in the repo root)docker run --rm -it --read-only --env-file .env.docker -p 8080:8080 bittensorsidecar
NOTE: The public node is not archival so it is likely this block will not be retrievable therefore this specific case is not reproducable. However this issue can be repro'ed when fetching any block containing extrinsics with pallet
balances
orsubtensorModule
.Expected vs. Actual Behavior
Expected behavior is the block is fully decoded and contains the extrinsic with
transferKeepAlive
events (as you would see when retrieving a block for the polkadot chain).The text was updated successfully, but these errors were encountered: