-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Update chainparams for 24.0 release #25946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Approach ACK 0d3f35d Compared chain params with my local chains: mainCompared
Not sure where the difference of 1 to 496 for Rounding 5.28 up would lead to 6 for Compared
Compared
testnet3Compared m_assumed_blockchain_size and m_assumed_chain_state_size: ?
Why 42 for 2 for Compared
Compared
|
Don't forget that this update should be reviewed with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 767d825
Verified data using existing nodes and ran a full sync with -assumevalid=0 -minimumchainwork=00000000000000000000000000000000000000003404ba0801921119f903495e
on a recent version of master now (and without checkpoints, for good measure, see #25725). Update, note to self: don't forget to set -dbcache
to some big number if you don't want to wait forever.
Also ran a full sync on signet and testnet.
@@ -107,7 +107,7 @@ class CMainParams : public CChainParams { | |||
pchMessageStart[3] = 0xd9; | |||
nDefaultPort = 8333; | |||
nPruneAfterHeight = 100000; | |||
m_assumed_blockchain_size = 460; | |||
m_assumed_blockchain_size = 496; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Between three machine I get 449, 451 and 459 GB for the blocks dir, using du -h
(blocks + chainstate dir). Multiplied by 1.1 that would make between 494 and 505 GB. So based on the methodology used in 23.0 your pick of 496 looks correct to me.
The instructions are outdated compared to what @laanwj did last time.
/* nTxCount */ 712531200, | ||
/* dTxRate */ 2.891036496010309, | ||
// Data from RPC: getchaintxstats 4096 00000000000000000009c97098b5295f7e5f183ac811fb5d1534040adb93cabd | ||
.nTime = 1661697692, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's indeed a nicer way to format this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 767d825
|
||
pchMessageStart[0] = 0x0b; | ||
pchMessageStart[1] = 0x11; | ||
pchMessageStart[2] = 0x09; | ||
pchMessageStart[3] = 0x07; | ||
nDefaultPort = 18333; | ||
nPruneAfterHeight = 1000; | ||
m_assumed_blockchain_size = 40; | ||
m_assumed_blockchain_size = 42; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my node, it's only 32 GB. With 10% buffer, that's only 35.2, so this probably doesn't need to updated?
$ du -h --exclude=wallets --exclude=indexes testnet3/ 04:23:29 PM
188K testnet3/database
335M testnet3/blocks/index
30G testnet3/blocks
1.5G testnet3/chainstate
32G testnet3/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also get 29G for the blocks, plus 0.5 for blocks/index. That's on a freshly synced node. Perhaps a node that went through many reorgs uses a bit more.
Update chain parameters for upcoming major release.
See doc/release-process.md and #24418 for review instructions.
fixes #25921