1
0
mirror of https://github.com/GOSTSec/gostexplr synced 2025-01-29 16:04:32 +00:00

Keep-alive with wallet

This commit is contained in:
xcps 2019-03-17 00:44:43 +05:00 committed by R4SAS
parent 4ad36abdc2
commit 548ca590d5

View File

@ -7,6 +7,9 @@ var rpcConfig = require('../config/config')['rpc'];
const {username, password, hostname, port} = rpcConfig;
const keepAliveAgent = new http.Agent({ keepAlive: true });
let sync_sql = '',
coolstrs = [];
@ -18,6 +21,7 @@ function MakeRPCRequest(postData) {
auth: `${username}:${password}`,
path: '/',
method: 'POST',
agent: keepAliveAgent,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': Buffer.byteLength(postData)