aboutsummaryrefslogtreecommitdiffstats
path: root/TrieHash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TrieHash.cpp')
-rw-r--r--TrieHash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/TrieHash.cpp b/TrieHash.cpp
index af32e870..ee4f2e87 100644
--- a/TrieHash.cpp
+++ b/TrieHash.cpp
@@ -162,7 +162,7 @@ h256 hash256(StringMap const& _s)
{
// build patricia tree.
if (_s.empty())
- return h256();
+ return sha3(rlp(""));
HexMap hexMap;
for (auto i = _s.rbegin(); i != _s.rend(); ++i)
hexMap[asNibbles(i->first)] = i->second;
@@ -175,7 +175,7 @@ bytes rlp256(StringMap const& _s)
{
// build patricia tree.
if (_s.empty())
- return bytes();
+ return rlp("");
HexMap hexMap;
for (auto i = _s.rbegin(); i != _s.rend(); ++i)
hexMap[asNibbles(i->first)] = i->second;
@@ -188,7 +188,7 @@ h256 hash256(u256Map const& _s)
{
// build patricia tree.
if (_s.empty())
- return h256();
+ return sha3(rlp(""));
HexMap hexMap;
for (auto i = _s.rbegin(); i != _s.rend(); ++i)
hexMap[asNibbles(toBigEndianString(i->first))] = asString(rlp(i->second));