Bitcoind

非混淆鏈狀態數據

  • November 15, 2017

我想知道是否有一個標誌允許在bitcoind不使用obfuscation keyfor 的情況下執行chainstate。我一直沒能找到它。

要添加到同名的答案,禁用它,註釋掉這部分程式碼:

<https://github.com/bitcoin/bitcoin/blob/50fae68d416b4b8ec4ca192923dfd5ae9ea42773/src/dbwrapper.cpp#L129-L139>

if (!key_exists && obfuscate && IsEmpty()) {
   // Initialize non-degenerate obfuscation if it won't upset
   // existing, non-obfuscated data.
   std::vector&lt;unsigned char&gt; new_key = CreateObfuscateKey();

   // Write `new_key` so we don't obfuscate the key with itself
   Write(OBFUSCATE_KEY_KEY, new_key);
   obfuscate_key = new_key;

   LogPrintf("Wrote new obfuscate key for %s: %s\n", path.string(), HexStr(obfuscate_key));
}

然後重新編譯,然後刪除現有的鏈狀態。(此更改只會導致它停止生成混淆密鑰,它不會取消混淆數據。)

引用自:https://bitcoin.stackexchange.com/questions/62690