[EOSIO/eos] Replay/Resync Optimizations: Low Hanging Fruit (#5130)

wanderingbort commented on this pull request.

> auto guard_pending = fc::make_scoped_exit([this](){
pending.reset();
});

— pending = db.start_undo_session(true);
+ bool skip_db_sessions = !conf.disable_replay_opts && (s == controller::block_status::irreversible);
+ if (!skip_db_sessions) {

I have to revert this change, the branch is what instantiates the inner pending block for that optional. so this change creates a bad access

Добавить комментарий