bitcoin-tools / bitcoin-tools/nodebuilder
[FEAT] - use Bitcoin Core's chain params for archival node size
Open
feature
- Dominant language
- Shell
- Stars
- 7
- Forks
- 0
- Avg merge
- 2h 37m
- Merged PRs (30d)
- 28
Description
### Describe the Problem
Using empirical data from my own archival node
### Describe the Solution
Use the hard-coded parameters in Bitcoin Core's source code:
```
curl -fsSL https://github.com/bitcoin/bitcoin/raw/master/src/kernel/chainparams.cpp | grep -A 100 CMainParams > /tmp/testfile
BITCOIN_CORE_BLOCKCHAIN_SIZE_IN_GIB="$(grep assumed_blockchain_size /tmp/testfile | cut -d= -f2 | tr -d ' ;')"
BITCOIN_CORE_CHAINSTATE_SIZE_IN_GIB="$(grep assumed_chain_state_size /tmp/testfile | cut -d= -f2 | tr -d ' ;')"
```
### Optional Additional Details
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.