aboutsummaryrefslogtreecommitdiff
path: root/src/script/sign.h
diff options
context:
space:
mode:
authorBen Woosley <[email protected]>2018-05-17 17:54:18 -0700
committerBen Woosley <[email protected]>2018-05-18 11:08:13 -0700
commit6aa33feadbe11bfa505a80a691d84db966aca134 (patch)
tree0281e621d6958cbb645b5bfa498092687e2492c6 /src/script/sign.h
parentMerge #13236: break circular dependency: random/sync -> util -> random/sync (diff)
downloaddiscoin-6aa33feadbe11bfa505a80a691d84db966aca134.tar.xz
discoin-6aa33feadbe11bfa505a80a691d84db966aca134.zip
Drop UpdateTransaction in favor of UpdateInput
Updating the input explicitly requires the caller to present a mutable input, which more clearly communicates the effects and intent of the method. In most cases, this input is already immediately available and need not be looked up.
Diffstat (limited to 'src/script/sign.h')
-rw-r--r--src/script/sign.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/script/sign.h b/src/script/sign.h
index cf3651c1d..553db0734 100644
--- a/src/script/sign.h
+++ b/src/script/sign.h
@@ -80,7 +80,6 @@ SignatureData CombineSignatures(const CScript& scriptPubKey, const BaseSignature
/** Extract signature data from a transaction, and insert it. */
SignatureData DataFromTransaction(const CMutableTransaction& tx, unsigned int nIn);
-void UpdateTransaction(CMutableTransaction& tx, unsigned int nIn, const SignatureData& data);
void UpdateInput(CTxIn& input, const SignatureData& data);
/* Check whether we know how to sign for an output like this, assuming we