forked from lthn/blockchain
mined ballance calc in wallet done via block reward(in connection to pos coinbase joined to 1 output)
This commit is contained in:
parent
f7c928e3a2
commit
b1974eb24f
1 changed files with 1 additions and 1 deletions
|
|
@ -3348,7 +3348,7 @@ bool wallet2::balance(std::unordered_map<crypto::public_key, wallet_public::asse
|
|||
if (is_transfer_unlocked(td))
|
||||
e.unlocked += td.amount();
|
||||
if (td.m_flags & WALLET_TRANSFER_DETAIL_FLAG_MINED_TRANSFER)
|
||||
mined += td.amount();
|
||||
mined += CURRENCY_BLOCK_REWARD; //this code would work only for cases where block reward is full. For reduced block rewards might need more flexible code (TODO)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue