Comments (3)
Using the same blocksdir for two different nodes is not supported. Nodes may download blocks in a different order and save them to different locations in the blocksfiles. This will lead to an error at some point, latest when one of the nodes can't find a block where it believes to be one.
Currently, I don't think what you are trying to achieve is possible without copying blocks.
If bitcoin-core assumes pruning to be enabled by default, at least it should have asked for confirmation to delete blocks it did not download.
I don't think pruning is enabled by default. It would be a bug if it was.
EDIT: Looks like prune is enabled by default in the GUI
from bitcoin.
Using the same blocksdir for two different nodes is not supported. Nodes may download blocks in a different order and save them to different locations in the blocksfiles. This will lead to an error at some point, latest when one of the nodes can't find a block where it believes to be one.
Currently, I don't think what you are trying to achieve is possible without copying blocks.
Hm, my experience differs: using this regularly and never ran into issues. Since the external HDD contains fully downloaded and validated blockchain, there is not much to dissent between different nodes besides the very last potentially incomplete block. There is this tool (https://github.com/bitcoin-core/bitcoin-maintainer-tools/blob/main/fastcopy-chaindata.py) which works with hardlinks but can't be used over filesystem boundaries - but generally it is possible.
If bitcoin-core assumes pruning to be enabled by default, at least it should have asked for confirmation to delete blocks it did not download.
I don't think pruning is enabled by default. It would be a bug if it was.
Maybe problem is, I started bitcoin-core.qt first, which found my local SSD has insufficient space for the full blockchain and hence wrote a prune-enabled config, which I did not check when softlinking to my external blockchain. So I learned something for the price of a 2-day-IBD.
Proposal: don't prune if blocksdir is defined - or at least document that if pruning is enabled your externally kept blockchain will get deleted.
from bitcoin.
Using the same blocksdir for two different nodes is not supported. Nodes may download blocks in a different order and save them to different locations in the blocksfiles. This will lead to an error at some point, latest when one of the nodes can't find a block where it believes to be one.
Currently, I don't think what you are trying to achieve is possible without copying blocks.Hm, my experience differs: using this regularly and never ran into issues. Since the external HDD contains fully downloaded and validated blockchain, there is not much to dissent between different nodes besides the very last potentially incomplete block. There is this tool (https://github.com/bitcoin-core/bitcoin-maintainer-tools/blob/main/fastcopy-chaindata.py) which works with hardlinks but can't be used over filesystem boundaries - but generally it is possible.
Sure, but the script also intends to correctly handle blocks/index
, as well as the last block file. I don't see where your approach does it.
Proposal: don't prune if blocksdir is defined - or at least document that if pruning is enabled your externally kept blockchain will get deleted.
Again, what you described so far isn't a supported use case right now.
from bitcoin.
Related Issues (20)
- use MiniWallet in functional test `rpc_signrawtransactionwithkey.py` for funding txs HOT 2
- "system_tests/run_command" unit test fails HOT 3
- test: "system_tests/run_command" unit test fails with different locale
- UpdateTime() needs to account for timewarp fix on testnet4 HOT 4
- fuzz: `script`: Assertion `!extract_destination_ret' failed. HOT 14
- wallet: setting changes are subject to race conditions HOT 3
- .
- .
- .
- .
- "heapleakdetection" entry in registry for bitcoin-qt.exe HOT 1
- An "output descriptor" should not have many different checksums HOT 4
- contrib: Automation for Bitcoin Full Node Deployment HOT 10
- Intermittent failure in feature_fee_estimation.py in sanity_check_rbf_estimates: est_feerate = node.estimatesmartfee(2)["feerate"] (KeyError: 'feerate')
- doc: deduplicate list of chain/network strings in RPC/parameter help texts HOT 3
- bitcoind shouldn't be shutdown automatically despite wallet synchronisation error HOT 14
- Question on Changing Bitcoin Blockchain Data Directory in Linux Without Redownloading HOT 1
- TSAN/MSAN fails with vm.mmap_rnd_bits=32 even with llvm 18.1.3 HOT 5
- Unable to build Bitcoin using './contrib/guix/guix-build' HOT 1
- Control-flow application capabilities for `x86_64-linux-gnu` release binaries HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoin.