chainparams: Bump assumed valid hash #18500

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2004-chainparamsBump changing 1 files +14 −14
  1. in src/chainparams.cpp:104 in 7777ce1752 outdated
      99 | @@ -100,8 +100,8 @@ class CMainParams : public CChainParams {
     100 |          pchMessageStart[3] = 0xd9;
     101 |          nDefaultPort = 8333;
     102 |          nPruneAfterHeight = 100000;
     103 | -        m_assumed_blockchain_size = 280;
     104 | -        m_assumed_chain_state_size = 4;
     105 | +        m_assumed_blockchain_size = 320;
     106 | +        m_assumed_chain_state_size = 6;
    


    sipa commented at 6:54 PM on April 1, 2020:

    My chainstate/ dir is 3.8 GB. Are you increasing this to give some room for expansion, or seeing different numbers than I do?


    MarcoFalke commented at 8:47 PM on April 1, 2020:

    How do you check the size of the chainstate dir?

    $ du -sh ~/Downloads/bm/chainstate/
    4.6G	/home/marco/Downloads/bm/chainstate/
    

    instagibbs commented at 8:48 PM on April 1, 2020:
    du -sh ~/.bitcoin/chainstate/
    3.8G	/home/instagibbs/.bitcoin/chainstate/
    
  2. in src/chainparams.cpp:90 in 7777ce1752 outdated
      83 | @@ -84,10 +84,10 @@ class CMainParams : public CChainParams {
      84 |          consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008
      85 |  
      86 |          // The best chain should have at least this much work.
      87 | -        consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000008ea3cf107ae0dec57f03fe8");
      88 | +        consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000e1ab5ec9348e9f4b8eb8154");
      89 |  
      90 |          // By default assume that the signatures in ancestors of this block are valid.
      91 | -        consensus.defaultAssumeValid = uint256S("0x00000000000000000005f8920febd3925f8272a6a71237563d78c2edfdd09ddf"); // 597379
      92 | +        consensus.defaultAssumeValid = uint256S("0x0000000000000000000f2adce67e49b0b6bdeb9de8b7c3d7e93b21e7fc1e819d"); // 623950
    


    instagibbs commented at 7:10 PM on April 1, 2020:

    ACK hash, height on personal node

  3. DrahtBot added the label Validation on Apr 1, 2020
  4. MarcoFalke added this to the milestone 0.20.0 on Apr 1, 2020
  5. chainparams: Bump assumed valid hash 222253e37d
  6. MarcoFalke force-pushed on Apr 1, 2020
  7. fanquake approved
  8. fanquake commented at 8:47 AM on April 2, 2020: member

    ACK 222253e37d9702181fe754d776177962d6794f30 - matches output on my node. Also have 3.8GB for the chainstate dir. If anyone wants to know what commands they should run / what to check; I have some docs on assumevalid updates.

  9. elichai approved
  10. elichai commented at 10:31 AM on April 2, 2020: contributor

    ACK 222253e37d9702181fe754d776177962d6794f30 All the mainnet params match my local node. Have 3.7GB chainstate dir, and 287GB blocks dir.

  11. MarcoFalke closed this on Apr 2, 2020

  12. MarcoFalke reopened this on Apr 2, 2020

  13. theStack approved
  14. theStack commented at 12:33 PM on April 2, 2020: member

    ACK https://github.com/bitcoin/bitcoin/pull/18500/commits/222253e37d9702181fe754d776177962d6794f30 Verified the parameters on my node with:

    $ bitcoin-cli getblockstats 623950
    $ bitcoin-cli getblock 0000000000000000000f2adce67e49b0b6bdeb9de8b7c3d7e93b21e7fc1e819d
    $ bitcoin-cli getchaintxstats 4096 0000000000000000000f2adce67e49b0b6bdeb9de8b7c3d7e93b21e7fc1e819d
    

    The same procedure also for the testnet. Mainnet chainstate dir has 3.8GB size, blocks dir has 287GB. Testnet chainstate dir has 16KB size, blocks dir has 26GB.

  15. instagibbs approved
  16. instagibbs commented at 1:10 PM on April 2, 2020: member
  17. laanwj merged this on Apr 2, 2020
  18. laanwj closed this on Apr 2, 2020

  19. MarcoFalke deleted the branch on Apr 2, 2020
  20. DrahtBot locked this on Feb 15, 2022

Milestone
0.20.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 06:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me