-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: improve multisign usage of simulate
#5479
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5479 +/- ##
=======================================
Coverage 79.1% 79.1%
=======================================
Files 817 817
Lines 71700 71703 +3
Branches 8257 8241 -16
=======================================
+ Hits 56692 56711 +19
+ Misses 15008 14992 -16
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simple change with good unit test coverage. Ship it :)
@Bronek you may want to re-review, I found another issue when refactoring (you could simulate a transaction that was both single- and multi-"signed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice !
High Level Overview of Change
This PR allows users to submit
simulate
requests from a multisign account without needing to specify the accounts that are doing the multisigning, and fixes an error withsimulate
that allowed double-"signed" (both single-sign and multi-sign public keys are provided) transactions.Context of Change
There was some confusion about how to use
simulate
with a multisign account. ReceivingtefMASTER_DISABLED
was unexpected. This change makes it more intuitive.Type of Change
API Impact
Before / After
Before:
Submitting a
simulate
request for a transaction from an account with the master key disabled and a multisig setup would result intefMASTER_DISABLED
.You can submit a
simulate
request with bothSigningPubKey
andSigners
.After:
Submitting a
simulate
request for a transaction from an account with the master key disabled and a multisig setup ignores signature checking completely (unlessSigners
is provided in any way, shape, or form).Submitting a
simulate
request with bothSigningPubKey
andSigners
results intemINVALID
.Test Plan
Tests were adjusted and CI passes.