From de4cfb1581c8c04c4000b6ed9c39daedb61a4bf8 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 12 Mar 2015 19:48:15 +0000 Subject: [PATCH] Avoid DB collision. --- libethereum/BlockChain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libethereum/BlockChain.cpp b/libethereum/BlockChain.cpp index d8a3e0ace..e781be8f5 100644 --- a/libethereum/BlockChain.cpp +++ b/libethereum/BlockChain.cpp @@ -71,7 +71,7 @@ ldb::Slice dev::eth::toSlice(h256 _h, unsigned _sub) static boost::thread_specific_ptr t_h; if (!t_h.get()) t_h.reset(new h256); - *t_h = _h ^ h256(u256(_sub)); + *t_h = _h ^ sha3(h256(u256(_sub))); return ldb::Slice((char const*)t_h.get(), 32); #endif }