diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 2f54565b..5b3f1c90 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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; }