Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[RPC]Move transaction combining from signrawtransaction to new RPC #10571
Conversation
achow101
referenced
this pull request
Jun 10, 2017
Open
[RPC] Split signrawtransaction into multiple distinct RPCs #10570
fanquake
added the
RPC/REST/ZMQ
label
Jun 10, 2017
|
Concept ACK. However, this does break backward compatibility with an undocumented but apparently intentional and tested feature. Does this require deprecation first? |
achow101
referenced
this pull request
Jun 12, 2017
Open
[RPC] Split signrawtransaction into wallet and non-wallet RPC command #10579
|
Concept feedback: combining transactions seems like a utility. Is it possible to add it to bitcoin-tx rather than add a utility-only RPC? |
|
It is not a utility-only RPC. It needs access to the UTXO set. |
laanwj
added this to the
0.15.0
milestone
Jul 6, 2017
jnewbery
referenced
this pull request
Jul 7, 2017
Open
[WIP] [wallet] Remove Wallet dependencies from init.cpp #10762
|
utACK c710eb9 |
morcos
approved these changes
Jul 17, 2017
utACK c710eb9
although at least the documentation in the RPC test should probably be corrected
| + | ||
| + for (unsigned int idx = 0; idx < txs.size(); idx++) { | ||
| + if (!DecodeHexTx(txVariants[idx], txs[idx].get_str(), true)) | ||
| + throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed for tx " + idx); |
| + } | ||
| + | ||
| + if (txVariants.empty()) | ||
| + throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Missing transactions"); |
| + self.sync_all() | ||
| + | ||
| + #THIS IS A INCOMPLETE FEATURE | ||
| + #NODE2 HAS TWO OF THREE KEY AND THE FUNDS SHOULD BE SPENDABLE AND COUNT AT BALANCE CALCULATION |
morcos
Jul 17, 2017
Contributor
This is copy-paste error leading to incorrect documentation of the test. This test is a 2of2 multisig for which node 2 has only 1 key.
|
Nits addressed and rebased. |
|
@achow101 It's better if you address the nits separately from rebasing (was rebasing needed?) otherwise its hard to review just the differential and reACK. |
| + self.sync_all() | ||
| + | ||
| + #THIS IS A INCOMPLETE FEATURE | ||
| + #NODE2 HAS ONE OF TWO KEY AND THE FUNDS SHOULD BE SPENDABLE AND COUNT AT BALANCE CALCULATION |
morcos
Jul 17, 2017
Contributor
This comment is still incorrect. The funds should not be spendable there is nothing incomplete here.
|
@morcos sorry, I rebased out of habit. |
|
Now the comment should be right. |
|
heh thanks... utACK f293282 |
|
utACK 3cd7a5b |
|
utACK 3cd7a5b |
| + | ||
| + for (unsigned int idx = 0; idx < txs.size(); idx++) { | ||
| + if (!DecodeHexTx(txVariants[idx], txs[idx].get_str(), true)) { | ||
| + throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed for tx " + idx); |
laanwj
merged commit 6b4f231
into
bitcoin:master
Jul 20, 2017
1 check passed
laanwj
added a commit
that referenced
this pull request
Jul 20, 2017
|
|
laanwj |
adf170d
|
achow101 commentedJun 10, 2017
Create a combinerawtransaction RPC which accepts a json array of hex raw transactions to combine them into one transaction. Signrawtransaction is changed to no longer combine transactions and only accept one transaction at a time.
The tests have been updated to test this. Tests for the signrawtransaction merge have also been removed.
This is part of #10570