Skip to content
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

A type problem for old blocks. #2

Open
stepanLav opened this issue Dec 21, 2022 · 0 comments
Open

A type problem for old blocks. #2

stepanLav opened this issue Dec 21, 2022 · 0 comments

Comments

@stepanLav
Copy link

Hello!
I'm trying to index your network and have run into a problem indexing old blocks, I get some type errors.
Is there any solution for this?

I tried to solve this problem using the suggestions in this issue:
hicommonwealth#32

But faced with a lot of new type issues.

ERROR failed to fetch events at block 0x276cd73ecaa70de23382ef0d874960d29a10052d2e7c09f452

RPC-CORE: getStorage(key: StorageKey, at?: BlockHash): StorageData:: Unable to decode storage system.events:: createType(Vec<EventRecord>):: decodeU8aVec: failed at 0x00000a066ca233d9b858c90200000000… (index 4/6): {"phase":"Phase","event":"Event","topics":"Vec<Hash>"}:: decodeU8aStruct: failed at 0xa233d9b858c902000000000000000000… on event (index 2/3): {"index":"EventId","data":"Null"}:: findMetaEvent: Unable to find Event with index [162, 51]/[162,51]

After adding an Event type, I have started to get this one:

ERROR failed to fetch events at block 0x258566397b2b19f996d2a37bd2aeb9d050fe5e7ab72b4fb41fcaf60ea66356b8 

RPC-CORE: getStorage(key: StorageKey, at?: BlockHash): StorageData:: Unable to decode storage system.events:: createType(Vec<EventRecord>):: decodeU8aVec: failed at 0x00000000000000102700000101000001… (index 1/3): {"phase":"Phase","event":"Event","topics":"Vec<Hash>"}:: decodeU8aStruct: failed at 0x27000001010000010000000000102700… on topics (index 3/3): Vec<Hash>:: Compact input is > Number.MAX_SAFE_INTEGER

Environment:

"@edgeware/node-types": "^3.6.2-wako",
"@polkadot/api": "^8"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant