Skip to content

Conversation

@MayRosenbaum
Copy link
Contributor

@MayRosenbaum MayRosenbaum commented Oct 21, 2025

issue #205

@MayRosenbaum MayRosenbaum force-pushed the consensus_boot_from_last_block branch from 7b6e28c to 2d309f0 Compare October 21, 2025 18:21
@MayRosenbaum MayRosenbaum changed the title Consensus boot from last block Consensus boot from last block [WIP] Oct 21, 2025
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
Copy link
Contributor

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)
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log info number

@MayRosenbaum MayRosenbaum changed the title Consensus boot from last block [WIP] Consensus boot from last block Oct 22, 2025
Signed-off-by: May.Buzaglo <[email protected]>
@MayRosenbaum MayRosenbaum force-pushed the consensus_boot_from_last_block branch from ead9180 to 8d39be7 Compare October 23, 2025 08:40
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

Successfully merging this pull request may close these issues.

2 participants