Unverified Commit 4b82bd63 authored by Pavel Ševčík's avatar Pavel Ševčík
Browse files

Increase default bitcoind RPC timeout

parent 66699be6
......@@ -10,9 +10,13 @@ const keys = require('../../keys')[network.key]
const util = require('../util')
const Logger = require('../logger')
/**
* @typedef {import('rpc-bitcoin').RPCIniOptions} RPCIniOptions
*/
/**
* Wrapper for bitcoind rpc client
* @param {RPCIniOptions} options
*/
const createRpcClient = (options = {}) => {
return new RPCClient({
......@@ -20,6 +24,7 @@ const createRpcClient = (options = {}) => {
port: keys.bitcoind.rpc.port,
user: keys.bitcoind.rpc.user,
pass: keys.bitcoind.rpc.pass,
timeout: 2 * 60 * 1000, // 2 minutes
...options
})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment