diff --git a/src/script/standard.cpp b/src/script/standard.cpp index 17830539d..dcce3d7c2 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -74,7 +74,13 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector hashBytes = Hash160(scriptPubKey); + vector hashBytes; uint160 x; uint8_t hash20[20],*ptr;; + x = Hash160(scriptPubKey); + memcp(hash20,&x,20); + ptr = hashBytes.data(); + hashBytes.resize(20); + for (i=0; i<20; i++) + ptr[i] = hash20[i]; vSolutionsRet.push_back(hashBytes); return true; }