We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84485c1 commit 1cd8dd9Copy full SHA for 1cd8dd9
substrateinterface/base.py
@@ -2355,7 +2355,8 @@ def decode_block(block_data, block_data_hash=None):
2355
2356
engine = bytes(log_digest[1][0])
2357
# Retrieve validator set
2358
- validator_set = self.query("Session", "Validators", block_hash=block_hash)
+ parent_hash = block_data['header']['parentHash']
2359
+ validator_set = self.query("Session", "Validators", block_hash=parent_hash)
2360
2361
if engine == b'BABE':
2362
babe_predigest = self.runtime_config.create_scale_object(
0 commit comments