Enable leveldb obfuscation for new databases #7923

pull kazcw wants to merge 1 commits into bitcoin:master from kazcw:obfuscate changing 1 files +1 −1
  1. kazcw commented at 2:00 AM on April 22, 2016: contributor

    This was implemented some time ago in #6650 to fix #6613 but does not appear ever to have been enabled under any circumstances outside of test/.

    On a recent fresh install I'm seeing a null encryption key, and I don't see anywhere a CDBWrapper is ever created with a non-default obfuscate parameter (the default is false).

  2. Enable leveldb obfuscation for new databases
    This was implemented some time ago in #6650 to fix #6613 but does not appear
    ever to have been enabled under any circumstances outside of test/
    7a539dec7c
  3. gmaxwell commented at 2:04 AM on April 22, 2016: contributor

    Only the chainstate database is obfscuated because only it contains non-trivial amounts of potentially malicious input.

    CCoinsViewDB::CCoinsViewDB(size_t nCacheSize, bool fMemory, bool fWipe) : db(GetDataDir() / "chainstate", nCacheSize, fMemory, fWipe, true)

    Also, I see it fine in logs:

    2016-04-18 19:08:12 Using obfuscation key for /root/.bitcoin/chainstate: de0e9b59430e40f1

  4. kazcw commented at 2:08 AM on April 22, 2016: contributor

    Oh, false alarm. I must have had old .bitcoin files on this machine and missed that instantiation in the grep.

  5. kazcw closed this on Apr 22, 2016

  6. kazcw deleted the branch on Apr 22, 2016
  7. MarcoFalke locked this on Sep 8, 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-27 21:15 UTC

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