[EOSIO/eos] fix for stale read-write api reference. (#5237)

changes to the read-write api meant for async calls we were holding a stale reference. Reverted to the captured and therfore live object and moved the assert to a validate call which is called just-in-time
You can view, comment on, or merge this pull request online at:

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

— Commit Summary —

* changes to the read-write api meant for async calls we were holding a stale reference. Reverted to the captured and therfore live object and moved the assert to a validate call which is called just-in-time

— File Changes —

M plugins/chain_api_plugin/chain_api_plugin.cpp (8)
M plugins/chain_plugin/chain_plugin.cpp (3)
M plugins/chain_plugin/include/eosio/chain_plugin/chain_plugin.hpp (3)

— Patch Links —

https://github.com/EOSIO/eos/pull/5237.patch
https://github.com/EOSIO/eos/pull/5237.diff

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