forked from XRPLF/rippled
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use STEitherAmount as a variant of STAmount and STMPTAmount (#30)
* Use STEitherAmount as a variant of STAmount and MPTAmount * Split AMOUNT fields into two types SF_AMOUNT (don't support MPT) and SF_EITHER_AMOUNT (support MPT). Add TypedFieldAmount to declare Amount fields. Extend STObject with getters/setters for SF_AMOUNT fields. * Remove STBase and CountedObject inheritance from STAmount and STMPTAmount * Consolidate errors. Remove redundant checks. * Add invalid MPT amount check in STTx::passesLocalChecks() to provide one single check for all tx. Update unit-tests. Fix payment for unauthorized holder * Fix serialization. Extend unit-tests. * Refactor Payment and Clawback transactors to have separate functions for MPT/IOU handling since there is little overlap between them. Remove the check for DeletableAccounts * Fix Linux build * Address reviewer's feedback * Replace MPT:pair<uint32,AccountID> with MPTID:uint192 * Remove SFieldMPT * Replated TypedFieldAmount with generic TypedFieldVariant to handle STEitherAmount * Update comments * Fix clang-format * Fix clang-format
- Loading branch information
1 parent
9578002
commit d2925bd
Showing
99 changed files
with
3,351 additions
and
2,019 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.