From e2d7e4713a5d5b4196f62500e738bda593443141 Mon Sep 17 00:00:00 2001 From: Jianping Wu Date: Thu, 1 Nov 2018 22:18:27 -0700 Subject: [PATCH] Fixed cached namespace. --- src/validation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/validation.cpp b/src/validation.cpp index 93160f465..9b36ca52e 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -686,6 +686,10 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool const valtype& nameSpace = kevaOp.getOpNamespace(); const valtype& key = kevaOp.getOpKey(); CKevaData data; + // Make sure namespace info is in cache. + if (view.GetNamespace(nameSpace, data)) { + view.SetName(nameSpace, ValtypeFromString(CKevaScript::KEVA_DISPLAY_NAME_KEY), data, false); + } if (view.GetName(nameSpace, key, data)) { view.SetName(nameSpace, key, data, false); }