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

Add populate_backlog rpc command #3860

Merged
merged 15 commits into from
Jul 20, 2022

Conversation

pwojcikdev
Copy link
Contributor

This PR adds a new rpc command for populating backlog. Populating backlog is a process in the node that scans all accounts , checks for unconfirmed blocks in that account's chain and queues those blocks for confirmation via election scheduler. I found this command to be very useful when setting up local test networks, as by default backlog population is done in 5 minute intervals which is too slow. It is no doubt that a better way for scheduling the backlog population would be a better long term solution, but I think a manual way to trigger that is nevertheless very useful.

Request:
{ "action": "populate_backlog" }

Response:
{ "success": "" }

@pwojcikdev pwojcikdev added enhancement rpc Changes related to Remote Procedure Calls labels Jul 18, 2022
nano/node/backlog_population.cpp Show resolved Hide resolved
nano/node/backlog_population.cpp Outdated Show resolved Hide resolved
nano/node/backlog_population.cpp Outdated Show resolved Hide resolved
nano/node/backlog_population.cpp Outdated Show resolved Hide resolved
@dsiganos dsiganos added the documentation This item indicates the need for or supplies updated or expanded documentation label Jul 19, 2022
dsiganos
dsiganos previously approved these changes Jul 20, 2022
Introduce the class nano::backlog_population::config to hold the
configuration items and not need access to nano::nodeconfig.
dsiganos
dsiganos previously approved these changes Jul 20, 2022
@pwojcikdev pwojcikdev merged commit 82c4c10 into nanocurrency:develop Jul 20, 2022
qwahzi added a commit to qwahzi/nano-docs-1 that referenced this pull request Jan 24, 2023
Adding populate_backlog rpc command documentation, per nanocurrency/nano-node#3860
thsfs added a commit to nanocurrency/nano-docs that referenced this pull request Jan 26, 2023
* Update rpc-protocol.md with populate_backlog command

Adding populate_backlog rpc command documentation, per nanocurrency/nano-node#3860

* Update populate_backlog in rpc-procotol.md

Changing the language from "5 minute intervals" to something more generic, to account for potential interval changes in the node in the future.

Co-authored-by: qwahzi <qwahzi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This item indicates the need for or supplies updated or expanded documentation enhancement rpc Changes related to Remote Procedure Calls
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants