Skip to content

Add populate_backlog rpc command#3860

Merged
pwojcikdev merged 15 commits intonanocurrency:developfrom
pwojcikdev:populate-backlog-rpc
Jul 20, 2022
Merged

Add populate_backlog rpc command#3860
pwojcikdev merged 15 commits intonanocurrency:developfrom
pwojcikdev:populate-backlog-rpc

Conversation

@pwojcikdev
Copy link
Copy Markdown
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 force-pushed the populate-backlog-rpc branch from 97e001c to 78d169c Compare July 15, 2022 18:07
@pwojcikdev pwojcikdev added enhancement rpc Changes related to Remote Procedure Calls labels Jul 18, 2022
@dsiganos dsiganos added the documentation This item indicates the need for or supplies updated or expanded documentation label Jul 19, 2022
@pwojcikdev pwojcikdev force-pushed the populate-backlog-rpc branch from 089f8e5 to 7866883 Compare July 20, 2022 08:25
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>
SmartNodeX added a commit to SmartNodeX/nano-docs that referenced this pull request Sep 16, 2025
* 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>
ethanWalker89 added a commit to ethanWalker89/nano-docs that referenced this pull request Sep 23, 2025
* 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>
crypto-phantomb6u7 added a commit to crypto-phantomb6u7/nano-docs that referenced this pull request Sep 28, 2025
* 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.

3 participants