Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
RoninDojo
samourai-dojo
Commits
4b82bd63
Unverified
Commit
4b82bd63
authored
Oct 08, 2021
by
Pavel Ševčík
Browse files
Increase default bitcoind RPC timeout
parent
66699be6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
lib/bitcoind-rpc/rpc-client.js
lib/bitcoind-rpc/rpc-client.js
+5
-0
No files found.
lib/bitcoind-rpc/rpc-client.js
View file @
4b82bd63
...
...
@@ -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
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment