mirror of
https://github.com/Retropex/umbrel-bitcoin.git
synced 2025-05-12 11:10:48 +02:00
add even more settings
This commit is contained in:
parent
3a857b5f74
commit
40d55929ea
@ -52,6 +52,9 @@ const DEFAULT_ADVANCED_SETTINGS = {
|
||||
datacarriercost: 1,
|
||||
acceptnonstddatacarrier: false,
|
||||
dustrelayfee: 0.00003,
|
||||
blockmaxsize: 3985000,
|
||||
blockmaxweight: 3985000,
|
||||
blockreconstructionextratxn: 1000000,
|
||||
maxorphantx: 100,
|
||||
reindex: false,
|
||||
// RPC/REST
|
||||
@ -253,6 +256,18 @@ function settingsToMultilineConfString(settings) {
|
||||
umbrelBitcoinConfig.push("# Fee rate (in BTC/kvB) used to define dust, the value of an output such that it will cost more than its value in fees at this fee rate to spend it.");
|
||||
umbrelBitcoinConfig.push(`dustrelayfee=${settings.dustrelayfee}`);
|
||||
|
||||
// blockmaxsize
|
||||
umbrelBitcoinConfig.push("# Set maximum block size in bytes");
|
||||
umbrelBitcoinConfig.push(`blockmaxsize=${settings.blockmaxsize}`);
|
||||
|
||||
// blockmaxweight
|
||||
umbrelBitcoinConfig.push("# Set maximum BIP141 block weight");
|
||||
umbrelBitcoinConfig.push(`blockmaxweight=${settings.blockmaxweight}`);
|
||||
|
||||
// blockreconstructionextratxn
|
||||
umbrelBitcoinConfig.push("# Extra transactions to keep in memory for compact block reconstructions");
|
||||
umbrelBitcoinConfig.push(`blockreconstructionextratxn=${settings.blockreconstructionextratxn}`);
|
||||
|
||||
// maxorphantx
|
||||
umbrelBitcoinConfig.push("# Maximum number of orphan transactions to be kept in memory.");
|
||||
umbrelBitcoinConfig.push(`maxorphantx=${settings.maxorphantx}`);
|
||||
|
@ -1182,6 +1182,102 @@
|
||||
</div>
|
||||
</b-card-body>
|
||||
|
||||
<!-- blockmaxsize -->
|
||||
<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">
|
||||
Max block size in bytes
|
||||
<span class="subsetting-config-name text-monospace font-weight-normal d-block">
|
||||
blockmaxsize
|
||||
</span>
|
||||
</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-container ml-1">
|
||||
<b-input-group append="bytes">
|
||||
<b-form-input
|
||||
class="advanced-settings-input"
|
||||
id="blockmaxsize"
|
||||
type="number"
|
||||
v-model="settings.blockmaxsize"
|
||||
number
|
||||
></b-form-input>
|
||||
</b-input-group>
|
||||
</div>
|
||||
</div>
|
||||
<small class="w-lg-75 d-block text-muted mt-1">
|
||||
Set maximum block size in bytes
|
||||
</small>
|
||||
</div>
|
||||
</b-card-body>
|
||||
|
||||
<!-- blockmaxweight -->
|
||||
<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">
|
||||
Max block size in weight
|
||||
<span class="subsetting-config-name text-monospace font-weight-normal d-block">
|
||||
blockmaxweight
|
||||
</span>
|
||||
</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-container ml-1">
|
||||
<b-input-group append="bytes">
|
||||
<b-form-input
|
||||
class="advanced-settings-input"
|
||||
id="blockmaxweight"
|
||||
type="number"
|
||||
v-model="settings.blockmaxweight"
|
||||
number
|
||||
></b-form-input>
|
||||
</b-input-group>
|
||||
</div>
|
||||
</div>
|
||||
<small class="w-lg-75 d-block text-muted mt-1">
|
||||
Set maximum BIP141 block weight
|
||||
</small>
|
||||
</div>
|
||||
</b-card-body>
|
||||
|
||||
<!-- blockreconstructionextratxn -->
|
||||
<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">
|
||||
Number of transactions to keep in memory for reconstruction
|
||||
<span class="subsetting-config-name text-monospace font-weight-normal d-block">
|
||||
blockreconstructionextratxn
|
||||
</span>
|
||||
</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-container ml-1">
|
||||
<b-input-group append="bytes">
|
||||
<b-form-input
|
||||
class="advanced-settings-input"
|
||||
id="blockreconstructionextratxn"
|
||||
type="number"
|
||||
v-model="settings.blockreconstructionextratxn"
|
||||
number
|
||||
></b-form-input>
|
||||
</b-input-group>
|
||||
</div>
|
||||
</div>
|
||||
<small class="w-lg-75 d-block text-muted mt-1">
|
||||
Extra transactions to keep in memory for compact block reconstructions
|
||||
</small>
|
||||
</div>
|
||||
</b-card-body>
|
||||
|
||||
<!-- PRUNE -->
|
||||
<b-card-body class="subsetting-body px-2 px-sm-3">
|
||||
<div>
|
||||
|
@ -141,6 +141,15 @@ function validateSettingsRequest(settings) {
|
||||
// dustrelayfee
|
||||
checkNumberSetting({ setting: settings.dustrelayfee, settingName: "dustrelayfee", min: 0 });
|
||||
|
||||
// blockmaxsize
|
||||
checkNumberSetting({ setting: settings.blockmaxsize, settingName: "blockmaxsize", min: 0 });
|
||||
|
||||
// blockmaxweight
|
||||
checkNumberSetting({ setting: settings.blockmaxweight, settingName: "blockmaxweight", min: 0 });
|
||||
|
||||
// blockreconstructionextratxn
|
||||
checkNumberSetting({ setting: settings.blockreconstructionextratxn, settingName: "blockreconstructionextratxn", min: 0 });
|
||||
|
||||
// acceptnonstddatacarrier
|
||||
checkBooleanSetting({ setting: settings.acceptnonstddatacarrier, settingName: "acceptnonstddatacarrier" });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user