You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
When using endpoint setHashOnionUsage to import used hash onion parameters from another node, the new node should either :
throw if the parameters are not valid for eg. current block height is less than the height of the last used hash onion
update the last used hash onion correctly after successfully importing the parameters and then generating a block using the respective next hash onion in the series
Actual behavior
If the current block height of the new node is less than the height of the last used hash onion set by setHashOnionUsage the parameters height & count returned by endpoint getHashOnionUsage remain the same after multiple rounds until the block height reaches or surpasses the height of the last used hash onion even though the validator keeps forging blocks and receiving rewards by using the remaining hash onion in the series.
Steps to reproduce
Run node1 for multiple rounds with valid seed reveal data for atleast 1 validator.
Import hash onion data using endpoint getHashOnionSeeds and used hash onion data using endpoint getHashOnionUsage from node1 for the particular validator
Start node2 from scratch.
Set seed, count & distance for the same validator from the imported hash onion data using endpoint setHashOnion
Set height & count (used) for the same validator from the import used hash onion data using endpoint setHashOnionUsage
Observe the hash onion usage of the particular validator as it forges blocks from beginning and until after the block height of the node surpasses the height of the last used hash onion initially set.
Which version(s) does this affect? (Environment, OS, etc...)
development
The text was updated successfully, but these errors were encountered:
Expected behavior
When using endpoint
setHashOnionUsage
to import used hash onion parameters from another node, the new node should either :Actual behavior
If the current block height of the new node is less than the height of the last used hash onion set by
setHashOnionUsage
the parametersheight
&count
returned by endpointgetHashOnionUsage
remain the same after multiple rounds until the block height reaches or surpasses the height of the last used hash onion even though the validator keeps forging blocks and receiving rewards by using the remaining hash onion in the series.Steps to reproduce
getHashOnionSeeds
and used hash onion data using endpointgetHashOnionUsage
from node1 for the particular validatorsetHashOnion
setHashOnionUsage
Which version(s) does this affect? (Environment, OS, etc...)
development
The text was updated successfully, but these errors were encountered: