Browse Source

Fixed cached namespace.

0.16.3-insta
Jianping Wu 6 years ago
parent
commit
e2d7e4713a
  1. 4
      src/validation.cpp

4
src/validation.cpp

@ -686,6 +686,10 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
const valtype& nameSpace = kevaOp.getOpNamespace(); const valtype& nameSpace = kevaOp.getOpNamespace();
const valtype& key = kevaOp.getOpKey(); const valtype& key = kevaOp.getOpKey();
CKevaData data; 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)) { if (view.GetName(nameSpace, key, data)) {
view.SetName(nameSpace, key, data, false); view.SetName(nameSpace, key, data, false);
} }

Loading…
Cancel
Save