Pow: Introduce MaybeGenerateProof #10668

pull jtimon wants to merge 25 commits into bitcoin:master from jtimon:b15-blocksign changing 41 files +648 −134
  1. jtimon commented at 8:48 AM on June 25, 2017: contributor

    No description provided.

  2. 9102: Really don't validate genesis block 822144975d
  3. Testchains: Generic selection with -chain=<str> in addition of -testnet and -regtest 523ce607f3
  4. Testchains: Introduce custom chain whose constructor...
    ...reads params from regular arguments or the general conf file
    
    Also expose CreateChainParams(const std::string&, ArgsManager&) for tests
    9fd45b42df
  5. Testchains: Qt: Simplify network/chain styles and add a default purple
    ...for unkown chains
    4e38b0daa4
  6. QA: Adapt BitcoinTestFramework for chains other than "regtest" 9e4953e09b
  7. QA: Use custom chain instead of regtest for rpc tests (except segwit) be4d0a6705
  8. Testchains: Only load custom chainparams config from a separated file 4998d06078
  9. Pow: Introduce MaybeGenerateProof c10529481c
  10. Optimization: Pass pre-calculated const uint256& block_hash through more functions
    - Pow: Pass const uint256& block_hash to s/CheckBlockHeader/CheckProofOfWork/
      Optimization because AcceptBlockHeader had the hash calculated already
    - Pass const uint256& block_hash to CheckBlock
      Optimization because now ConnectBlock calls CBlock::GetHash() less times
    - Pass const uint256& block_hash to ConnectBlock
      Optimization because TestBlockValidity had calculated block_hash already
    - Pass const uint256& block_hash to AcceptBlock
      Optimization because now AcceptBlock reuses CBlock::GetHash() calculation from ProcessNewBlock
    - Pass const uint256& block_hash to ProcessNewBlock
    - Call CBlock::GetHash() less in net_processing::ProcessMessage()
    - Pass const uint256& block_hash to TestBlockValidity
      Optimization because getblocktemplate had the hash calculated already
    ef436d2bd7
  11. Pow: Remove fCheckPOW from CheckBlockHeader 990716f1fd
  12. Pow: Introduce GenerateProof: Encapsulate nNonce in tests with GenerateProof c52b065c8a
  13. SB: Introduce s/CheckBlockHeader/CheckProof/
    Introduce rename CheckBlockHeader to CheckProof, move it to pow and
    wrap uses of CheckProofOfWork around it
    da1ce302fc
  14. TODO: Doc: Pow: Performance hit dd23d4ecc6
  15. Make CheckProofOfWork static 6066769486
  16. UnitTest: Script: Templated tests for generic signing b2daa68806
  17. TODO: Testchains: Extend generic.hpp and test/generic_sign_tests.cpp 7cf562e228
  18. Testchains: Introduce ResetProof(CBlockHeader*) 874f3e144b
  19. Testchains: Introduce blocksignScript chainparam ad95b8babe
  20. Testchains: Introduce attribute blockScript in CBlockHeader and CBlockIndex 3d75c282c1
  21. ERROR: SB: Testchains: Pass const CKeyStore* to MaybeGenerateProof e03a41a0c4
  22. SB: Feature: Testchains: Support block signed custom testchains e04e8a1473
  23. TODO: pytest: A python test that fails for custom con_blocksignscript 1de5d81b6d
  24. TODO: UnitTest: BlockSign: Test signed blocks functionality 86a614ecf8
  25. More untittests but mostly commented 61eebe2bae
  26. extra: Pow: Logs: Use CValidationState inside CheckProofOfWork 2633f50f98
  27. jtimon closed this on Jun 25, 2017

  28. DrahtBot locked this on Sep 8, 2021
Contributors

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 15:15 UTC

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