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

Add integration test for extra signers using tx preconditions #4320

Merged
merged 5 commits into from
Apr 11, 2022

Conversation

sreuland
Copy link
Contributor

@sreuland sreuland commented Apr 5, 2022

new integration test case for using the Precondtions.ExtraSigners parameter with a standard AccountID as the additional signer.

@sreuland sreuland requested a review from 2opremio April 5, 2022 05:02
@sreuland sreuland requested a review from 2opremio April 5, 2022 17:41
// has also signed this transaction.
txParams.Preconditions.ExtraSigners = []string{addtlAccounts[0].GetAccountID()}
_, err = itest.SubmitMultiSigTransaction([]*keypair.Full{master, addtlSigners[0]}, txParams)
tt.NoError(err)
Copy link
Contributor

@Shaptic Shaptic Apr 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also make sure that retrieving the tx by ID shows the extra signers in the response, otherwise we aren't really testing Horizon at all besides txsub

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great suggestion, I added round trip asserts on the precond values in each of the test cases, thanks!

@sreuland sreuland changed the title #4305: added integration test for extra signers using tx preconditions Add integration test for extra signers using tx preconditions Apr 6, 2022
@sreuland sreuland requested a review from Shaptic April 6, 2022 17:57
@2opremio
Copy link
Contributor

2opremio commented Apr 8, 2022

I just saw that the verify-range test is failing, I tried to rerun it

@2opremio
Copy link
Contributor

2opremio commented Apr 8, 2022

@sreuland Is this PR ready otherwise? @Shaptic can you take a look if so?

Copy link
Contributor

@Shaptic Shaptic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, LGTM!

@sreuland sreuland merged commit f009dcb into stellar:horizon-protocol-19 Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants