myGettxout

This commit is contained in:
jl777
2018-08-02 00:04:29 -11:00
parent b0a85aec3f
commit 1f9a4106c5
3 changed files with 16 additions and 1 deletions

View File

@@ -220,7 +220,8 @@ uint64_t AddNormalinputs(CMutableTransaction &mtx,CPubKey mypk,uint64_t total,in
break;
if ( j != mtx.vin.size() )
continue;
if ( GetTransaction(txid,tx,hashBlock,false) != 0 && tx.IsCoinBase() == 0 )
if ( myGettxout(txid,vout) == out.tx->vout[out.i].nValue )
//if ( GetTransaction(txid,tx,hashBlock,false) != 0 && tx.IsCoinBase() == 0 )
{
mtx.vin.push_back(CTxIn(txid,vout,CScript()));
nValue = out.tx->vout[out.i].nValue;