Ensure fee change transactions have a unique transaction ID

Include the ledger sequence number in fee change transactions to ensure
each such transaction has a unique transaction ID.

We tolerate the absence of a ledger sequence in fee change transactions so
that past fee change transactions remain parseable. Since no live amendment
transactions have yet happened, there is no need to tolerate an absent
ledger sequence there.
This commit is contained in:
David Schwartz
2016-02-16 10:05:57 -08:00
committed by Nik Bougalis
parent d721d35a2d
commit 25589bacea
2 changed files with 4 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ TxFormats::TxFormats ()
SOElement (sfOfferSequence, SOE_REQUIRED);
add ("EnableAmendment", ttAMENDMENT)
<< SOElement (sfLedgerSequence, SOE_OPTIONAL)
<< SOElement (sfLedgerSequence, SOE_REQUIRED)
<< SOElement (sfAmendment, SOE_REQUIRED)
;