From f813cb2310ea18c9380073429cbe9ba91318cbe2 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 15 Mar 2015 15:58:56 -0700 Subject: [PATCH] Tolerate LedgerSequence field in pseudo-transactions: This will enable a forthcoming change to prevent pseudo-transactions from reusing a transaction ID --- src/ripple/protocol/impl/TxFormats.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ripple/protocol/impl/TxFormats.cpp b/src/ripple/protocol/impl/TxFormats.cpp index ff6157f32..4aceb6494 100644 --- a/src/ripple/protocol/impl/TxFormats.cpp +++ b/src/ripple/protocol/impl/TxFormats.cpp @@ -66,10 +66,12 @@ TxFormats::TxFormats () ; add ("EnableAmendment", ttAMENDMENT) + << SOElement (sfLedgerSequence, SOE_OPTIONAL) << SOElement (sfAmendment, SOE_REQUIRED) ; add ("SetFee", ttFEE) + << SOElement (sfLedgerSequence, SOE_OPTIONAL) << SOElement (sfBaseFee, SOE_REQUIRED) << SOElement (sfReferenceFeeUnits, SOE_REQUIRED) << SOElement (sfReserveBase, SOE_REQUIRED)