Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

services/horizon: Support new CAP-21 transaction conditions #4297

Merged
merged 22 commits into from
Mar 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use text instead of varchar, to avoid future migrations
  • Loading branch information
Paul Bellamy committed Mar 23, 2022
commit 4574288d92676f95a3c6cdc4c70e432c5d3377e3
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
-- +migrate Up

-- CAP-40 signed payload strkeys can be 165 characters long, see
-- strkey/main.go:maxEncodedSize
-- strkey/main.go:maxEncodedSize. But we use text here, so we don't need to
-- adjust it *ever again*.
paulbellamy marked this conversation as resolved.
Show resolved Hide resolved
ALTER TABLE accounts_signers
ALTER COLUMN signer TYPE character varying(165);
ALTER COLUMN signer TYPE text;

-- +migrate Down
ALTER TABLE accounts_signers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ALTER TABLE history_transactions ADD ledger_bounds int8range;
ALTER TABLE history_transactions ADD min_account_sequence bigint;
ALTER TABLE history_transactions ADD min_account_sequence_age bigint;
ALTER TABLE history_transactions ADD min_account_sequence_ledger_gap bigint;
ALTER TABLE history_transactions ADD extra_signers character varying(165)[];
ALTER TABLE history_transactions ADD extra_signers text[];

-- +migrate Down
ALTER TABLE history_transactions DROP ledger_bounds;
Expand Down