Add new post_db_init hook to eosio::chain::controller this is needed for our plugin to add a new index to the chain db at the right time.
Add new enum entry subst_meta_object_type on eosio::chain::types::object_type in order to register a new type of db storable struct.
Make the private wasm_interface_impl shared pointer public in eosio::chain::wasm_interface in order for our plugin to alter code caches.
Changes to subst_plugin:
Refactored all logic related to substitution handling & metadata tracking to its own class substitution_context, and subst_plugin exposes a public api to get the current subst context.
Added automatic manfiest update, that is refetch manifest and reapply substs in a configurable interval.
Additions:
Added new subst_api_plugin which exposes http apis to manage the substitution_context, by default only a status api is started which only offers read only access to nodeos db, if --subst-admin-apis is passed it will enable the full read-write apis that allow substitution metadata changes.
Closes #25 #26
Changes to
leap
core:post_db_init
hook toeosio::chain::controller
this is needed for our plugin to add a new index to the chain db at the right time.subst_meta_object_type
oneosio::chain::types::object_type
in order to register a new type of db storable struct.wasm_interface_impl
shared pointer public ineosio::chain::wasm_interface
in order for our plugin to alter code caches.Changes to
subst_plugin
:substitution_context
, andsubst_plugin
exposes a public api to get the current subst context.Additions:
subst_api_plugin
which exposes http apis to manage thesubstitution_context
, by default only a status api is started which only offers read only access to nodeos db, if--subst-admin-apis
is passed it will enable the full read-write apis that allow substitution metadata changes.