When I create a new wallet under 0.13.0rc1 sometimes the file size of wallet.dat is 96KiB and sometimes it is 112KiB. Is this expected behavior? I do not see any difference in the log file.
New wallet.dat is not always the same size under 0.13.0rc1 #8401
issue keystrike opened this issue on July 24, 2016-
keystrike commented at 11:20 PM on July 24, 2016: contributor
-
pstratem commented at 12:39 AM on July 25, 2016: contributor
@keystrike wallet.dat is berkeley db file; the internal structure of which is more than a little weird
- jonasschnelli added the label Wallet on Jul 25, 2016
-
laanwj commented at 12:22 PM on July 25, 2016: member
It's curious, but this IMO is not an issue that merits deeper investigation. My guess would be: berkeleydb internally uses some kind of hash table, and its growth depends on just how the keys end up in the hash buckets. If it turns out lucky you end up with a smaller file, if not and a bucket overflows, it grows by a size increment.
- laanwj closed this on Jul 25, 2016
- MarcoFalke locked this on Sep 8, 2021