-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services/horizon: Support new CAP-21 transaction conditions (#4297)
* Add cap-21 transaction preconditions * Replace xdr.TransactionEnvelope.TimeBounds -> .Preconditions function * Rename Signers -> ExtraSigners for more consistent naming * Store the new precondition fields in the DB * Render the new precondition fields in the resourceadapter * ./gogenerate.sh * use a pointer so omitempty works * more consistent naming * Keep Timebounds helper * PR feedback * tidy transaction precondition helpers * typo fixes * remove dead param * use bigint so we have enough space for a uint32 * use text instead of varchar, to avoid future migrations * Updating scenario sqls * need to load the preconditions from the db * Temporary passing data for v2 preconditions transaction insertion test * Update xdr/transaction_envelope_test.go Co-authored-by: George <[email protected]> * Update services/horizon/internal/db2/history/transaction_ledger_bounds.go Co-authored-by: George <[email protected]> * PR feedback Co-authored-by: George <[email protected]>
- Loading branch information
Showing
29 changed files
with
1,262 additions
and
434 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
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.