libconsensus-p2a: Decouple pow.o from chain.o and move it to the consensus package #7563

pull jtimon wants to merge 3 commits into bitcoin:master from jtimon:libconsensus-p2a-chain-cpp-interface-0.12.99 changing 6 files +77 −25
  1. jtimon commented at 1:27 am on February 20, 2016: contributor

    If we agree that libbitcoinconsensus should not depend on chain.o, we need some other dependency as a requirement. This same thing could be done with a “final” almost-C-ready API instead of a CPP abstract class (and that was my initial idea), but that would be more disruptive and harder to review.

    Not introducing a non-storage interface for CBlockIndex is blocking the following things:

    • Decouple pow.o from chain.o and move it to the consensus package
    • This will allow us to decouple consensus/consensus.cpp from chain.o right away (once #7310 or similar is merged)
    • This will allow new consensus code (for example, an implementation of bip9) to avoid depending on CBlockIndex. This will also allow to s/CBlockIndex/CBlockIndexView in small encapsulation commits while minimizing disruption.
  2. jtimon force-pushed on Feb 20, 2016
  3. jonasschnelli added the label Refactoring on Feb 20, 2016
  4. jtimon force-pushed on Feb 24, 2016
  5. Consensus: Introduce CBlockIndexView in consensus/storage_interfaces_cpp.h 5912ba295e
  6. Consensus: Make CBlockIndex(chain.h) an implementation of CBlockIndexView ecc0774edb
  7. Consensus: Decouple pow.o from chain.o bf26c10b28
  8. jtimon force-pushed on Feb 24, 2016
  9. jtimon referenced this in commit 218d2fdcbf on Mar 3, 2016
  10. jtimon closed this on Mar 3, 2016

  11. DrahtBot locked this on Sep 8, 2021


jtimon

Labels
Refactoring


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: 2024-12-19 00:12 UTC

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