1
0
Fork 0
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:
cryptozoidberg 2024-01-16 20:02:00 +01:00
parent f7c928e3a2
commit b1974eb24f
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -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)
}
}