]> Git Repo - VerusCoin.git/blobdiff - src/txdb.cpp
Do not encode leading bytes in `PaymentAddress` serialization; this is a task for...
[VerusCoin.git] / src / txdb.cpp
index 5ad5eb1f18aab1b109fb2771ba5aebca8374fffb..5e971a827449b87ca742e3dfa6f9838155a676d7 100644 (file)
@@ -70,7 +70,7 @@ CCoinsViewDB::CCoinsViewDB(size_t nCacheSize, bool fMemory, bool fWipe) : db(Get
 
 
 bool CCoinsViewDB::GetAnchorAt(const uint256 &rt, ZCIncrementalMerkleTree &tree) const {
-    if (rt.IsNull()) {
+    if (rt == ZCIncrementalMerkleTree::empty_root()) {
         ZCIncrementalMerkleTree new_tree;
         tree = new_tree;
         return true;
@@ -106,7 +106,7 @@ uint256 CCoinsViewDB::GetBestBlock() const {
 uint256 CCoinsViewDB::GetBestAnchor() const {
     uint256 hashBestAnchor;
     if (!db.Read(DB_BEST_ANCHOR, hashBestAnchor))
-        return uint256();
+        return ZCIncrementalMerkleTree::empty_root();
     return hashBestAnchor;
 }
 
This page took 0.021214 seconds and 4 git commands to generate.