From 0c16c8337251210cc2be4a4237c7f2b56aeac2ff Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Mon, 16 Jan 2023 13:56:03 -0800 Subject: [PATCH] Add option for -testnode and -gen=1 with other small tweaks --- index.html | 22 +++++++++++++++++++++- main.js | 5 +++++ style.css | 4 ++-- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 42f3ded..183e9f0 100644 --- a/index.html +++ b/index.html @@ -72,6 +72,7 @@
  • +
    This is in satoshis. 1 COIN = 100000000 satoshis.
  • @@ -95,6 +96,25 @@ + +
  • + +
    Use this for testing. Requires only a single node.
    + +
  • + +
  • + +
    Enable mining.
    + +
  • + @@ -119,6 +139,6 @@ - + diff --git a/main.js b/main.js index 32f9a0e..deb11d4 100644 --- a/main.js +++ b/main.js @@ -28,6 +28,7 @@ new Vue({ optionRpcAllowIp: '127.0.0.1', optionRpcUser: 'rpcuser', optionRpcPassword: Math.random().toString(36).slice(2), + optionTestNode: 0, optionShowMetrics: 0, optionDataDir: '', optionZIndex: 0, @@ -97,6 +98,10 @@ new Vue({ this.command += " -ac_reward=" + this.optionReward + " -ac_halving=" + this.optionHalving; if(this.optionPubkey != '') this.command += " -ac_pubkey=" + this.optionPubkey; + if(this.optionTestNode) + this.command += " -testnode=1"; + if(this.optionGen) + this.command += " -gen=1"; /* if (this.optionAllowList.length != 0) { this.command = this.conf + "

    whitelist=" + this.optionAllowList diff --git a/style.css b/style.css index f940b2b..a4458cc 100644 --- a/style.css +++ b/style.css @@ -7,11 +7,11 @@ body { } .column { - width: 40%; + width: 45%; } .row { - width: 90%; + width: 95%; } .center {