diff --git a/lib/ain-rs-exports/src/lib.rs b/lib/ain-rs-exports/src/lib.rs index e90838576f6..6a103343522 100644 --- a/lib/ain-rs-exports/src/lib.rs +++ b/lib/ain-rs-exports/src/lib.rs @@ -20,7 +20,7 @@ mod ffi { fn evm_get_context() -> u64; fn evm_discard_context(context: u64); fn evm_queue_tx(context: u64, raw_tx: &str) -> Result; - fn evm_finalise( + fn evm_finalize( context: u64, update_state: bool, miner_address: [u8; 20], @@ -104,7 +104,7 @@ fn evm_queue_tx(context: u64, raw_tx: &str) -> Result> { } use rlp::Encodable; -fn evm_finalise( +fn evm_finalize( context: u64, update_state: bool, miner_address: [u8; 20], diff --git a/src/miner.cpp b/src/miner.cpp index 064c3ff7691..7e96033a315 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -245,7 +245,7 @@ std::unique_ptr BlockAssembler::CreateNewBlock(const CScript& sc // TODO Get failed TXs and try to restore to mempool std::array dummyAddress{}; - const auto rustHeader = evm_finalise(evmContext, false, dummyAddress); + const auto rustHeader = evm_finalize(evmContext, false, dummyAddress); std::vector evmHeader{}; evmHeader.resize(rustHeader.size()); diff --git a/src/validation.cpp b/src/validation.cpp index c6857845e95..88e3b4029d6 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2873,7 +2873,7 @@ bool CChainState::ConnectBlock(const CBlock& block, CValidationState& state, CBl std::copy(minter.begin(), minter.end(), minerAddress.begin()); } - evm_finalise(evmContext, true, minerAddress); + evm_finalize(evmContext, true, minerAddress); } auto &checkpoints = chainparams.Checkpoints().mapCheckpoints;