fixed full reward zone buffer on fork transition to match between daemon and wallet
This commit is contained in:
@@ -11796,8 +11796,8 @@ uint64_t wallet2::get_upper_transaction_weight_limit()
|
||||
{
|
||||
if (m_upper_transaction_weight_limit > 0)
|
||||
return m_upper_transaction_weight_limit;
|
||||
uint64_t full_reward_zone = use_fork_rules(2, 10) ? CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V5 : CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1;
|
||||
if (use_fork_rules(2, 10))
|
||||
uint64_t full_reward_zone = use_fork_rules(2, 0) ? CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V5 : CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1;
|
||||
if (use_fork_rules(2, 0))
|
||||
return full_reward_zone / 2 - CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE;
|
||||
else
|
||||
return full_reward_zone - CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user