Title: adjust block chain memory usage Post by: phillip1882 on October 06, 2018, 12:24:21 PM how can i adjust bitcoin memory use age, i don't want more than 5 days worth of blockchain data.
Title: Re: adjust block chain memory usage Post by: AdolfinWolf on October 06, 2018, 12:31:25 PM how can i adjust bitcoin memory use age, i don't want more than 5 days worth of blockchain data. If i'm understanding your question correctly, what you're looking for is pruning? There's several guides online which show you exactly how to do this. See https://bitcoin.stackexchange.com/questions/37496/how-can-i-run-bitcoind-in-pruning-mode Quote -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 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) Or alternatively follow something like https://coinguides.org/bitcoin-blockchain-pruning/ Do note that you still will have to download/verify the entire chain (140+ GB of data) The blockchain size 5/6 days ago was roughly 184.487 MB, vs 185.128mb now. I guess you should be able to calculate rather easily how much MB you'll need to allocate to save only the last 5 days. Code: 185.128 - 184.487 =~ 641 MB Title: Re: adjust block chain memory usage Post by: phillip1882 on October 08, 2018, 06:47:04 PM i set pruning so that no more than a gigabyte is used, but it doesn't seem to be working bitcoin is still using a large amount of data. any suggestions?
Title: Re: adjust block chain memory usage Post by: bob123 on October 09, 2018, 07:48:11 AM Are you concerned about your local storage or the data it needs to transmit via your network ?
Pruning limits the space core will take on your hard drive. But all blocks still have to be downloaded and verified by your node. Core just won't keep more blocks (in Mb) than set when using prune=N. Title: Re: adjust block chain memory usage Post by: mocacinno on October 09, 2018, 07:51:27 AM I don't really get your question either, like others have asked before:
Anyways, i'd say that pointing you towards an SPV wallet would be the best course of action... I'd like to recommand either a hardware wallet (in case you have a lot of funds invested in crypto) or electrum (https://electrum.org/#home) An SPV wallet only downloads the block headers, the wallet only keeps the xprv and the metadata you added... I haven't run electrum in a while, but i guess the total diskpace used by the binary, the wallet and the headers is <100Mb (confirmation needed). Also, the amount of data transfered is small, and the memory footprint is a lot smaller than bitcoin core. The downside is that you won't be verifying the blocks yourself, and you need to be connected to a thirth party electrum server... |