mirror of
https://github.com/Retropex/umbrel-bitcoin.git
synced 2025-05-12 19:20:49 +02:00
Only enable txindex if pruning is disabled
This commit is contained in:
parent
b7c2658d74
commit
251e7794eb
@ -114,6 +114,10 @@ function settingsToMultilineConfString(settings) {
|
||||
umbrelBitcoinConfig.push(`prune=${Math.round(settings.prune.pruneSizeGB * GB_TO_MiB)}`);
|
||||
}
|
||||
|
||||
// Only enable txindex if pruning is disabled
|
||||
const txindexEnabled = settings.prune.enabled ? '0' : '1';
|
||||
umbrelBitcoinConfig.push(`txindex=${txindexEnabled}`);
|
||||
|
||||
// reindex
|
||||
if (settings.reindex) {
|
||||
umbrelBitcoinConfig.push('# Rebuild chain state and block index from the blk*.dat files on disk.');
|
||||
|
Loading…
Reference in New Issue
Block a user