mirror of
https://github.com/Retropex/umbrel-bitcoin.git
synced 2025-05-12 11:10:48 +02:00
new knots UI options (may)
This commit is contained in:
parent
66f69965a9
commit
300a59c276
@ -38,6 +38,8 @@ const DEFAULT_ADVANCED_SETTINGS = {
|
||||
datacarrier: true,
|
||||
datacarriersize: 42,
|
||||
permitbaremultisig: false,
|
||||
rejectparasites: true,
|
||||
rejecttokens: false,
|
||||
maxorphantx: 100,
|
||||
reindex: false,
|
||||
// RPC/REST
|
||||
@ -175,6 +177,18 @@ function settingsToMultilineConfString(settings) {
|
||||
umbrelBitcoinConfig.push('permitbaremultisig=1');
|
||||
}
|
||||
|
||||
// rejectparasites
|
||||
if (!settings.rejectparasites) {
|
||||
umbrelBitcoinConfig.push("# Do not relay transactions that are considered parasitic.");
|
||||
umbrelBitcoinConfig.push('rejectparasites=0');
|
||||
}
|
||||
|
||||
// rejecttokens
|
||||
if (settings.rejecttokens) {
|
||||
umbrelBitcoinConfig.push("# Reject transactions that create tokens.");
|
||||
umbrelBitcoinConfig.push(`rejecttokens=1`);
|
||||
}
|
||||
|
||||
// maxorphantx
|
||||
umbrelBitcoinConfig.push("# Maximum number of orphan transactions to be kept in memory.");
|
||||
umbrelBitcoinConfig.push(`maxorphantx=${settings.maxorphantx}`);
|
||||
|
@ -717,6 +717,64 @@
|
||||
</div>
|
||||
</b-card-body>
|
||||
|
||||
<!-- REJECTPARASITES -->
|
||||
<b-card-body class="subsetting-body px-2 px-sm-3">
|
||||
<div>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div class="flex-sm-grow-1">
|
||||
<label class="mb-0" for="mempool">
|
||||
<p class="subsetting-title font-weight-bold mb-0 mr-1">
|
||||
Relay parasitic transactions
|
||||
<span class="subsetting-config-name text-monospace font-weight-normal d-block">
|
||||
rejectparasites
|
||||
</span>
|
||||
</p>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<toggle-switch
|
||||
id="rejectparasites"
|
||||
class="align-self-center"
|
||||
:on="settings.rejectparasites"
|
||||
@toggle="status => (settings.rejectparasites = status)"
|
||||
></toggle-switch>
|
||||
</div>
|
||||
</div>
|
||||
<small class="w-lg-75 d-block text-muted mt-1">
|
||||
Relay parasitic transactions that are non monetary.
|
||||
</small>
|
||||
</div>
|
||||
</b-card-body>
|
||||
|
||||
<!-- REJECTTOKENS -->
|
||||
<b-card-body class="subsetting-body px-2 px-sm-3">
|
||||
<div>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div class="flex-sm-grow-1">
|
||||
<label class="mb-0" for="mempool">
|
||||
<p class="subsetting-title font-weight-bold mb-0 mr-1">
|
||||
Relay tokens transactions
|
||||
<span class="subsetting-config-name text-monospace font-weight-normal d-block">
|
||||
rejecttokens
|
||||
</span>
|
||||
</p>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<toggle-switch
|
||||
id="rejecttokens"
|
||||
class="align-self-center"
|
||||
:on="settings.rejecttokens"
|
||||
@toggle="status => (settings.rejecttokens = status)"
|
||||
></toggle-switch>
|
||||
</div>
|
||||
</div>
|
||||
<small class="w-lg-75 d-block text-muted mt-1">
|
||||
Relay tokens transactions (runes).
|
||||
</small>
|
||||
</div>
|
||||
</b-card-body>
|
||||
|
||||
<!-- PERMITBAREMULTISIG -->
|
||||
<b-card-body class="subsetting-body px-2 px-sm-3">
|
||||
<div>
|
||||
|
@ -102,6 +102,12 @@ function validateSettingsRequest(settings) {
|
||||
// Datacarriersize
|
||||
checkBooleanSetting({ setting: settings.permitbaremultisig, settingName: "permitbaremultisig" });
|
||||
|
||||
// rejectparasites
|
||||
checkBooleanSetting({ settiing: settings.rejectparasites, settingName: "rejectparasites" });
|
||||
|
||||
//rejecttokens
|
||||
checkBooleanSetting({ setting: settings.rejecttokens, settingName: "rejecttokens" });
|
||||
|
||||
// Max Orphan Transactions
|
||||
// No min or max specified.
|
||||
checkNumberSetting({ setting: settings.maxorphantx, settingName: "Max Orphan Transactions", min: 0 });
|
||||
|
Loading…
Reference in New Issue
Block a user