aboutsummaryrefslogtreecommitdiff
path: root/src/script/sign.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2018-08-07 16:59:53 -0700
committerAndrew Chow <achow101-github@achow101.com>2018-08-09 18:39:56 -0700
commite306be742932d4ea5aca0ea4768e54b2fc3dc6a0 (patch)
tree29777760bfbb33ee879fe33e50297a7ddd7a1bef /src/script/sign.h
parent48b1473c898129a99212e2db36c61cf93625ea17 (diff)
Use 72 byte dummy signatures when watching only inputs may be used
With watching only inputs, we do not know how large the signatures for those inputs will be as their signers may not have implemented 71 byte signatures. Thus we estimate their fees using the 72 byte dummy signature to ensure that we pay enough fees. This only effects fundrawtransaction when includeWatching is true.
Diffstat (limited to 'src/script/sign.h')
-rw-r--r--src/script/sign.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/sign.h b/src/script/sign.h
index 96ef59fbe8..a614d17a9f 100644
--- a/src/script/sign.h
+++ b/src/script/sign.h
@@ -80,8 +80,10 @@ public:
bool CreateSig(const SigningProvider& provider, std::vector<unsigned char>& vchSig, const CKeyID& keyid, const CScript& scriptCode, SigVersion sigversion) const override;
};
-/** A signature creator that just produces 72-byte empty signatures. */
+/** A signature creator that just produces 71-byte empty signatures. */
extern const BaseSignatureCreator& DUMMY_SIGNATURE_CREATOR;
+/** A signature creator that just produces 72-byte empty signatures. */
+extern const BaseSignatureCreator& DUMMY_MAXIMUM_SIGNATURE_CREATOR;
typedef std::pair<CPubKey, std::vector<unsigned char>> SigPair;