Skip to main content
15 votes
Accepted

Why is witness data downloaded during IBD in prune mode?

Why do pruned nodes download (segregated) witness data during IBD if much of that data is marked as Assumevalid? Good question, probably because nobody implemented it. Honestly, I had never ...
Pieter Wuille's user avatar
12 votes
Accepted

Does running pruning node make the initial sync faster?

No, pruning will not make the initial sync faster. The information that gets removed by pruning isn't accessed turning the initial sync. Currently pruning makes the initial sync somewhat slower: more ...
G. Maxwell's user avatar
  • 7,727
10 votes
Accepted

Skip IBD on pruned node?

Such a thing is not implemented in Bitcoin Core, though there is some work towards that (the "assumeutxo" project). What assumevalid does is just assume that all scripts/signatures in blocks ...
Pieter Wuille's user avatar
10 votes
Accepted

Can I delete blk*.dat files?

No, if you manually delete these files, Bitcoin Core will notice the missing files and abort. However, Bitcoin Core does have functionality to discard blocks after validating them: pruning. You can ...
josie's user avatar
  • 681
9 votes
Accepted

Running bitcoin core in a low storage system

You cannot skip downloading the blockchain, but you can skip storing it. If you run Bitcoin Core with the -prune=N or put prune=N in the bitcoin.conf file, only at most N megabytes worth of blocks ...
Pieter Wuille's user avatar
8 votes
Accepted

Why is 550 (MiB) chosen for minimum storage size for prune mode?

Just got help from someone at BitcoinTalk forum, who directed me to bitcoind 0.11.0 changelog (Which pruning was introduced/implemented for the first time in bitcoind) As indicated there, Block ...
behkod's user avatar
  • 313
8 votes
Accepted

Why is a bitcoin node pruned to 550MB taking up 10GB+?

A pruned node deletes historical block chain data it already validated. However the blocks are not the only data stored by a node. In order to be able to validate blocks a node needs to maintain a ...
Antoine Poinsot's user avatar
7 votes
Accepted

Default behaviour when network partitions/pruned network

Bitcoin Core does not support pruning witnesses. It supports pruning blocks entirely, but that is independent from segwit. No full node in the network will accept a segwit block without the witnesses. ...
Pieter Wuille's user avatar
7 votes
Accepted

What is the meaning of the term "full-node"?

Fully validating nodes ("full nodes") are clients that have validated the whole blockchain self-sufficiently and enforce all of the rules of Bitcoin on any data they receive. Therefore, they cannot be ...
Murch's user avatar
  • 75.9k
7 votes
Accepted

Do I need to keep all blocks when running Bitcoin Core?

Full nodes keep all blocks by default, but this is not necessary to achieve full node security. Full nodes validate the complete blockchain and enforce all consensus rules regardless of whether a full ...
Murch's user avatar
  • 75.9k
7 votes
Accepted

How to operate bitcoin core .14 without downloading the entire blockchain with limited hard drive space of 50gb free?

If pruning is enabled, old blocks are deleted on the fly while new ones are being downloaded. With -prune=550 (the minimum value), you're able to run Bitcoin Core v0.12+ with just a few GB of disk ...
Pieter Wuille's user avatar
7 votes

Running lightning in prune mode

Update(2021): Since version 0.13 pruned nodes are officially supported although they cause performance penalty and higher network usage. It is possible to run Lightning (both LND and c-lightning) with ...
Dmitry Laptev's user avatar
7 votes

Does running a pruned node support the syncing of other nodes in the network?

does such a node support the syncing of other nodes in the network? Nodes that are pruned unset the NODE_NETWORK flag, which means that they don't advertise themselves as a potential source for block ...
Claris's user avatar
  • 15.4k
7 votes

If pruning is so safe, why aren't 100% of the Bitcoin nodes pruning? Why keep the unnecessary data?

There are three things pruned Bitcoin Core nodes (as of version 0.21.0) cannot do: Serve historical blocks to new nodes that are trying to bootstrap. Rescan for old wallet transactions after ...
Pieter Wuille's user avatar
7 votes
Accepted

Is it possible to increase the prune size and get bitcoind to pull previous blocks?

Bitcoin Core doesn't have such a feature. The prune depth controls how many blocks are kept, and you can change that (-prune=N option on the command line or prune=N in bitcoin.conf), but once a block ...
Pieter Wuille's user avatar
7 votes
Accepted

Testing pruning logic with bitcoind

There is the test-only -fastprune bitcoind option, which results in a much smaller maximum blockfile size (16 kb) and a lower minimum prune height. If that option is used, you could just bitcoin-cli -...
Lightlike's user avatar
  • 636
6 votes
Accepted

Changing prune size in working bitcoin daemon

The prune value merely sets the limit of how much block data is kept. If you increase the value and restart, no block data will be deleted for a while. New blocks will be received and validated and ...
Pieter Wuille's user avatar
6 votes

What happens if you set prune=<n> to a value between 0 and 550?

It turns out that prune=1 is a new special case which enables manual pruning. For values of N from 2 to 549, prune=N shows an error. Bitcoin Core parses configuration arguments in the init.cpp. ...
Murch's user avatar
  • 75.9k
6 votes
Accepted

How can a pruned node be classed a full node without the full blockchain?

Pruned nodes will verify new blocks and they are classified as full nodes They keep the complete database of all UTXOs. This is enough to verify new blocks. What is required for validation is that ...
dark knight's user avatar
  • 2,017
6 votes
Accepted

Will running a pruned node make my store less secure?

Will running a pruned node make my store less secure? No, not at all. I was wondering what will be the downsides to me running a pruned node? With a pruned node you cannot: Handle (extremely) ...
Pieter Wuille's user avatar
6 votes
Accepted

How to configure a testnet node to be pruned?

The bitcoin.conf option must be prune=1000, not pruned=1000. If you specified the latter, it was probably ignored. You could reduce the number up to 550 (MiB), bitcoind won't start if you choose a ...
Lightlike's user avatar
  • 636
5 votes
Accepted

What happens if you set prune=<n> to a value between 0 and 550?

From the Bitcoin Core v0.14.0 release notes: Bitcoin Core has supported automatically pruning the blockchain since 0.11. Pruning the blockchain allows for significant storage space savings as the ...
Pieter Wuille's user avatar
5 votes
Accepted

How can I prune my Bitcoin Core correctly? The other way did not work for me. Have I done any unnoticed mistake?

From your description it sounds to me that you may have edited your configuration file while Bitcoin Core was already running. prune=1100 is a startup parameter. It will take effect once you restart ...
Murch's user avatar
  • 75.9k
5 votes
Accepted

Do you have to download the entire bitcoin blockchain for bitcoin core pruned mode to take effect?

Pruning saves disk space, but you still need to download the whole blockchain, prune mode works on the fly, once your node has downloaded the block data and validated the blocks/transactions in it, it ...
Roman Kiselenko's user avatar
5 votes

How to make bitcoin-qt respect -prune?

prune allows you to set the size of blockchain data stored, not downloaded. Therefore prune does not affect bandwidth usage.
MCCCS's user avatar
  • 10.2k
5 votes
Accepted

Syncing blockchain with prune enabled

It will prune as it synchronizes. Disk usage shouldn't ever reach more than a few GB plus what you configured the pruning limit to.
Pieter Wuille's user avatar
5 votes
Accepted

Bitcoin core v0.19.0.1 automatically prunes?

No, the default behavior of bitcoin core v0.19.0.1 is still the non pruning mod. You should check your bitcoin.conf file depending on your operating system there is a line about pruning which should ...
Saxtheowl's user avatar
  • 2,810
5 votes
Accepted

Downloading the pruned blockchain file directly from external source

It introduces too much trust into the download source. It's the same thing as just uploading a datadir. You aren't verifying any of the blockchain history; what you download could be a fork of the ...
Ava Chow's user avatar
  • 70.9k
5 votes
Accepted

Can I use blockfilterindex in pruned mode?

The block filter index is build asynchronously from block downloading and validation. It is possible that the thread handing block storage and pruning could be enough ahead of the thread building the ...
Ava Chow's user avatar
  • 70.9k
5 votes
Accepted

Pruning Blockchain, what does it remove?

Pruning Blockchain, what does it remove? What Raw block data for blocks older than a given height. If we look at https://bitcoincore.org/en/releases/0.11.0/, it says This release supports running a ...

Only top scored, non community-wiki answers of a minimum length are eligible