mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 18:02:54 +01:00
Reduce parallelism when fetches txs in mempool for bitcoind backend (#4257)
This commit is contained in:
parent
3d86276902
commit
10157d108f
@ -389,7 +389,7 @@ object BitcoindRpcBackendUtil extends Logging {
|
||||
{
|
||||
if (processing.compareAndSet(false, true)) {
|
||||
logger.debug("Polling bitcoind for mempool")
|
||||
val numParallelism = Runtime.getRuntime.availableProcessors() * 2
|
||||
val numParallelism = Runtime.getRuntime.availableProcessors()
|
||||
|
||||
//don't want to execute these in parallel
|
||||
val processTxFlow = Sink.foreachAsync[Transaction](1)(processTx)
|
||||
|
Loading…
Reference in New Issue
Block a user