mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 20:50:26 -04:00
blockchain sync: reduce disk writes from 2 to 1 per tx
This commit is contained in:
parent
d0118f4778
commit
008ba966da
29 changed files with 1186 additions and 1636 deletions
|
@ -1318,7 +1318,7 @@ namespace cryptonote
|
|||
if (!skip_validation)
|
||||
{
|
||||
tx_verification_context tvc{};
|
||||
if(!m_core.handle_incoming_tx({tx_blob, crypto::null_hash}, tvc, (req.do_not_relay ? relay_method::none : relay_method::local), false) || tvc.m_verifivation_failed)
|
||||
if(!m_core.handle_incoming_tx(tx_blob, tvc, (req.do_not_relay ? relay_method::none : relay_method::local), false) || tvc.m_verifivation_failed)
|
||||
{
|
||||
res.status = "Failed";
|
||||
std::string reason = "";
|
||||
|
@ -3497,8 +3497,6 @@ namespace cryptonote
|
|||
bool core_rpc_server::on_flush_cache(const COMMAND_RPC_FLUSH_CACHE::request& req, COMMAND_RPC_FLUSH_CACHE::response& res, epee::json_rpc::error& error_resp, const connection_context *ctx)
|
||||
{
|
||||
RPC_TRACKER(flush_cache);
|
||||
if (req.bad_txs)
|
||||
m_core.flush_bad_txs_cache();
|
||||
if (req.bad_blocks)
|
||||
m_core.flush_invalid_blocks();
|
||||
res.status = CORE_RPC_STATUS_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue