Merge pull request #735 from jl777/jl777

Decker's fix for watch only addresses
This commit is contained in:
jl777
2018-07-07 20:32:01 -11:00
committed by GitHub

View File

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