diff --git a/lib/btc/BtcRpc.js b/lib/btc/BtcRpc.js index e981ad41..378519ee 100644 --- a/lib/btc/BtcRpc.js +++ b/lib/btc/BtcRpc.js @@ -283,6 +283,10 @@ class BtcRpc { getAccountInfo() { return {}; } + + async stop() { + return {}; + } } module.exports = BtcRpc; diff --git a/lib/eth/EthRpc.js b/lib/eth/EthRpc.js index 90215aff..fa4062ac 100644 --- a/lib/eth/EthRpc.js +++ b/lib/eth/EthRpc.js @@ -313,5 +313,9 @@ class EthRPC { getAccountInfo() { return {}; } + + async stop() { + return {}; + } } module.exports = EthRPC; diff --git a/lib/index.js b/lib/index.js index 40aab3fb..1628eea1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -125,6 +125,10 @@ class CryptoRpcProvider { getAccountInfo(params) { return this.get(params.currency).getAccountInfo(params); } + + stop(params) { + return this.get(params.currency).stop(); + } } module.exports = CryptoRpcProvider; diff --git a/lib/xrp/XrpRpc.js b/lib/xrp/XrpRpc.js index 3e60a63a..f032a98a 100644 --- a/lib/xrp/XrpRpc.js +++ b/lib/xrp/XrpRpc.js @@ -282,6 +282,10 @@ class XrpRpc { throw error; } } + + async stop() { + await this.rpc.disconnect(); + } } module.exports = XrpRpc;