diff options
author | Andrew Chow <achow101-github@achow101.com> | 2018-07-20 18:24:16 -0700 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2019-02-16 00:04:27 -0500 |
commit | 08f749c9147a5f3fdbbd880e0974b97084429002 (patch) | |
tree | b54ee7d58a907acbe39af79fd2e8d226a2b520fe /src/psbt.h | |
parent | 7344a7b9984b99882e136efc8ad48fb31740df93 (diff) |
Implement joinpsbts RPC and tests
Adds a joinpsbts RPC which combines multiple distinct PSBTs into
one PSBT.
Diffstat (limited to 'src/psbt.h')
-rw-r--r-- | src/psbt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/psbt.h b/src/psbt.h index e18790322b..982fb803d5 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -389,6 +389,8 @@ struct PartiallySignedTransaction * same actual Bitcoin transaction.) Returns true if the merge succeeded, false otherwise. */ NODISCARD bool Merge(const PartiallySignedTransaction& psbt); bool IsSane() const; + bool AddInput(const CTxIn& txin, PSBTInput& psbtin); + bool AddOutput(const CTxOut& txout, const PSBTOutput& psbtout); PartiallySignedTransaction() {} PartiallySignedTransaction(const PartiallySignedTransaction& psbt_in) : tx(psbt_in.tx), inputs(psbt_in.inputs), outputs(psbt_in.outputs), unknown(psbt_in.unknown) {} explicit PartiallySignedTransaction(const CMutableTransaction& tx); |