From d729e3fffa697485624640e8772ddfb845f97f9b Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Sat, 3 Feb 2024 10:59:40 +0100 Subject: [PATCH] attempt tp fox bug with staking --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 96f77c35..49f02bc9 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -4069,7 +4069,7 @@ bool wallet2::is_transfer_okay_for_pos(const transfer_details& tr, bool is_zarca return false; //prevent staking of after-last-pow-coins - if (get_blockchain_current_size() - tr.m_ptx_wallet_info->m_block_height <= m_core_runtime_config.min_coinstake_age) + if (get_blockchain_current_size() - tr.m_ptx_wallet_info->m_block_height <= m_core_runtime_config.min_coinstake_age + 1) return false; if (tr.m_ptx_wallet_info->m_block_height > m_last_pow_block_h)