Browse Source

Test

warmup
jl777 5 years ago
parent
commit
14f86959b4
  1. 4
      src/komodo_nSPV_wallet.h
  2. 2
      src/script/sign.cpp

4
src/komodo_nSPV_wallet.h

@ -241,9 +241,9 @@ bool NSPV_SignTx(CMutableTransaction &mtx,int32_t vini,int64_t utxovalue,const C
if ( ProduceSignature(TransactionSignatureCreator(&keystore,&txNewConst,vini,utxovalue,SIGHASH_ALL),scriptPubKey,sigdata,branchid) != 0 )
{
UpdateTransaction(mtx,vini,sigdata);
fprintf(stderr,"SIG_TXHASH %s vini.%d %.8f\n",SIG_TXHASH.GetHex().c_str(),vini,(double)utxovalue/COIN);
//fprintf(stderr,"SIG_TXHASH %s vini.%d %.8f\n",SIG_TXHASH.GetHex().c_str(),vini,(double)utxovalue/COIN);
return(true);
} else fprintf(stderr,"sigerr SIG_TXHASH %s vini.%d %.8f\n",SIG_TXHASH.GetHex().c_str(),vini,(double)utxovalue/COIN);
} //else fprintf(stderr,"sigerr SIG_TXHASH %s vini.%d %.8f\n",SIG_TXHASH.GetHex().c_str(),vini,(double)utxovalue/COIN);
return(false);
}

2
src/script/sign.cpp

@ -52,7 +52,7 @@ bool TransactionSignatureCreator::CreateSig(std::vector<unsigned char>& vchSig,
key = *pprivKey;
else if (!keystore || !keystore->GetKey(address, key))
{
fprintf(stderr,"keystore error\n");
fprintf(stderr,"size.%d keystore.%p error\n",(int32_t)keystore.size(),keystore);
return false;
}
if (scriptCode.IsPayToCryptoCondition())

Loading…
Cancel
Save