aboutsummaryrefslogtreecommitdiff
path: root/src/script/sign.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-12-01 10:00:04 +0100
committerWladimir J. van der Laan <[email protected]>2015-12-01 10:22:14 +0100
commit327291af02d05e09188713d882bf68ac708c1077 (patch)
treefd6e45cfb3d11beb185c3d1da556a075c924b165 /src/script/sign.cpp
parentMerge pull request #7096 (diff)
parentPrevector type (diff)
downloaddiscoin-327291af02d05e09188713d882bf68ac708c1077.tar.xz
discoin-327291af02d05e09188713d882bf68ac708c1077.zip
Merge pull request #6914
114b581 Prevector type (Pieter Wuille)
Diffstat (limited to 'src/script/sign.cpp')
-rw-r--r--src/script/sign.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/sign.cpp b/src/script/sign.cpp
index 8b43183b6..90f557fc6 100644
--- a/src/script/sign.cpp
+++ b/src/script/sign.cpp
@@ -16,7 +16,7 @@
using namespace std;
-typedef vector<unsigned char> valtype;
+typedef std::vector<unsigned char> valtype;
TransactionSignatureCreator::TransactionSignatureCreator(const CKeyStore* keystoreIn, const CTransaction* txToIn, unsigned int nInIn, int nHashTypeIn) : BaseSignatureCreator(keystoreIn), txTo(txToIn), nIn(nInIn), nHashType(nHashTypeIn), checker(txTo, nIn) {}
@@ -118,7 +118,7 @@ bool ProduceSignature(const BaseSignatureCreator& creator, const CScript& fromPu
bool fSolved =
SignStep(creator, subscript, scriptSig, subType) && subType != TX_SCRIPTHASH;
// Append serialized subscript whether or not it is completely signed:
- scriptSig << static_cast<valtype>(subscript);
+ scriptSig << valtype(subscript.begin(), subscript.end());
if (!fSolved) return false;
}