diff --git a/src/ripple/protocol/SField.h b/src/ripple/protocol/SField.h index 9bfeb33cd1..83205b086a 100644 --- a/src/ripple/protocol/SField.h +++ b/src/ripple/protocol/SField.h @@ -416,6 +416,7 @@ extern SF_U256 const sfAmendment; extern SF_U256 const sfTicketID; extern SF_U256 const sfDigest; extern SF_U256 const sfPayChannel; +extern SF_U256 const sfConsensusHash; // currency amount (common) extern SF_Amount const sfAmount; diff --git a/src/ripple/protocol/impl/SField.cpp b/src/ripple/protocol/impl/SField.cpp index 228d893ef2..691c1bb8da 100644 --- a/src/ripple/protocol/impl/SField.cpp +++ b/src/ripple/protocol/impl/SField.cpp @@ -169,6 +169,7 @@ SF_U256 const sfAmendment = make::one(&sfAmendment, STI_H SF_U256 const sfTicketID = make::one(&sfTicketID, STI_HASH256, 20, "TicketID"); SF_U256 const sfDigest = make::one(&sfDigest, STI_HASH256, 21, "Digest"); SF_U256 const sfPayChannel = make::one(&sfPayChannel, STI_HASH256, 22, "Channel"); +SF_U256 const sfConsensusHash = make::one(&sfConsensusHash, STI_HASH256, 23, "ConsensusHash"); // currency amount (common) SF_Amount const sfAmount = make::one(&sfAmount, STI_AMOUNT, 1, "Amount"); diff --git a/src/ripple/protocol/impl/STValidation.cpp b/src/ripple/protocol/impl/STValidation.cpp index 714a245d7d..c572de4f53 100644 --- a/src/ripple/protocol/impl/STValidation.cpp +++ b/src/ripple/protocol/impl/STValidation.cpp @@ -161,10 +161,11 @@ SOTemplate const& STValidation::getFormat () format.push_back (SOElement (sfSigningTime, SOE_REQUIRED)); format.push_back (SOElement (sfSigningPubKey, SOE_REQUIRED)); format.push_back (SOElement (sfSignature, SOE_OPTIONAL)); + format.push_back (SOElement (sfConsensusHash, SOE_OPTIONAL)); } }; - static FormatHolder holder; + static const FormatHolder holder; return holder.format; }