mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-27 14:05:50 +00:00
Track escrow in recipient's owner directory (RIPD-1523):
Introduce "fix1523" which corrects a minor technical flaw with the original implementation of the escrow feature. When creating an escrow, the entry would only be tracked in the owner directory of the sender; as a result, an escrow recipient would not be able to detect incoming escrows without monitoring the ledger in real-time for transactions of interest or without the sender communicating this information out of band. With the fix in place, escrows where the recipient differs from the sender will be listed in the recipient's owner directory as well.
This commit is contained in:
@@ -98,7 +98,8 @@ LedgerFormats::LedgerFormats ()
|
||||
SOElement (sfDestinationTag, SOE_OPTIONAL) <<
|
||||
SOElement (sfOwnerNode, SOE_REQUIRED) <<
|
||||
SOElement (sfPreviousTxnID, SOE_REQUIRED) <<
|
||||
SOElement (sfPreviousTxnLgrSeq, SOE_REQUIRED);
|
||||
SOElement (sfPreviousTxnLgrSeq, SOE_REQUIRED) <<
|
||||
SOElement (sfDestinationNode, SOE_OPTIONAL);
|
||||
|
||||
add ("LedgerHashes", ltLEDGER_HASHES)
|
||||
<< SOElement (sfFirstLedgerSequence, SOE_OPTIONAL) // Remove if we do a ledger restart
|
||||
|
||||
Reference in New Issue
Block a user