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

shard 1 is reporting lower to_sign #4789

Open
sophoah opened this issue Nov 1, 2024 · 2 comments
Open

shard 1 is reporting lower to_sign #4789

sophoah opened this issue Nov 1, 2024 · 2 comments

Comments

@sophoah
Copy link
Contributor

sophoah commented Nov 1, 2024

Describe the bug
Harmony staking protocol should account for 32768 blocks every epoch. However, first epoch of HIP32 (leader rotation) the shards only accounted for 32704 in shard 0 and 29910 for shard 1.

To Reproduce
NA

Expected behavior
During normal operation shard 0 and shard 1 should be equal 32768 or a bit above for shard 1 due to the shard 1 taking few more seconds to learn about the new epoch

Screenshots
shard 0 :
image

shard 1:
image

Environment (please complete the following information):
NA

Additional context
and to add on to the issue we have two shard 1 validator with different to_sign :

@sophoah sophoah changed the title shard 1 and shard 0 are reporting lower to_sign shard 1 is reporting lower to_sign Nov 4, 2024
@sophoah
Copy link
Contributor Author

sophoah commented Nov 4, 2024

Checking today, only shard 1 is impacted. I suspect when I last checked it was too near the new epoch and crosslink were still being processed.

@sophoah
Copy link
Contributor Author

sophoah commented Nov 5, 2024

After developing a script to analyze the block production the issue is because shard 1 is slower to produce blocks

Shard 0 result :

Total blocks processed: 32768 between blocks 65017896 and 65050663
Total time: 65978 seconds
block time: 2.01348876953125 (vs 2s)
Total blocks time should be : 65536s
Total time difference: 442 seconds
Missing blocks production number: 221.0
Number of blocks with time difference above 2s: 755

Shard 1 result:

Total blocks processed: 32768 between blocks 67775889 and 67808656
Total time: 71869 seconds
block time: 2.193267822265625 (vs 2s)
Total blocks time should be : 65536s
Total time difference: 6333 seconds
Missing blocks production number: 3166.5
Number of blocks with time difference above 2s: 3778

with a slower block production time that shard 0, it is expected to have less blocks

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