mirror of
https://github.com/Xahau/xahaud.git
synced 2026-08-23 08:20:52 +00:00
chore(rng): assert active view source at round start
This commit is contained in:
@@ -2146,6 +2146,14 @@ ConsensusExtensions::onRoundStart(
|
||||
clearRngState();
|
||||
roundPrevLedgerHash_ = prevLedger.ledger_->info().hash;
|
||||
cacheUNLReport(prevLedger.ledger_);
|
||||
auto const validatorView = activeValidatorView();
|
||||
if (validatorView->sourceLedgerHash)
|
||||
{
|
||||
XRPL_ASSERT(
|
||||
*validatorView->sourceLedgerHash == roundPrevLedgerHash_,
|
||||
"ripple::ConsensusExtensions::onRoundStart : "
|
||||
"active view source matches round parent");
|
||||
}
|
||||
setExpectedProposers(std::move(lastProposers));
|
||||
resetSubState();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user