Skip to content
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

(WIP) Use cp_height for checkpoints #173

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Commits on Nov 5, 2019

  1. Use cp_height for checkpoints.

    This is a rough port of abf12b6 by
    rt121212121 from Electron-Cash.
    
    Cherry-picked from 19c2962
    
    Conflicts:
    	electrum/blockchain.py
    	electrum/checkpoints.json
    	electrum/checkpoints_testnet.json
    	electrum/interface.py
    
    Conflicts:
    	electrum_nmc/electrum/blockchain.py
    	electrum_nmc/electrum/constants.py
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    032dc59 View commit details
    Browse the repository at this point in the history
  2. Add test for blockchain.get_chainwork

    Cherry-picked from 2d88b8b.
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    66d203b View commit details
    Browse the repository at this point in the history
  3. Add timestamp and chainwork to checkpoint

    Cherry-picked from 2805cde
    
    Conflicts:
    	electrum_nmc/electrum/blockchain.py
    	electrum_nmc/electrum/constants.py
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    c590bf4 View commit details
    Browse the repository at this point in the history
  4. Eliminate obsolete special case from request_chunk

    Cherry-picked from 64d9f08
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    ef433c9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cda5aa4 View commit details
    Browse the repository at this point in the history
  6. Add bits to checkpoint

    Cherry-picked from 9d46205
    
    Conflicts:
    	electrum_nmc/electrum/constants.py
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    9a594af View commit details
    Browse the repository at this point in the history
  7. Refactor cp_height checkpoints' usage of header parsing

    This makes it easier for Electrum forks to support alternate header
    formats such as AuxPoW.
    
    Cherry-picked from baff006.
    
    Conflicts:
    	electrum/blockchain.py
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    570f828 View commit details
    Browse the repository at this point in the history
  8. Add prev_hash to cp_height checkpoint logic

    Cherry-picked from 67d3abc
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    057098b View commit details
    Browse the repository at this point in the history
  9. Load cp_height checkpoints from JSON file instead of constants.py

    Cherry-picked from 20df0fa
    
    Conflicts:
    	electrum_nmc/electrum/constants.py
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    0f195dc View commit details
    Browse the repository at this point in the history
  10. Use verifier.py's hash_merkle_root for checkpoints

    Cherry-picked from 73bc591
    
    Move hash_merkle_root to blockchain.py to avoid circular imports.
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    4c67dde View commit details
    Browse the repository at this point in the history
  11. (WIP) Namecoin / AuxPoW: Adapt cp_height checkpoints for AuxPoW

    TODO: Needs rebase once cp_height merged upstream.
    
    Cherry-picked from 5b99b38
    
    Based on:
    
    e69fbd8
    98c4936
    b34bfa6
    a9b43ba
    bca0ded
    7db5c69
    55b85d9
    14ea0aa
    16fe405
    b997b13
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    f617e12 View commit details
    Browse the repository at this point in the history
  12. (WIP) Namecoin / AuxPoW: Fix get_block_header parsing for cp_height

    TODO: Needs rebase once cp_height merged upstream.
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    47367dc View commit details
    Browse the repository at this point in the history
  13. (WIP) Namecoin / AuxPoW: Fix checkpoint exporting

    TODO: Needs rebase once cp_height merged upstream.
    JeremyRand committed Nov 5, 2019
    Configuration menu
    Copy the full SHA
    ff170e4 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2019

  1. (WIP) Namecoin: Set cp_height checkpoint at height 476759

    TODO: Needs rebase once cp_height merged upstream.
    JeremyRand committed Nov 7, 2019
    Configuration menu
    Copy the full SHA
    b2dd935 View commit details
    Browse the repository at this point in the history
  2. (WIP) Namecoin: Fix cp_height for Timewarp Hardfork

    TODO: Needs rebase once cp_height merged upstream.
    
    Cherry-picked from 342728a
    JeremyRand committed Nov 7, 2019
    Configuration menu
    Copy the full SHA
    e98e315 View commit details
    Browse the repository at this point in the history