Skip to content

[QA] add multisig rpc tests#5958

Merged
laanwj merged 1 commit intobitcoin:masterfrom
jonasschnelli:2015/04/multisig_rpc_tests
May 7, 2015
Merged

[QA] add multisig rpc tests#5958
laanwj merged 1 commit intobitcoin:masterfrom
jonasschnelli:2015/04/multisig_rpc_tests

Conversation

@jonasschnelli
Copy link
Copy Markdown
Contributor

Wrote this during some educational tests. Could also be useful for others trying to get more into multisig.
And tests will always help to improve maintainability.

@gavinandresen
Copy link
Copy Markdown
Contributor

Tested ACK: more tests is good.

RE: having a 2-of-3 count as spendable: WAAAY back when I implemented P2SH support to the wallet I decided that the safest thing to do would be to only count as spendable outputs for which you had ALL of the keys.

The double-spend / conflicting transaction code is much better now, so I'm not worried any more, and would be in favor of changing to counting any output for which you have enough keys to fully sign count as spendable (assuming we have good regression tests like this one to go along with that change, of course).

@jgarzik
Copy link
Copy Markdown
Contributor

jgarzik commented Apr 5, 2015

ut ACK

@jgarzik jgarzik added the Tests label Apr 5, 2015
@jonasschnelli jonasschnelli force-pushed the 2015/04/multisig_rpc_tests branch from a96e3bc to 0b3c554 Compare May 2, 2015 09:35
@jonasschnelli
Copy link
Copy Markdown
Contributor Author

Rebased and adapted setgenerate() to .generate().
Hope for a quick merge.

@jonasschnelli jonasschnelli force-pushed the 2015/04/multisig_rpc_tests branch 3 times, most recently from 71cec13 to 1f5edf1 Compare May 7, 2015 07:55
@paveljanik
Copy link
Copy Markdown
Contributor

utACK. Please fix the typo in the commit message (mutlisig).

@jonasschnelli jonasschnelli force-pushed the 2015/04/multisig_rpc_tests branch from 1f5edf1 to 231072f Compare May 7, 2015 09:05
@jonasschnelli jonasschnelli changed the title [QA] add mutlisig rpc tests [QA] add multisig rpc tests May 7, 2015
@jonasschnelli
Copy link
Copy Markdown
Contributor Author

@paveljanik: fixed. Thanks @paveljanik!

@laanwj laanwj merged commit 231072f into bitcoin:master May 7, 2015
laanwj added a commit that referenced this pull request May 7, 2015
231072f [QA] add multisig rpc tests (Jonas Schnelli)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants