Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subst plugin for upstream #30

Closed
wants to merge 48 commits into from
Closed

Subst plugin for upstream #30

wants to merge 48 commits into from

Conversation

guilledk
Copy link
Collaborator

@guilledk guilledk commented Apr 11, 2024

Internal nodeos changes:

This are changes that I had to make outside plugins/ in order to make substitution functionality work.

  • libraries/chain/controller.cpp: Add optional post_db_init std::function based hook, this is needed in order to enable substitution before replay, but after intial db setup, might need to consider a way to allow multiple plugins to register a hook?

  • libraries/chain/include/eosio/chain/controller.hpp: Make mutable_db a public method, need to get a non const ref to the main chainbase::database in order to perform subsitutions.

  • libraries/chain/include/eosio/chain/types.hpp: Add custom subst_meta_type to internal nodeos db types to store our metadata.

  • libraries/chain/include/eosio/chain/wasm_interface.hpp: Ugly change, need to make the wasm_interface_impl pointer public in order to clear code caches after updating a substitution.

  • libraries/libfc/include/fc/network/http/http_client.hpp & libraries/libfc/src/network/http/http_client.cpp: Add http GET methods.

  • plugins/CMakeLists.txt: Add subst_plugin and subst_plugin_api build.

  • programs/nodeos/CMakeLists.txt: Add subst_plugin & subst_plugin_api to nodeos link step.

guilledk added 30 commits April 10, 2024 22:32
Drop all jit exectuion machinery in favour of just swaping wasms in place
@guilledk guilledk self-assigned this Apr 11, 2024
…ary vm field from wasm iface, probably left from 5.0 change i didnt have in 4.0.4 splugin
@guilledk guilledk force-pushed the subst_plugin_for_upstream branch from f7ac196 to ebf7a44 Compare April 12, 2024 16:57
@poplexity poplexity marked this pull request as ready for review April 12, 2024 18:16
@guilledk guilledk closed this Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant