mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Check amendment block status and update w/ ledgers:
Check and modify amendment blocked status with each new ledger (provided by @wilsonianb). Honor blocked status in certain RPC commands and when deciding whether to propose/validate. Fixes: RIPD-1479 Fixes: RIPD-1447 Release Notes ------------- This resolves an issue whereby an amendment blocked server would still serve some RPC requests that are unreliable in blocked state and would continue to publish validations.
This commit is contained in:
@@ -934,9 +934,12 @@ RCLConsensus::peerProposal(
|
||||
bool
|
||||
RCLConsensus::Adaptor::preStartRound(RCLCxLedger const & prevLgr)
|
||||
{
|
||||
// We have a key, and we have some idea what the ledger is
|
||||
// We have a key, we have some idea what the ledger is, and we are not
|
||||
// amendment blocked
|
||||
validating_ =
|
||||
!app_.getOPs().isNeedNetworkLedger() && (valPublic_.size() != 0);
|
||||
!app_.getOPs().isNeedNetworkLedger() &&
|
||||
(valPublic_.size() != 0) &&
|
||||
!app_.getOPs().isAmendmentBlocked();
|
||||
|
||||
if (validating_)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user