-
Notifications
You must be signed in to change notification settings - Fork 71
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
Programmable snapshots API #759
Conversation
plugins/producer_plugin/include/eosio/producer_plugin/producer_plugin.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/producer_plugin.hpp
Outdated
Show resolved
Hide resolved
@@ -105,7 +118,11 @@ class producer_plugin : public appbase::plugin<producer_plugin> { | |||
void set_whitelist_blacklist(const whitelist_blacklist& params); | |||
|
|||
integrity_hash_information get_integrity_hash() const; | |||
|
|||
void create_snapshot(next_function<snapshot_information> next); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we going to deprecate create_snapshot
?
plugins/producer_plugin/include/eosio/producer_plugin/producer_plugin.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
Would like see an integration test for this functionality. |
plugins/producer_plugin/include/eosio/producer_plugin/producer_plugin.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_db_json.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_db_json.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
plugins/producer_plugin/include/eosio/producer_plugin/snapshot_scheduler.hpp
Outdated
Show resolved
Hide resolved
@766C6164 Thanks for all the changes! I think this is going to be a very popular feature :-). Lin merged his large PR to main a few minutes ago. Maybe you should merge the latest changes from main (hopefully without too many conflicts), and then I'll do a last check and approve your PR, probably tomorrow morning. |
Thank you so much!!! Really appreciate all your time and effort you put into reviewing this PR! Luckily picked up changes from main with only 3 minor conflicts :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are the first batch. They are not blockers and can be fixed in RC1.
I am continuing reviewing the rest of the code.
This PR relates to #656 issue and introduces new feature - snapshot scheduling API to create, retrieve and delete/modify automated snapshot schedule.
In more details API specification with examples of it's use can be found here:
https://github.com/eosnetworkfoundation/product/blob/main/api-http/proposals/snapshot-api.md
This draft PR includes initial boost tests and will incorporate additional tests currently being finalized.