You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Tari Universe startup is slower than necessary because P2Pool only begins loading blocks after the base node has fully synced. This results in additional delays, as P2Pool must complete its sync before pool mining can start.
To improve startup time, P2Pool should be allowed to start while the base node is still syncing. The primary dependency for P2Pool and the hash rate calculation benchmark is a block template from the base node. However, the base node can always provide a template while still syncing—setting the initial_sync_achieved flag to false in the gRPC request. At this stage, we are not concerned with mining actual blocks but only benchmarking the node.
By default, miners and the merge mining proxy will not mine when initial_sync_achieved is false. However, this restriction can be overridden by setting wait_for_initial_sync_at_startup = false.
In brief:
Change the startup sequence to take the benchmark for p2p tiers before the node is synced
Initiate p2pool as soon as the benchmark has been made, in parallel with the node sync
Concerns
The key question is whether anything else would prevent P2Pool from starting earlier when this setting is disabled. This needs to be confirmed.
Expectations
A lot of time is spent both in Node block sync, as well as p2pool connecting. If we can perform these tasks simultaneously we save the user time upfront, and our app starts quicker.
Assuming we find no additional problems with this idea, once complete we would like an un-scientific estimate of time saved. Let's compare how long setup takes on a machine with a known good connection against setup time when these two tasks are made parallel.
The text was updated successfully, but these errors were encountered:
Description
Currently, Tari Universe startup is slower than necessary because P2Pool only begins loading blocks after the base node has fully synced. This results in additional delays, as P2Pool must complete its sync before pool mining can start.
To improve startup time, P2Pool should be allowed to start while the base node is still syncing. The primary dependency for P2Pool and the hash rate calculation benchmark is a block template from the base node. However, the base node can always provide a template while still syncing—setting the
initial_sync_achieved
flag to false in the gRPC request. At this stage, we are not concerned with mining actual blocks but only benchmarking the node.By default, miners and the merge mining proxy will not mine when
initial_sync_achieved
is false. However, this restriction can be overridden by settingwait_for_initial_sync_at_startup = false
.In brief:
Concerns
The key question is whether anything else would prevent P2Pool from starting earlier when this setting is disabled. This needs to be confirmed.
Expectations
A lot of time is spent both in Node block sync, as well as p2pool connecting. If we can perform these tasks simultaneously we save the user time upfront, and our app starts quicker.
Assuming we find no additional problems with this idea, once complete we would like an un-scientific estimate of time saved. Let's compare how long setup takes on a machine with a known good connection against setup time when these two tasks are made parallel.
The text was updated successfully, but these errors were encountered: