Use leveldb subtree from the repo instead of a local approach #17476

issue emilengler opened this issue on November 14, 2019
  1. emilengler commented at 3:47 PM on November 14, 2019: contributor

    Wouldn't it be a good idea to manually clone the leveldb subtree and use it for the compilation instead of always updating the leveldb/ directory in this repository? For better security, a commit hash from the other repo could be hard coded into the build system so the leveldb subtree repo can't be corrupted.

    The downside would be that it would not be possible to compile offline but the DL process could be done at a very early stage like the configure

  2. emilengler added the label Feature on Nov 14, 2019
  3. MarcoFalke commented at 3:53 PM on November 14, 2019: member

    I fail to see which problem that would solve, ignoring the problems it introduces

  4. fanquake commented at 6:34 PM on November 14, 2019: member

    Wouldn't it be a good idea to

    You haven't explained why you think this would be better. Regardless, we aren't about to change our use of sub-modules.

  5. fanquake removed the label Feature on Nov 14, 2019
  6. fanquake added the label Build system on Nov 14, 2019
  7. emilengler commented at 8:30 PM on November 14, 2019: contributor

    Ok sorry forgot that. The advantage would be that we don't need to always update the leveldb tree in this repository, we can directly use our fork.

  8. sipa commented at 9:34 PM on November 14, 2019: member

    How is updating the tree harder than updating the commit id of what the build system uses?

    It's just an git subtree merge command.

  9. laanwj commented at 9:57 AM on November 15, 2019: member

    There's no reason to change this, so let's leave it alone. We have 757 open issues and 303 PRs, please don't create problems where there are none.

    (FWIW, the original reason to include leveldb in the tree, was that it's indirectly part of consensus. This is still the case)

  10. laanwj closed this on Nov 15, 2019

  11. DrahtBot locked this on Dec 16, 2021

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

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