Bitcoin Forum
September 18, 2019, 03:18:21 PM *
News: Latest Bitcoin Core release: 0.18.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why is 550 (MiB) chosen for minimum storage size for prune mode?  (Read 77 times)
Behrad
Newbie
*
Offline Offline

Activity: 15
Merit: 6


View Profile
September 01, 2019, 09:51:51 PM
Merited by LoyceV (2), ETFbitcoin (1)
 #1

As you know Bitcoind can run in pruned mode, thus not advertising blocks to other nodes. Even though it has some drawbacks, saving you storage space isn't a benefit you can ignore.

My question is about the magic 550(MiB) default/minimum number. Why they've selected that limit? (& Why not less or more?)

I know it implicitly indicates blocks will be kept for the last (about) 3.8 days (91 hours) (one MiB because of one block every 10 minutes). But where that number come from? I know there is also a dust limit equal to 546 Satoshis.[182*3 ~ 550 here! Even though it is unlikely to be related to this case]

Would you please explaining what the logic behind 550 is? Is there any kind of difficulty level relating to 51% attack or any other stuff like that?
1568819901
Hero Member
*
Offline Offline

Posts: 1568819901

View Profile Personal Message (Offline)

Ignore
1568819901
Reply with quote  #2

1568819901
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1568819901
Hero Member
*
Offline Offline

Posts: 1568819901

View Profile Personal Message (Offline)

Ignore
1568819901
Reply with quote  #2

1568819901
Report to moderator
BitCryptex
Hero Member
*****
Online Online

Activity: 700
Merit: 1013


Write @BitCryptex or quote my post to notify me


View Profile WWW
September 01, 2019, 10:01:45 PM
Merited by achow101 (2), LoyceV (2), darosior (2), ETFbitcoin (1), Behrad (1)
 #2

Would you please explaining what the logic behind 550 is? Is there any kind of difficulty level relating to 51% attack or any other stuff like that?

Basically, pruned nodes should be able to withstand chain reorganizations lasting at least 2 days. Take a look at the following quote for more detailed explanation.

The minimum allowed is 550MB. Note that this is in addition to whatever is required for the block index and UTXO databases. The minimum was chosen so that Bitcoin Core will be able to maintain at least 288 blocks on disk (two days worth of blocks at 10 minutes per block). In rare instances it is possible that the amount of space used will exceed the pruning target in order to keep the required last 288 blocks on disk.

Behrad
Newbie
*
Offline Offline

Activity: 15
Merit: 6


View Profile
September 01, 2019, 11:43:24 PM
 #3

Thank you @BitCryptex for the great starting point in Github issues. Just reviewed all pruning related stuff at 0.11 Changelog & later versions.

Say, I had just 1 sMerit & couldn't send more than that to you! But I appreciate your answer much more! Smiley
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!