-
Notifications
You must be signed in to change notification settings - Fork 458
Create BlockProcessorV0 which handles the genesis block - Closes #5278 #5457
Create BlockProcessorV0 which handles the genesis block - Closes #5278 #5457
Conversation
@shuse2 @ManuGowda Please review the PR, meanwhile I will fix the tests. |
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.
LGTM, just one minor thing
@@ -123,7 +123,14 @@ export const validateGenesisBlock = ( | |||
accountAddresses.push(account.address); | |||
totalBalance += BigInt(account.balance); | |||
|
|||
if (account.asset.delegate.username !== '') { | |||
// TODO: Find better way to specify generic type to make delgate asset required |
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.
Agree, this should be more generic and ideally genesis block shouldn't know about the asset field
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.
LGTM, minor comments
…-sdk into 5278-genesis-block-processor
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.
LGTM, just one minor point regards to the genesis block processing
What was the problem?
This PR resolves #5278
How was it solved?
Created new block processor for version zero.
How was it tested?