bitcoin-tools / bitcoin-tools/nodebuilder

[FEAT] - use Bitcoin Core's chain params for archival node size

Open
#1,501 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.