1
0
Fork 0
forked from lthn/blockchain

wallet: WALLET_TRANSFER_DETAIL_FLAG_MINED_TRANSFER flag is now being set more correctly

This commit is contained in:
sowle 2019-12-10 14:18:22 +03:00
parent 3ccbaca823
commit 2ee199bcbc
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -390,7 +390,7 @@ void wallet2::process_new_transaction(const currency::transaction& tx, uint64_t
if (coin_base_tx)
{
//last out in coinbase tx supposed to be change from coinstake
if (!(i_in_outs == outs.size() - 1 && !is_derived_from_coinbase))
if (!(o == tx.vout.size() - 1 && !is_derived_from_coinbase))
{
td.m_flags |= WALLET_TRANSFER_DETAIL_FLAG_MINED_TRANSFER;
}