Skip to content

Commit 21b9f6d

Browse files
Merge branch 'develop' into pratik/Add-sanitizers-to-CI-builds
2 parents 977a087 + f28ba57 commit 21b9f6d

File tree

4 files changed

+16
-21
lines changed

4 files changed

+16
-21
lines changed

include/xrpl/protocol/detail/features.macro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ XRPL_FEATURE(CheckCashMakesTrustLine, Supported::yes, VoteBehavior::DefaultNo
6868
XRPL_FEATURE(FlowSortStrands, Supported::yes, VoteBehavior::DefaultYes)
6969
XRPL_FEATURE(TicketBatch, Supported::yes, VoteBehavior::DefaultYes)
7070
XRPL_FEATURE(NegativeUNL, Supported::yes, VoteBehavior::DefaultYes)
71-
XRPL_FEATURE(HardenedValidations, Supported::yes, VoteBehavior::DefaultYes)
7271
XRPL_FEATURE(RequireFullyCanonicalSig, Supported::yes, VoteBehavior::DefaultYes)
7372
XRPL_FEATURE(DeletableAccounts, Supported::yes, VoteBehavior::DefaultYes)
7473
XRPL_FIX (PayChanRecipientOwnerDir, Supported::yes, VoteBehavior::DefaultYes)
@@ -125,6 +124,7 @@ XRPL_RETIRE(Escrow)
125124
XRPL_RETIRE(EnforceInvariants)
126125
XRPL_RETIRE(FeeEscalation)
127126
XRPL_RETIRE(FlowCross)
127+
XRPL_RETIRE(HardenedValidations)
128128
XRPL_RETIRE(ImmediateOfferKilled)
129129
XRPL_RETIRE(MultiSign)
130130
XRPL_RETIRE(NonFungibleTokensV1_1)

src/libxrpl/protocol/STValidation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ STValidation::validationFormat()
5151
{sfSigningPubKey, soeREQUIRED},
5252
{sfSignature, soeREQUIRED},
5353
{sfConsensusHash, soeOPTIONAL},
54-
// featureHardenedValidations
5554
{sfCookie, soeDEFAULT},
5655
{sfValidatedHash, soeOPTIONAL},
5756
{sfServerVersion, soeOPTIONAL},

src/xrpld/app/consensus/RCLConsensus.cpp

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -831,21 +831,17 @@ RCLConsensus::Adaptor::validate(
831831
if (proposing)
832832
v.setFlag(vfFullValidation);
833833

834-
if (ledger.ledger_->rules().enabled(featureHardenedValidations))
835-
{
836-
// Attest to the hash of what we consider to be the last fully
837-
// validated ledger. This may be the hash of the ledger we are
838-
// validating here, and that's fine.
839-
if (auto const vl = ledgerMaster_.getValidatedLedger())
840-
v.setFieldH256(sfValidatedHash, vl->info().hash);
841-
842-
v.setFieldU64(sfCookie, valCookie_);
843-
844-
// Report our server version every flag ledger:
845-
if (ledger.ledger_->isVotingLedger())
846-
v.setFieldU64(
847-
sfServerVersion, BuildInfo::getEncodedVersion());
848-
}
834+
// Attest to the hash of what we consider to be the last fully
835+
// validated ledger. This may be the hash of the ledger we are
836+
// validating here, and that's fine.
837+
if (auto const vl = ledgerMaster_.getValidatedLedger())
838+
v.setFieldH256(sfValidatedHash, vl->info().hash);
839+
840+
v.setFieldU64(sfCookie, valCookie_);
841+
842+
// Report our server version every flag ledger:
843+
if (ledger.ledger_->isVotingLedger())
844+
v.setFieldU64(sfServerVersion, BuildInfo::getEncodedVersion());
849845

850846
// Report our load
851847
{

src/xrpld/app/ledger/detail/LedgerMaster.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -993,10 +993,10 @@ LedgerMaster::checkAccept(std::shared_ptr<Ledger const> const& ledger)
993993
// Check if the majority of validators run a higher version rippled
994994
// software. If so print a warning.
995995
//
996-
// Once the HardenedValidations amendment is enabled, validators include
997-
// their rippled software version in the validation messages of every
998-
// (flag - 1) ledger. We wait for one ledger time before checking the
999-
// version information to accumulate more validation messages.
996+
// Validators include their rippled software version in the validation
997+
// messages of every (flag - 1) ledger. We wait for one ledger time
998+
// before checking the version information to accumulate more validation
999+
// messages.
10001000

10011001
auto currentTime = app_.timeKeeper().now();
10021002
bool needPrint = false;

0 commit comments

Comments
 (0)