Substrateinterface block info fetching bug #4975
Labels
I2-bug
The node fails to follow expected behavior.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
I currently face issues with fetching block information via polkadot websocket endpoint (using substrateinterface lib in Python) for blocks with specific transaction type, here are few samples:
Block number : 21473809
Transaction type : convictionvoting (remove_vote)
Error text: ValueError: Index '20'' not present in Enum type mapping
Block number : 21473810
Transaction type : balances (transfer_allow_death)
Error text: RemainingScaleByteEmptyException: Decoding - Current offset: 108 / length: 148
I would be grateful for any help
Steps to reproduce
ENDPOINT= "wss://rpc.polkadot.io"
endpoint = substrateinterface.SubstrateInterface(url=ENDPOINT)
block_info = endpoint.get_block(block_number=21473810)
block_info
The text was updated successfully, but these errors were encountered: