multi: make ZmqReadDeadline configurable

Make the Bitcoind ZMQReadDeadline option configurable.
This commit is contained in:
Elle Mouton
2022-04-28 15:36:45 +02:00
parent 5a08788a05
commit c76d04ef91
4 changed files with 21 additions and 11 deletions

View File

@@ -409,7 +409,7 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) {
ZMQConfig: &chain.ZMQConfig{
ZMQBlockHost: bitcoindMode.ZMQPubRawBlock,
ZMQTxHost: bitcoindMode.ZMQPubRawTx,
ZMQReadDeadline: 5 * time.Second,
ZMQReadDeadline: bitcoindMode.ZMQReadDeadline,
},
Dialer: cfg.Dialer,
PrunedModeMaxPeers: bitcoindMode.PrunedNodeMaxPeers,