Skip to content

Commit

Permalink
Merge pull request #155 from eosnetworkfoundation/elmato/blockchain-p…
Browse files Browse the repository at this point in the history
…lugin-shutdown-on-error

[0.6] blockchain-plugin: Shutdown node on error during block processing
  • Loading branch information
elmato authored Dec 14, 2023
2 parents aeb76e7 + b874e00 commit 94d7678
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blockchain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class blockchain_plugin_impl : std::enable_shared_from_this<blockchain_plugin_im
block_count=0;
}
} catch (const mdbx::exception& ex) {
SILK_CRIT << "CALLBACK ERR1" << std::string(ex.what());
sys::error("evm_blocks_subscription: mdbx::exception, " + std::string(ex.what()));
} catch (const std::exception& ex) {
SILK_CRIT << "CALLBACK ERR2" << std::string(ex.what());
sys::error("evm_blocks_subscription: std::exception:" + std::string(ex.what()));
} catch (...) {
SILK_CRIT << "CALLBACK ERR3";
sys::error("evm_blocks_subscription: unknown exception");
}
}
);
Expand Down

0 comments on commit 94d7678

Please sign in to comment.