From da5c5143ba5565e7269d880e19ad46f7d6f6a142 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Mon, 12 Sep 2022 13:55:19 +0530 Subject: [PATCH] Added regtest --- lib/transactions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/transactions.js b/lib/transactions.js index 0cb5ae8..765069d 100644 --- a/lib/transactions.js +++ b/lib/transactions.js @@ -19,9 +19,12 @@ function TxController(node, translateAddresses) { if (this.node.network === 'livenet') { this._network = 'main'; } - if (this._network === 'regtest') { + if (this._network === 'testnet') { this._network = 'testnet'; } + if (this._network === 'regtest') { + this._network = 'regtest'; + } } TxController.prototype.show = function(req, res) {