Always allow to mine a block in cheat mode

This commit is contained in:
nicolas.dorier
2025-01-10 19:16:48 +09:00
parent 5536935ff8
commit d2c52c10bd

View File

@@ -19,7 +19,7 @@
<button class="btn btn-secondary flex-shrink-0 px-3 w-100px" type="submit" :disabled="paying" id="FakePayment">Pay</button>
</div>
</form>
<form id="mine-block" :action="`/i/${invoiceId}/mine-blocks`" method="post" v-on:submit.prevent="handleFormSubmit($event, 'mining')" v-if="displayMine">
<form id="mine-block" :action="`/i/${invoiceId}/mine-blocks`" method="post" v-on:submit.prevent="handleFormSubmit($event, 'mining')">
<label for="BlockCount" class="control-label form-label" text-translate="true">Mine to test processing and settlement</label>
<div class="d-flex gap-2">
<input name="PaymentMethodId" type="hidden" :value="paymentMethodId">
@@ -66,7 +66,7 @@
},
computed: {
display() {
return this.successMessage || this.errorMessage || this.displayPayment || this.displayMine || this.displayExpire;
return this.successMessage || this.errorMessage || this.displayPayment || this.displayExpire;
},
displayPayment () {
return !this.isSettled && !this.isProcessing;
@@ -74,9 +74,6 @@
displayExpire () {
return !this.isSettled && !this.isProcessing;
},
displayMine () {
return this.paymentMethodId === 'BTC-CHAIN';
},
isSats () {
return this.cryptoCode === 'sats';
},