mirror of
https://github.com/Retropex/umbrel-bitcoin.git
synced 2025-05-12 03:00:49 +02:00
Merge pull request #4 from copy2018/patch-1
Some checks failed
Build Docker image on push / Build Docker image (push) Has been cancelled
Some checks failed
Build Docker image on push / Build Docker image (push) Has been cancelled
Add Coinstatsindex config option in umbrel
This commit is contained in:
commit
e07d625adb
@ -35,6 +35,7 @@ const DEFAULT_ADVANCED_SETTINGS = {
|
||||
maxmempool: 300,
|
||||
mempoolexpiry: 336,
|
||||
persistmempool: true,
|
||||
coinstatsindex: false,
|
||||
datacarrier: true,
|
||||
datacarriersize: 42,
|
||||
permitbaremultisig: false,
|
||||
@ -176,6 +177,12 @@ function settingsToMultilineConfString(settings) {
|
||||
umbrelBitcoinConfig.push('persistmempool=1');
|
||||
}
|
||||
|
||||
// coinstatsindex
|
||||
if (settings.coinstatsindex) {
|
||||
umbrelBitcoinConfig.push("# Maintain coinstats index used by the gettxoutsetinfo RPC.");
|
||||
umbrelBitcoinConfig.push('coinstatsindex=1');
|
||||
}
|
||||
|
||||
// datacarrier
|
||||
if (!settings.datacarrier) {
|
||||
umbrelBitcoinConfig.push("# Relay and mine data carrier transactions.");
|
||||
|
@ -1423,6 +1423,35 @@
|
||||
</div>
|
||||
</b-card-body>
|
||||
|
||||
<!-- COINSTATSINDEX -->
|
||||
<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="coinstatsindex">
|
||||
<p class="subsetting-title font-weight-bold mb-0 mr-1">
|
||||
Coin Stats Index
|
||||
<span class="subsetting-config-name text-monospace font-weight-normal d-block">
|
||||
coinstatsindex
|
||||
</span>
|
||||
</p>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<toggle-switch
|
||||
id="coinstatsindex"
|
||||
class="align-self-center"
|
||||
:on="settings.coinstatsindex"
|
||||
@toggle="status => (settings.coinstatsindex = status)"
|
||||
></toggle-switch>
|
||||
</div>
|
||||
</div>
|
||||
<small class="w-lg-75 d-block text-muted mt-1">
|
||||
Enabling Coinstats Index reduces the time for the gettxoutsetinfo RPC to complete at the cost of using additional disk space.
|
||||
</small>
|
||||
</div>
|
||||
</b-card-body>
|
||||
|
||||
<!-- MAXORPHANTX -->
|
||||
<b-card-body class="subsetting-body px-2 px-sm-3">
|
||||
<div>
|
||||
|
@ -93,6 +93,9 @@ function validateSettingsRequest(settings) {
|
||||
// Persist Mempool
|
||||
checkBooleanSetting({ setting: settings.persistmempool, settingName: "Persist Mempool" });
|
||||
|
||||
// Coin Stats Index
|
||||
checkBooleanSetting({ setting: settings.coinstatsindex, settingName: "Coin Stats Index" });
|
||||
|
||||
// Datacarrier
|
||||
checkBooleanSetting({ setting: settings.datacarrier, settingName: "datacarrier" });
|
||||
|
||||
@ -186,4 +189,4 @@ function validateSettingsRequest(settings) {
|
||||
|
||||
}
|
||||
|
||||
module.exports = validateSettingsRequest;
|
||||
module.exports = validateSettingsRequest;
|
||||
|
Loading…
Reference in New Issue
Block a user