aboutsummaryrefslogtreecommitdiff
path: root/src/script/sign.h
diff options
context:
space:
mode:
authorGlenn Willen <gwillen@nerdnet.org>2018-10-26 15:30:50 -0700
committerGlenn Willen <gwillen@nerdnet.org>2018-11-01 12:11:24 -0700
commit0f5bda2bd941686620ef0eb90bd7ed973cc7ef73 (patch)
tree2d2d1a663698380947e6c83a335d9e9c1dc4a34e /src/script/sign.h
parent53e6fffb8f5b10f94708d33d667a67cb91c2d09d (diff)
Simplify arguments to SignPSBTInput
Remove redundant arguments to SignPSBTInput -- since it needs several bits of the PartiallySignedTransaction, pass in a reference instead of doing it piecemeal. This saves us having to pass in both a PSBTInput and its index, as well as having to pass in the CTransaction. Also avoid redundantly passing the sighash_type, which is contained in the PSBTInput already.
Diffstat (limited to 'src/script/sign.h')
-rw-r--r--src/script/sign.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/sign.h b/src/script/sign.h
index 35f7630f41..e71f43f96d 100644
--- a/src/script/sign.h
+++ b/src/script/sign.h
@@ -734,7 +734,7 @@ bool SignSignature(const SigningProvider &provider, const CTransaction& txFrom,
bool PSBTInputSigned(PSBTInput& input);
/** Signs a PSBTInput, verifying that all provided data matches what is being signed. */
-bool SignPSBTInput(const SigningProvider& provider, const CMutableTransaction& tx, PSBTInput& input, int index, int sighash = SIGHASH_ALL);
+bool SignPSBTInput(const SigningProvider& provider, PartiallySignedTransaction& psbt, int index, int sighash = SIGHASH_ALL);
/** Extract signature data from a transaction input, and insert it. */
SignatureData DataFromTransaction(const CMutableTransaction& tx, unsigned int nIn, const CTxOut& txout);