The problem: virtual ops now accessible only with enabled account_history plugin. So, without account_history get_ops_in_block API call just returns nothing.
So I propose the following thing:
- Virtual ops storage to the database should be handled by separate plugin.
virtual_ops for instance.
- get_ops_in_block becomes a wrapper with the following logic:
- Whether
account_history is disabled, it reads block content using get_block
- Whether
account_history is enabled, it reads block content from account_history database
- Adds virtual ops using
virtual_ops plugin
The problem: virtual ops now accessible only with enabled account_history plugin. So, without account_history
get_ops_in_blockAPI call just returns nothing.So I propose the following thing:
virtual_opsfor instance.account_historyis disabled, it reads block content using get_blockaccount_historyis enabled, it reads block content fromaccount_historydatabasevirtual_opsplugin