staking miner: less aggresive submissions (#6978)

* staking miner: less aggresive submissions

We have noticed that the staking-miner performs many concurrent RPC calls (more than 256).
Probably because these batch request are getting bigger because the state is growing.

So let's relax this and mine solutions sequentially i.e, mine solution
one solution at the time and not in concurrently.

* add check if self hasn't submitted after mining
This commit is contained in:
Niklas Adolfsson
2023-03-30 16:01:18 +02:00
committed by GitHub
parent 55b4aceb99
commit bf8559a37c
2 changed files with 15 additions and 3 deletions
+1
View File
@@ -131,6 +131,7 @@ impl SharedRpcClient {
.connection_timeout(connection_timeout)
.max_request_body_size(u32::MAX)
.request_timeout(request_timeout)
.max_concurrent_requests(u32::MAX as usize)
.build(uri)
.await?;
Ok(Self(Arc::new(client)))