Decker's fix for watch only addresses

This commit is contained in:
jl777
2018-07-07 20:31:28 -11:00
parent 2f83c3e638
commit e3124af1da

View File

@@ -4625,7 +4625,7 @@ int32_t komodo_staked(CMutableTransaction &txNew,uint32_t nBits,uint32_t *blockt
continue; continue;
} }
CAmount nValue = out.tx->vout[out.i].nValue; CAmount nValue = out.tx->vout[out.i].nValue;
if ( nValue < COIN ) if ( nValue < COIN || !out.fSpendable )
continue; continue;
const CScript& pk = out.tx->vout[out.i].scriptPubKey; const CScript& pk = out.tx->vout[out.i].scriptPubKey;
//entry.push_back(Pair("generated", out.tx->IsCoinBase())); //entry.push_back(Pair("generated", out.tx->IsCoinBase()));