EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.29k stars 3.6k forks source link

fix read only nodeos read mode is IRREVERSIBLE terminate block can go futher than LIB 📦 #11015

Closed heifner closed 2 years ago

heifner commented 2 years ago

Change Description

EPE 915

Port the changes in PR https://github.com/EOSIO/eos/pull/10260 into develop-boxed

When running nodeos in irreversible mode read-mode = irreversible, I would expect the terminate-at-block option to stop on an irreversible block not on a non-irreversible block.

The fix is add check in function producer_plugin_impl::start_block_result producer_plugin_impl::start_block() the check read_only and read-mode = irreversible condition

https://github.com/EOSIO/eos/pull/10676

Change Type

Select ONE:

Testing Changes

Select ANY that apply:

Consensus Changes

API Changes

Documentation Additions