forked from lthn/blockchain
send raw tx is disabled during the pre hardfork tx freeze period
This commit is contained in:
parent
8341f4f31f
commit
38ae547f5c
1 changed files with 7 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue