revert "add network regtest" 1f0ae60
This commit is contained in:
		
							parent
							
								
									d179a563e4
								
							
						
					
					
						commit
						71402f21c6
					
				@ -2,7 +2,7 @@ const configFile = require('../mempool-config.json');
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
interface IConfig {
 | 
					interface IConfig {
 | 
				
			||||||
  MEMPOOL: {
 | 
					  MEMPOOL: {
 | 
				
			||||||
    NETWORK: 'mainnet' | 'testnet' | 'signet' | 'regtest' | 'liquid' | 'liquidtestnet';
 | 
					    NETWORK: 'mainnet' | 'testnet' | 'signet' | 'liquid' | 'liquidtestnet';
 | 
				
			||||||
    BACKEND: 'esplora' | 'electrum' | 'none';
 | 
					    BACKEND: 'esplora' | 'electrum' | 'none';
 | 
				
			||||||
    HTTP_PORT: number;
 | 
					    HTTP_PORT: number;
 | 
				
			||||||
    SPAWN_CLUSTER_PROCS: number;
 | 
					    SPAWN_CLUSTER_PROCS: number;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "TESTNET_ENABLED": false,
 | 
					  "TESTNET_ENABLED": false,
 | 
				
			||||||
  "SIGNET_ENABLED": false,
 | 
					  "SIGNET_ENABLED": false,
 | 
				
			||||||
  "REGTEST_ENABLED": false,
 | 
					 | 
				
			||||||
  "LIQUID_ENABLED": false,
 | 
					  "LIQUID_ENABLED": false,
 | 
				
			||||||
  "LIQUID_TESTNET_ENABLED": false,
 | 
					  "LIQUID_TESTNET_ENABLED": false,
 | 
				
			||||||
  "BISQ_ENABLED": false,
 | 
					  "BISQ_ENABLED": false,
 | 
				
			||||||
 | 
				
			|||||||
@ -363,84 +363,6 @@ let routes: Routes = [
 | 
				
			|||||||
      },
 | 
					      },
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: 'regtest',
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: '',
 | 
					 | 
				
			||||||
        component: MasterPageComponent,
 | 
					 | 
				
			||||||
        children: [
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            path: 'tx/push',
 | 
					 | 
				
			||||||
            component: PushTransactionComponent,
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            path: '',
 | 
					 | 
				
			||||||
            component: StartComponent,
 | 
					 | 
				
			||||||
            children: [
 | 
					 | 
				
			||||||
              {
 | 
					 | 
				
			||||||
                path: '',
 | 
					 | 
				
			||||||
                component: DashboardComponent
 | 
					 | 
				
			||||||
              },
 | 
					 | 
				
			||||||
              {
 | 
					 | 
				
			||||||
                path: 'tx/:id',
 | 
					 | 
				
			||||||
                component: TransactionComponent
 | 
					 | 
				
			||||||
              },
 | 
					 | 
				
			||||||
              {
 | 
					 | 
				
			||||||
                path: 'block/:id',
 | 
					 | 
				
			||||||
                component: BlockComponent
 | 
					 | 
				
			||||||
              },
 | 
					 | 
				
			||||||
              {
 | 
					 | 
				
			||||||
                path: 'mempool-block/:id',
 | 
					 | 
				
			||||||
                component: MempoolBlockComponent
 | 
					 | 
				
			||||||
              },
 | 
					 | 
				
			||||||
            ],
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            path: 'blocks',
 | 
					 | 
				
			||||||
            component: LatestBlocksComponent,
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            path: 'graphs',
 | 
					 | 
				
			||||||
            component: StatisticsComponent,
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            path: 'address/:id',
 | 
					 | 
				
			||||||
            children: [],
 | 
					 | 
				
			||||||
            component: AddressComponent
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            path: 'docs/api/:type',
 | 
					 | 
				
			||||||
            component: DocsComponent
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            path: 'docs/api',
 | 
					 | 
				
			||||||
            redirectTo: 'docs/api/rest'
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            path: 'docs',
 | 
					 | 
				
			||||||
            redirectTo: 'docs/api/rest'
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            path: 'api',
 | 
					 | 
				
			||||||
            redirectTo: 'docs/api/rest'
 | 
					 | 
				
			||||||
          },
 | 
					 | 
				
			||||||
        ],
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'tv',
 | 
					 | 
				
			||||||
        component: TelevisionComponent
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'status',
 | 
					 | 
				
			||||||
        component: StatusViewComponent
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: '**',
 | 
					 | 
				
			||||||
        redirectTo: ''
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    path: 'tv',
 | 
					    path: 'tv',
 | 
				
			||||||
    component: TelevisionComponent,
 | 
					    component: TelevisionComponent,
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,6 @@
 | 
				
			|||||||
    <span class="symbol"><ng-template [ngIf]="network === 'liquid'">L-</ng-template>
 | 
					    <span class="symbol"><ng-template [ngIf]="network === 'liquid'">L-</ng-template>
 | 
				
			||||||
    <ng-template [ngIf]="network === 'liquidtestnet'">tL-</ng-template>
 | 
					    <ng-template [ngIf]="network === 'liquidtestnet'">tL-</ng-template>
 | 
				
			||||||
    <ng-template [ngIf]="network === 'testnet'">t</ng-template>
 | 
					    <ng-template [ngIf]="network === 'testnet'">t</ng-template>
 | 
				
			||||||
    <ng-template [ngIf]="network === 'signet'">s</ng-template>
 | 
					    <ng-template [ngIf]="network === 'signet'">s</ng-template>BTC</span>
 | 
				
			||||||
    <ng-template [ngIf]="network === 'regtest'">r</ng-template>BTC</span>
 | 
					 | 
				
			||||||
  </ng-template>
 | 
					  </ng-template>
 | 
				
			||||||
</ng-template>
 | 
					</ng-template>
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@
 | 
				
			|||||||
    </ng-container>
 | 
					    </ng-container>
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <div ngbDropdown (window:resize)="onResize($event)" class="dropdown-container" *ngIf="env.TESTNET_ENABLED || env.SIGNET_ENABLED || env.REGTEST_ENABLED || env.LIQUID_ENABLED || env.BISQ_ENABLED || env.LIQUID_TESTNET_ENABLED">
 | 
					  <div ngbDropdown (window:resize)="onResize($event)" class="dropdown-container" *ngIf="env.TESTNET_ENABLED || env.SIGNET_ENABLED || env.LIQUID_ENABLED || env.BISQ_ENABLED || env.LIQUID_TESTNET_ENABLED">
 | 
				
			||||||
    <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split" aria-haspopup="true">
 | 
					    <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split" aria-haspopup="true">
 | 
				
			||||||
      <img src="./resources/bisq-logo.png" style="width: 25px; height: 25px;" class="mr-1">
 | 
					      <img src="./resources/bisq-logo.png" style="width: 25px; height: 25px;" class="mr-1">
 | 
				
			||||||
    </button>
 | 
					    </button>
 | 
				
			||||||
@ -18,7 +18,6 @@
 | 
				
			|||||||
      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage" ngbDropdownItem class="mainnet"><img src="./resources/bitcoin-logo.png" style="width: 30px;" class="mr-1"> Mainnet</a>
 | 
					      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage" ngbDropdownItem class="mainnet"><img src="./resources/bitcoin-logo.png" style="width: 30px;" class="mr-1"> Mainnet</a>
 | 
				
			||||||
      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/signet'" ngbDropdownItem *ngIf="env.SIGNET_ENABLED" class="signet"><img src="./resources/signet-logo.png" style="width: 30px;" class="mr-1"> Signet</a>
 | 
					      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/signet'" ngbDropdownItem *ngIf="env.SIGNET_ENABLED" class="signet"><img src="./resources/signet-logo.png" style="width: 30px;" class="mr-1"> Signet</a>
 | 
				
			||||||
      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/testnet'" ngbDropdownItem *ngIf="env.TESTNET_ENABLED" class="testnet"><img src="./resources/testnet-logo.png" style="width: 30px;" class="mr-1"> Testnet</a>
 | 
					      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/testnet'" ngbDropdownItem *ngIf="env.TESTNET_ENABLED" class="testnet"><img src="./resources/testnet-logo.png" style="width: 30px;" class="mr-1"> Testnet</a>
 | 
				
			||||||
      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/regtest'" ngbDropdownItem *ngIf="env.REGTEST_ENABLED" class="regtest"><img src="./resources/regtest-logo.png" style="width: 30px;" class="mr-1"> Regtest</a>
 | 
					 | 
				
			||||||
      <h6 class="dropdown-header" i18n="master-page.layer2-networks-header">Layer 2 Networks</h6>
 | 
					      <h6 class="dropdown-header" i18n="master-page.layer2-networks-header">Layer 2 Networks</h6>
 | 
				
			||||||
      <button ngbDropdownItem class="mainnet active" routerLink="/"><img src="./resources/bisq-logo.png" style="width: 30px;" class="mr-1"> Bisq</button>
 | 
					      <button ngbDropdownItem class="mainnet active" routerLink="/"><img src="./resources/bisq-logo.png" style="width: 30px;" class="mr-1"> Bisq</button>
 | 
				
			||||||
      <a [href]="env.LIQUID_WEBSITE_URL + urlLanguage" ngbDropdownItem *ngIf="env.LIQUID_ENABLED" class="liquid"><img src="./resources/liquid-logo.png" style="width: 30px;" class="mr-1"> Liquid</a>
 | 
					      <a [href]="env.LIQUID_WEBSITE_URL + urlLanguage" ngbDropdownItem *ngIf="env.LIQUID_ENABLED" class="liquid"><img src="./resources/liquid-logo.png" style="width: 30px;" class="mr-1"> Liquid</a>
 | 
				
			||||||
 | 
				
			|||||||
@ -114,10 +114,6 @@ nav {
 | 
				
			|||||||
  background-color: #6f1d5d;
 | 
					  background-color: #6f1d5d;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.regtest.active {
 | 
					 | 
				
			||||||
  background-color: #6f1d5d;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.dropdown-divider {
 | 
					.dropdown-divider {
 | 
				
			||||||
  border-top: 1px solid #121420;
 | 
					  border-top: 1px solid #121420;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -41,7 +41,6 @@ export class BlockchainBlocksComponent implements OnInit, OnDestroy {
 | 
				
			|||||||
    'liquidtestnet': ['#494a4a', '#272e46'],
 | 
					    'liquidtestnet': ['#494a4a', '#272e46'],
 | 
				
			||||||
    testnet: ['#1d486f', '#183550'],
 | 
					    testnet: ['#1d486f', '#183550'],
 | 
				
			||||||
    signet: ['#6f1d5d', '#471850'],
 | 
					    signet: ['#6f1d5d', '#471850'],
 | 
				
			||||||
    regtest: ['#6f1d5d', '#471850'],
 | 
					 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(
 | 
					  constructor(
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@
 | 
				
			|||||||
    </ng-container>
 | 
					    </ng-container>
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <div ngbDropdown (window:resize)="onResize($event)" class="dropdown-container" *ngIf="env.TESTNET_ENABLED || env.SIGNET_ENABLED || env.REGTEST_ENABLED || env.LIQUID_ENABLED || env.BISQ_ENABLED || env.LIQUID_TESTNET_ENABLED">
 | 
					  <div ngbDropdown (window:resize)="onResize($event)" class="dropdown-container" *ngIf="env.TESTNET_ENABLED || env.SIGNET_ENABLED || env.LIQUID_ENABLED || env.BISQ_ENABLED || env.LIQUID_TESTNET_ENABLED">
 | 
				
			||||||
    <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split" aria-haspopup="true">
 | 
					    <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split" aria-haspopup="true">
 | 
				
			||||||
      <img src="./resources/{{ network.val === '' ? 'liquid' : network.val }}-logo.png" style="width: 25px; height: 25px;" class="mr-1">
 | 
					      <img src="./resources/{{ network.val === '' ? 'liquid' : network.val }}-logo.png" style="width: 25px; height: 25px;" class="mr-1">
 | 
				
			||||||
    </button>
 | 
					    </button>
 | 
				
			||||||
@ -19,7 +19,6 @@
 | 
				
			|||||||
      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage" ngbDropdownItem class="mainnet"><img src="./resources/bitcoin-logo.png" style="width: 30px;" class="mr-1"> Mainnet</a>
 | 
					      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage" ngbDropdownItem class="mainnet"><img src="./resources/bitcoin-logo.png" style="width: 30px;" class="mr-1"> Mainnet</a>
 | 
				
			||||||
      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/signet'" ngbDropdownItem *ngIf="env.SIGNET_ENABLED" class="signet"><img src="./resources/signet-logo.png" style="width: 30px;" class="mr-1"> Signet</a>
 | 
					      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/signet'" ngbDropdownItem *ngIf="env.SIGNET_ENABLED" class="signet"><img src="./resources/signet-logo.png" style="width: 30px;" class="mr-1"> Signet</a>
 | 
				
			||||||
      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/testnet'" ngbDropdownItem *ngIf="env.TESTNET_ENABLED" class="testnet"><img src="./resources/testnet-logo.png" style="width: 30px;" class="mr-1"> Testnet</a>
 | 
					      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/testnet'" ngbDropdownItem *ngIf="env.TESTNET_ENABLED" class="testnet"><img src="./resources/testnet-logo.png" style="width: 30px;" class="mr-1"> Testnet</a>
 | 
				
			||||||
      <a [href]="env.MEMPOOL_WEBSITE_URL + urlLanguage + '/regtest'" ngbDropdownItem *ngIf="env.REGTEST_ENABLED" class="regtest"><img src="./resources/regtest-logo.png" style="width: 30px;" class="mr-1"> Regtest</a>
 | 
					 | 
				
			||||||
      <h6 class="dropdown-header" i18n="master-page.layer2-networks-header">Layer 2 Networks</h6>
 | 
					      <h6 class="dropdown-header" i18n="master-page.layer2-networks-header">Layer 2 Networks</h6>
 | 
				
			||||||
      <a [href]="env.BISQ_WEBSITE_URL + urlLanguage" ngbDropdownItem class="mainnet"><img src="./resources/bisq-logo.png" style="width: 30px;" class="mr-1"> Bisq</a>
 | 
					      <a [href]="env.BISQ_WEBSITE_URL + urlLanguage" ngbDropdownItem class="mainnet"><img src="./resources/bisq-logo.png" style="width: 30px;" class="mr-1"> Bisq</a>
 | 
				
			||||||
      <button ngbDropdownItem class="liquid" [class.active]="network.val === 'liquid'" routerLink="/"><img src="./resources/liquid-logo.png" style="width: 30px;" class="mr-1"> Liquid</button>
 | 
					      <button ngbDropdownItem class="liquid" [class.active]="network.val === 'liquid'" routerLink="/"><img src="./resources/liquid-logo.png" style="width: 30px;" class="mr-1"> Liquid</button>
 | 
				
			||||||
 | 
				
			|||||||
@ -114,10 +114,6 @@ nav {
 | 
				
			|||||||
  background-color: #6f1d5d;
 | 
					  background-color: #6f1d5d;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.regtest.active {
 | 
					 | 
				
			||||||
  background-color: #6f1d5d;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.dropdown-divider {
 | 
					.dropdown-divider {
 | 
				
			||||||
  border-top: 1px solid #121420;
 | 
					  border-top: 1px solid #121420;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@
 | 
				
			|||||||
    </ng-container>
 | 
					    </ng-container>
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <div (window:resize)="onResize($event)" ngbDropdown class="dropdown-container" *ngIf="env.TESTNET_ENABLED || env.SIGNET_ENABLED || env.REGTEST_ENABLED || env.LIQUID_ENABLED || env.BISQ_ENABLED || env.LIQUID_TESTNET_ENABLED">
 | 
					  <div (window:resize)="onResize($event)" ngbDropdown class="dropdown-container" *ngIf="env.TESTNET_ENABLED || env.SIGNET_ENABLED || env.LIQUID_ENABLED || env.BISQ_ENABLED || env.LIQUID_TESTNET_ENABLED">
 | 
				
			||||||
    <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split" aria-haspopup="true">
 | 
					    <button ngbDropdownToggle type="button" class="btn btn-secondary dropdown-toggle-split" aria-haspopup="true">
 | 
				
			||||||
      <img src="./resources/{{ network.val === '' ? 'bitcoin' : network.val }}-logo.png" style="width: 25px; height: 25px;" class="mr-1">
 | 
					      <img src="./resources/{{ network.val === '' ? 'bitcoin' : network.val }}-logo.png" style="width: 25px; height: 25px;" class="mr-1">
 | 
				
			||||||
    </button>
 | 
					    </button>
 | 
				
			||||||
@ -19,7 +19,6 @@
 | 
				
			|||||||
      <button ngbDropdownItem class="mainnet" routerLink="/"><img src="./resources/bitcoin-logo.png" style="width: 30px;" class="mr-1"> Mainnet</button>
 | 
					      <button ngbDropdownItem class="mainnet" routerLink="/"><img src="./resources/bitcoin-logo.png" style="width: 30px;" class="mr-1"> Mainnet</button>
 | 
				
			||||||
      <button ngbDropdownItem *ngIf="env.SIGNET_ENABLED" class="signet" [class.active]="network.val === 'signet'" routerLink="/signet"><img src="./resources/signet-logo.png" style="width: 30px;" class="mr-1"> Signet</button>
 | 
					      <button ngbDropdownItem *ngIf="env.SIGNET_ENABLED" class="signet" [class.active]="network.val === 'signet'" routerLink="/signet"><img src="./resources/signet-logo.png" style="width: 30px;" class="mr-1"> Signet</button>
 | 
				
			||||||
      <button ngbDropdownItem *ngIf="env.TESTNET_ENABLED" class="testnet" [class.active]="network.val === 'testnet'" routerLink="/testnet"><img src="./resources/testnet-logo.png" style="width: 30px;" class="mr-1"> Testnet</button>
 | 
					      <button ngbDropdownItem *ngIf="env.TESTNET_ENABLED" class="testnet" [class.active]="network.val === 'testnet'" routerLink="/testnet"><img src="./resources/testnet-logo.png" style="width: 30px;" class="mr-1"> Testnet</button>
 | 
				
			||||||
      <button ngbDropdownItem *ngIf="env.REGTEST_ENABLED" class="regtest" [class.active]="network.val === 'regtest'" routerLink="/regtest"><img src="./resources/regtest-logo.png" style="width: 30px;" class="mr-1"> Regtest</button>
 | 
					 | 
				
			||||||
      <h6 *ngIf="env.LIQUID_ENABLED || env.BISQ_ENABLED" class="dropdown-header" i18n="master-page.layer2-networks-header">Layer 2 Networks</h6>
 | 
					      <h6 *ngIf="env.LIQUID_ENABLED || env.BISQ_ENABLED" class="dropdown-header" i18n="master-page.layer2-networks-header">Layer 2 Networks</h6>
 | 
				
			||||||
      <a [href]="env.BISQ_WEBSITE_URL + urlLanguage" ngbDropdownItem *ngIf="env.BISQ_ENABLED" class="bisq"><img src="./resources/bisq-logo.png" style="width: 30px;" class="mr-1"> Bisq</a>
 | 
					      <a [href]="env.BISQ_WEBSITE_URL + urlLanguage" ngbDropdownItem *ngIf="env.BISQ_ENABLED" class="bisq"><img src="./resources/bisq-logo.png" style="width: 30px;" class="mr-1"> Bisq</a>
 | 
				
			||||||
      <a [href]="env.LIQUID_WEBSITE_URL + urlLanguage" ngbDropdownItem *ngIf="env.LIQUID_ENABLED" class="liquid" [class.active]="network.val === 'liquid'"><img src="./resources/liquid-logo.png" style="width: 30px;" class="mr-1"> Liquid</a>
 | 
					      <a [href]="env.LIQUID_WEBSITE_URL + urlLanguage" ngbDropdownItem *ngIf="env.LIQUID_ENABLED" class="liquid" [class.active]="network.val === 'liquid'"><img src="./resources/liquid-logo.png" style="width: 30px;" class="mr-1"> Liquid</a>
 | 
				
			||||||
 | 
				
			|||||||
@ -122,10 +122,6 @@ nav {
 | 
				
			|||||||
  background-color: #6f1d5d;
 | 
					  background-color: #6f1d5d;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.regtest.active {
 | 
					 | 
				
			||||||
  background-color: #6f1d5d;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.dropdown-divider {
 | 
					.dropdown-divider {
 | 
				
			||||||
  border-top: 1px solid #121420;
 | 
					  border-top: 1px solid #121420;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -31,8 +31,6 @@ export class SeoService {
 | 
				
			|||||||
      return 'mempool - Bitcoin Testnet';
 | 
					      return 'mempool - Bitcoin Testnet';
 | 
				
			||||||
    if (this.network === 'signet')
 | 
					    if (this.network === 'signet')
 | 
				
			||||||
      return 'mempool - Bitcoin Signet';
 | 
					      return 'mempool - Bitcoin Signet';
 | 
				
			||||||
    if (this.network === 'regtest')
 | 
					 | 
				
			||||||
      return 'mempool - Bitcoin Regtest';
 | 
					 | 
				
			||||||
    if (this.network === 'liquid')
 | 
					    if (this.network === 'liquid')
 | 
				
			||||||
      return 'mempool - Liquid Network';
 | 
					      return 'mempool - Liquid Network';
 | 
				
			||||||
    if (this.network === 'liquidtestnet')
 | 
					    if (this.network === 'liquidtestnet')
 | 
				
			||||||
 | 
				
			|||||||
@ -18,7 +18,6 @@ export interface ILoadingIndicators { [name: string]: number; }
 | 
				
			|||||||
export interface Env {
 | 
					export interface Env {
 | 
				
			||||||
  TESTNET_ENABLED: boolean;
 | 
					  TESTNET_ENABLED: boolean;
 | 
				
			||||||
  SIGNET_ENABLED: boolean;
 | 
					  SIGNET_ENABLED: boolean;
 | 
				
			||||||
  REGTEST_ENABLED: boolean;
 | 
					 | 
				
			||||||
  LIQUID_ENABLED: boolean;
 | 
					  LIQUID_ENABLED: boolean;
 | 
				
			||||||
  LIQUID_TESTNET_ENABLED: boolean;
 | 
					  LIQUID_TESTNET_ENABLED: boolean;
 | 
				
			||||||
  BISQ_ENABLED: boolean;
 | 
					  BISQ_ENABLED: boolean;
 | 
				
			||||||
@ -43,7 +42,6 @@ export interface Env {
 | 
				
			|||||||
const defaultEnv: Env = {
 | 
					const defaultEnv: Env = {
 | 
				
			||||||
  'TESTNET_ENABLED': false,
 | 
					  'TESTNET_ENABLED': false,
 | 
				
			||||||
  'SIGNET_ENABLED': false,
 | 
					  'SIGNET_ENABLED': false,
 | 
				
			||||||
  'REGTEST_ENABLED': false,
 | 
					 | 
				
			||||||
  'LIQUID_ENABLED': false,
 | 
					  'LIQUID_ENABLED': false,
 | 
				
			||||||
  'LIQUID_TESTNET_ENABLED': false,
 | 
					  'LIQUID_TESTNET_ENABLED': false,
 | 
				
			||||||
  'BASE_MODULE': 'mempool',
 | 
					  'BASE_MODULE': 'mempool',
 | 
				
			||||||
@ -141,7 +139,7 @@ export class StateService {
 | 
				
			|||||||
    if (this.env.BASE_MODULE !== 'mempool' && this.env.BASE_MODULE !== 'liquid') {
 | 
					    if (this.env.BASE_MODULE !== 'mempool' && this.env.BASE_MODULE !== 'liquid') {
 | 
				
			||||||
      return;
 | 
					      return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    const networkMatches = url.match(/\/(bisq|testnet|liquidtestnet|liquid|signet|regtest)/);
 | 
					    const networkMatches = url.match(/\/(bisq|testnet|liquidtestnet|liquid|signet)/);
 | 
				
			||||||
    switch (networkMatches && networkMatches[1]) {
 | 
					    switch (networkMatches && networkMatches[1]) {
 | 
				
			||||||
      case 'liquid':
 | 
					      case 'liquid':
 | 
				
			||||||
        if (this.network !== 'liquid') {
 | 
					        if (this.network !== 'liquid') {
 | 
				
			||||||
@ -161,12 +159,6 @@ export class StateService {
 | 
				
			|||||||
          this.networkChanged$.next('signet');
 | 
					          this.networkChanged$.next('signet');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
      case 'regtest':
 | 
					 | 
				
			||||||
        if (this.network !== 'regtest') {
 | 
					 | 
				
			||||||
          this.network = 'regtest';
 | 
					 | 
				
			||||||
          this.networkChanged$.next('regtest');
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        return;
 | 
					 | 
				
			||||||
      case 'testnet':
 | 
					      case 'testnet':
 | 
				
			||||||
        if (this.network !== 'testnet') {
 | 
					        if (this.network !== 'testnet') {
 | 
				
			||||||
          if (this.env.BASE_MODULE === 'liquid') {
 | 
					          if (this.env.BASE_MODULE === 'liquid') {
 | 
				
			||||||
 | 
				
			|||||||
@ -1 +0,0 @@
 | 
				
			|||||||
signet-logo.png
 | 
					 | 
				
			||||||
@ -100,10 +100,6 @@ body {
 | 
				
			|||||||
  background-color: #6f1d5d !important;
 | 
					  background-color: #6f1d5d !important;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.navbar-nav.regtest > .active {
 | 
					 | 
				
			||||||
  background-color: #6f1d5d !important;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.navbar-nav.liquidtestnet > .active {
 | 
					.navbar-nav.liquidtestnet > .active {
 | 
				
			||||||
  background-color: #494a4a !important;
 | 
					  background-color: #494a4a !important;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -642,10 +638,6 @@ h1, h2, h3 {
 | 
				
			|||||||
  background: repeating-linear-gradient(to right, #2d3348, #2d3348 0%, #6f1d5d 0%, #471850 100%);
 | 
					  background: repeating-linear-gradient(to right, #2d3348, #2d3348 0%, #6f1d5d 0%, #471850 100%);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.progress-mempool.regtest {
 | 
					 | 
				
			||||||
  background: repeating-linear-gradient(to right, #2d3348, #2d3348 0%, #6f1d5d 0%, #471850 100%);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.progress-mempool.liquid {
 | 
					.progress-mempool.liquid {
 | 
				
			||||||
  background: repeating-linear-gradient(to right, #2d3348, #2d3348 0%, #116761 0%, #183550 100%);
 | 
					  background: repeating-linear-gradient(to right, #2d3348, #2d3348 0%, #116761 0%, #183550 100%);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user