-
Notifications
You must be signed in to change notification settings - Fork 198
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
Fix wrong genesis block save #2191
Conversation
Release 2020.07.26
Release 2020.07.27
Release 2020.07.28 1
Release 2020.07.29 1
Release 2020.07.29
@@ -577,11 +577,6 @@ func prepareGenesisBlock(args *processComponentsFactoryArgs, genesisBlocks map[u | |||
if errNotCritical != nil { | |||
log.Error("error storing genesis shardblock", "error", errNotCritical.Error()) | |||
} | |||
hdrNonceHashDataUnit := dataRetriever.ShardHdrNonceHashDataUnit + dataRetriever.UnitType(genesisBlock.GetShardID()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this storage exists in each shard but only for self shard. In metachain it is created for every shard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But we do not need the shard genesis block stored inside the nonce-hash unit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, in this case you can move line 565 inside first if..else statement after line 570
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add for each manual testing scenario the following:
a) Prerequisites
b) Test steps
c) Expected results
d) Actual results
If there are parameters involved in testing what are the parameters boundaries and the expected results and actual results for testing inside boundaries, on boundaries and outside boundaries.
The base branch was changed.
Manual testing procedure:
shard header (nonce-hash)
after a few epochs.