-
Notifications
You must be signed in to change notification settings - Fork 9
Consensus boot from last block #309
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
base: main
Are you sure you want to change the base?
Consensus boot from last block #309
Conversation
7b6e28c to
2d309f0
Compare
config/config.go
Outdated
| return nil, nil, fmt.Errorf("failed to create consensus ledger instance: %s", err) | ||
| } | ||
| if consensusLedger.Height() > 0 { | ||
| lastBlockIdx := consensusLedger.Height() - 1 |
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.
add log info to print the height?
config/config.go
Outdated
| lastBlockIdx := consensusLedger.Height() - 1 | ||
| lastBlock, err := consensusLedger.RetrieveBlockByNumber(lastBlockIdx) | ||
| if err != nil { | ||
| return nil, nil, fmt.Errorf("failed to retrieve last block from consensus ledger: %s", err) |
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.
add the number
config/config.go
Outdated
| return nil, nil, fmt.Errorf("failed to deserialize decision header from last block: %s", err) | ||
| } | ||
|
|
||
| decisionNumOfLastConfigBlock := header.DecisionNumOfLastConfigBlock |
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.
log info number
Signed-off-by: May.Buzaglo <[email protected]>
Signed-off-by: May.Buzaglo <[email protected]>
Signed-off-by: May.Buzaglo <[email protected]>
ead9180 to
8d39be7
Compare
issue #205