Skip to content

Commit 43b35f9

Browse files
authoredMar 6, 2024··
bad proof (#2001)
Signed-off-by: turuslan <[email protected]>
1 parent 3e94f2d commit 43b35f9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
 

‎core/primitives/transaction_validity.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ OUTCOME_CPP_DEFINE_CATEGORY(kagome::primitives, InvalidTransaction::Kind, e) {
2121
return "General error to do with the transaction being outdated (e.g. "
2222
"nonce too low)";
2323
case E::BadProof:
24-
return "General error to do with the transaction's proofs (e.g. "
25-
"signature)";
24+
return "InvalidTransaction::BadProof. General error to do with the transaction's proofs (e.g. signature). May happen if finality lags behind best block (breaks transaction mortality encoding).";
2625
case E::AncientBirthBlock:
2726
return "The transaction birth block is ancient";
2827
case E::ExhaustsResources:

‎core/runtime/wasm_edge/module_factory_impl.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ namespace kagome::runtime::wasm_edge {
115115
host_instance_{host_instance},
116116
executor_{executor},
117117
env_{std::move(env)},
118-
code_hash_{} {
118+
code_hash_{code_hash} {
119119
BOOST_ASSERT(module_ != nullptr);
120120
BOOST_ASSERT(instance_ != nullptr);
121121
BOOST_ASSERT(host_instance_ != nullptr);
@@ -298,8 +298,7 @@ namespace kagome::runtime::wasm_edge {
298298

299299
InstanceEnvironment env = env_factory_->make(memory_provider);
300300

301-
register_host_api(
302-
*env.host_api, module_.raw(), host_instance->raw());
301+
register_host_api(*env.host_api, module_.raw(), host_instance->raw());
303302
WasmEdge_UNWRAP(WasmEdge_ExecutorRegisterImport(
304303
executor_->raw(), store.raw(), host_instance->raw()));
305304

0 commit comments

Comments
 (0)
Please sign in to comment.