Skip to content

R5 test has error #4

@JB273

Description

@JB273

Running test R5 from Jupyter Notebook 6.0.3 gives following error;

Test-R5: Reward given out to block signers sums up to the total block reward
enter the number of blocks you want to test: 10
current block 12393 next block 12394

KeyError Traceback (most recent call last)
in
----> 1 R5_test()

in R5_test()
33 address = i['validator']['address']
34 reward_accumulated = i['lifetime']['reward-accumulated']
---> 35 shard_metrics = i['metrics']['by-shard']
36 validator_reward = 0
37 for by_shard in shard_metrics:

KeyError: 'by-shard'

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions