Browse Source

Test

pull/4/head
jl777 5 years ago
parent
commit
3de50a250b
  1. 2
      src/cc/musig.cpp

2
src/cc/musig.cpp

@ -706,7 +706,7 @@ UniValue musig_spend(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
std::vector<uint8_t> musig64(ParseHex(musigstr));
CScript scriptPubKey;
scriptPubKey.resize(strlen(scriptstr)/2);
decode_hex((uint8_t *)scriptPubKey.data(),strlen(scriptstr)/2,scriptstr);
decode_hex(&scriptPubKey[0],strlen(scriptstr)/2,scriptstr);
if ( myGetTransaction(prevhash,vintx,hashBlock) != 0 && (numvouts= vintx.vout.size()) > 1 )
{
vout.nValue = vintx.vout[0].nValue - txfee;

Loading…
Cancel
Save