1
0
Fork 0
forked from lthn/blockchain

send raw tx is disabled during the pre hardfork tx freeze period

This commit is contained in:
sowle 2025-02-14 03:24:45 +01:00
parent 8341f4f31f
commit 38ae547f5c
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -869,6 +869,13 @@ namespace currency
return true;
}
if (m_p2p.get_payload_object().get_core().get_blockchain_storage().is_pre_hardfork_tx_freeze_period_active())
{
LOG_PRINT_L0("[on_send_raw_tx]: pre hardfork freeze period is in effect, sending transactions is not allowed till the next hardfork. Please, try again after the hardfork activation.");
res.status = API_RETURN_CODE_BUSY;
return true;
}
currency_connection_context fake_context = AUTO_VAL_INIT(fake_context);
tx_verification_context tvc = AUTO_VAL_INIT(tvc);
if(!m_core.handle_incoming_tx(tx_blob, tvc, false))