Added regtest

This commit is contained in:
Vivek Teega 2022-09-12 13:55:19 +05:30
parent 823cee2d50
commit da5c5143ba

View File

@ -19,9 +19,12 @@ function TxController(node, translateAddresses) {
if (this.node.network === 'livenet') { if (this.node.network === 'livenet') {
this._network = 'main'; this._network = 'main';
} }
if (this._network === 'regtest') { if (this._network === 'testnet') {
this._network = 'testnet'; this._network = 'testnet';
} }
if (this._network === 'regtest') {
this._network = 'regtest';
}
} }
TxController.prototype.show = function(req, res) { TxController.prototype.show = function(req, res) {