Browse Source

Add option for -testnode and -gen=1 with other small tweaks

master
Jonathan "Duke" Leto 1 year ago
parent
commit
0c16c83372
  1. 22
      index.html
  2. 5
      main.js
  3. 4
      style.css

22
index.html

@ -72,6 +72,7 @@
</li>
<li class="animated fadeInRight" id="rewardInput" style="border-color: #2d2d2d;">
<label>Initial Block Reward (-ac_reward)</label>
<pre>This is in satoshis. 1 COIN = 100000000 satoshis.</pre>
<input class="input" type="text" v-model="optionReward" style="border-color: #2d2d2d;">
</li>
<li class="animated fadeInRight" id="blocktimeInput" style="border-color: #2d2d2d;">
@ -95,6 +96,25 @@
</ul>
</div>
</div>
<li>
<label> Test Chain (-testnode=1)</label>
<pre>Use this for testing. Requires only a single node.</pre>
<label class="switch">
<input type="checkbox" v-model="optionTestNode">
<div class="slider round"></div>
</label>
</li>
<li>
<label> Mining (-gen=1)</label>
<pre>Enable mining.</pre>
<label class="switch">
<input type="checkbox" v-model="optionGen">
<div class="slider round"></div>
</label>
</li>
</fieldset>
</form>
<button class="compile button-dark" v-on:click="compile">Compile</button>
@ -119,6 +139,6 @@
</div>
<script src='https://cdn.jsdelivr.net/npm/vue@2.6.0'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='main.js?v=7'></script>
<script src='main.js?v=8'></script>
</body>
</html>

5
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 + "<br /><br />whitelist=" + this.optionAllowList

4
style.css

@ -7,11 +7,11 @@ body {
}
.column {
width: 40%;
width: 45%;
}
.row {
width: 90%;
width: 95%;
}
.center {

Loading…
Cancel
Save