I thank you for the helpful responses so far. I have already read your HowTo, I have set up bitcoin-core very similar. At the moment I still have the following questions:
I had installed bitcoin-core on computer1 and computer2 in the same way. Computer1 is the slow armbian and computer2 is the fast computer with NVMe disk. Both nodes shut down before I got to work. I thought I had enough space on the fast computer2 so that I could download the whole blockchain, but unfortunately I was wrong and the space is not enough for the full blockchain. So I decided to run computer2 as a pruned node with the same settings as computer1. Both use the same configuration except that I could increase the dbcache on computer2. Computer2 was very quickly done with the IDB. Then I stopped bitcoin-core on computer2 again, so it was both nodes offline. Then I copied the folders "blocks" and "chainstate" from the fast computer2 to the slow armbian computer1. When I then started computer1 I got the error message that it could not find a block file and bitcoin-core was shut down again. This surprised me so I checked it out.
To my surprise I found out
that computer2 used following folder structure for its block files:bitcoin@computer2:~/.bitcoin/blocks$ ls
blk03189.dat blk03198.dat blk03207.dat blk03216.dat rev03196.dat rev03205.dat rev03214.dat
blk03190.dat blk03199.dat blk03208.dat index rev03197.dat rev03206.dat rev03215.dat
blk03191.dat blk03200.dat blk03209.dat rev03189.dat rev03198.dat rev03207.dat rev03216.dat
blk03192.dat blk03201.dat blk03210.dat rev03190.dat rev03199.dat rev03208.dat
blk03193.dat blk03202.dat blk03211.dat rev03191.dat rev03200.dat rev03209.dat
blk03194.dat blk03203.dat blk03212.dat rev03192.dat rev03201.dat rev03210.dat
blk03195.dat blk03204.dat blk03213.dat rev03193.dat rev03202.dat rev03211.dat
blk03196.dat blk03205.dat blk03214.dat rev03194.dat rev03203.dat rev03212.dat
blk03197.dat blk03206.dat blk03215.dat rev03195.dat rev03204.dat rev03213.dat
bitcoin@computer2:~/.bitcoin/blocks$ ls index
001144.ldb 001239.ldb 001332.ldb 001395.ldb 001489.ldb 001497.ldb 001536.ldb 001573.ldb
001145.ldb 001240.ldb 001333.ldb 001396.ldb 001490.ldb 001498.ldb 001566.log CURRENT
001146.ldb 001241.ldb 001334.ldb 001397.ldb 001491.ldb 001530.ldb 001567.ldb LOCK
001147.ldb 001242.ldb 001335.ldb 001398.ldb 001492.ldb 001531.ldb 001568.ldb MANIFEST-001564
001235.ldb 001243.ldb 001336.ldb 001399.ldb 001493.ldb 001532.ldb 001569.ldb
001236.ldb 001244.ldb 001337.ldb 001400.ldb 001494.ldb 001533.ldb 001570.ldb
001237.ldb 001330.ldb 001393.ldb 001401.ldb 001495.ldb 001534.ldb 001571.ldb
001238.ldb 001331.ldb 001394.ldb 001402.ldb 001496.ldb 001535.ldb 001572.ldb
While
computer1 shows following structure:[bitcoin@computer1:~/.bitcoin/blocks]## ls
blocks index
[bitcoin@computer1:~/.bitcoin/blocks]# ls *
blocks:
blk03189.dat blk03197.dat blk03205.dat blk03213.dat rev03193.dat rev03201.dat rev03209.dat
blk03190.dat blk03198.dat blk03206.dat blk03214.dat rev03194.dat rev03202.dat rev03210.dat
blk03191.dat blk03199.dat blk03207.dat blk03215.dat rev03195.dat rev03203.dat rev03211.dat
blk03192.dat blk03200.dat blk03208.dat blk03216.dat rev03196.dat rev03204.dat rev03212.dat
blk03193.dat blk03201.dat blk03209.dat rev03189.dat rev03197.dat rev03205.dat rev03213.dat
blk03194.dat blk03202.dat blk03210.dat rev03190.dat rev03198.dat rev03206.dat rev03214.dat
blk03195.dat blk03203.dat blk03211.dat rev03191.dat rev03199.dat rev03207.dat rev03215.dat
blk03196.dat blk03204.dat blk03212.dat rev03192.dat rev03200.dat rev03208.dat rev03216.dat
index:
001144.ldb 001239.ldb 001332.ldb 001395.ldb 001489.ldb 001497.ldb 001536.ldb 001567.ldb
001145.ldb 001240.ldb 001333.ldb 001396.ldb 001490.ldb 001498.ldb 001560.log CURRENT
001146.ldb 001241.ldb 001334.ldb 001397.ldb 001491.ldb 001530.ldb 001561.ldb LOCK
001147.ldb 001242.ldb 001335.ldb 001398.ldb 001492.ldb 001531.ldb 001562.ldb MANIFEST-001559
001235.ldb 001243.ldb 001336.ldb 001399.ldb 001493.ldb 001532.ldb 001563.ldb
001236.ldb 001244.ldb 001337.ldb 001400.ldb 001494.ldb 001533.ldb 001564.ldb
001237.ldb 001330.ldb 001393.ldb 001401.ldb 001495.ldb 001534.ldb 001565.ldb
001238.ldb 001331.ldb 001394.ldb 001402.ldb 001496.ldb 001535.ldb 001566.ldb
(Question 1
) Simply said --> computer1 had no block files in its root folder ./blocks stored ! they are stored in another subfolder called blocks. Why did this happen, how is that possible, what caused this discrepancy ?
So after I copied the blocks/chainstate folder from computer2 to computer1, I had to manually create another sub-folder "blocks" on computer1 and move all *.dat files into this new subfolder. After that bitcoin-core started and found what it looked for and continued its work. However I am puzzled about this because as stated before both computers use the same bitcoin.conf, the configuration directives are exactly the same on both machines. Any clues ?
(Question 2
) My other question which unfortunately is still unanswered:
5.0 G chainstate
4.0 G blocks
I'd have expect to see only 4GB of data because I configured prune=4096 in my bitcoin.conf file.
Let's say I have 6 GB of free space which I like to run my pruned bitcoin-core node on, so I configure prune=4096 on my node. I would expect that the node would not occupy more than this. But as you see it occupied more than twice the configured size. In that case the node would not be able to run because the file space would have been filled up already. So why do I have two folders with 4GB, total 9GB in my real life example ? I would have expected to see only 4GB file space claimed here.
(Question 3
)As far as I understood it correctly according to
this wiki here ...
-prune=
Reduce storage requirements by enabling pruning (deleting) of old blocks. This allows the pruneblockchain RPC to be called to delete specific blocks, and enables automatic pruning of old blocks if a target size in MiB is provided. This mode is incompatible with -txindex, -coinstatsindex and -rescan. Warning: Reverting this setting requires re-downloading the entire blockchain. (default: 0 = disable pruning blocks, 1 = allow manual pruning via RPC, >=550 = automatically prune block files to stay under the specified target size in MiB)
... my pruned node should have no further restrictions except that I cannot use
-txindex,
-coinstatsindex and
-rescan, correct ? as long as I don't run/use the wallet function on that full-node I shouldn't miss anything important by those three switch functions, right?
Thus, I should not have any noticeable disadvantages with my pruned node, right?
(Question 4
)What about if I can't accept incoming connections on port 8333? Then my node only connects to a maximum of 10 outgoing nodes. Is that bad except that the whole network can't work correctly as peer-to-peer if everyone would operate it that way. But do I have any serious disadvantages otherwise?
EDIT: I guess I've found an
answer to this question. I conclude that it's not a real disadvantage when the node is running only as outbound. Of course it is not as much supportful for the network but I understand this. However, by the explained method using a TOR hidden service I could make it a supportful node again