MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / SetExecuteFail

Method SetExecuteFail

src/persistence/logdb.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "config/chainparams.h"
8
9bool CLogDBCache::SetExecuteFail(const int32_t blockHeight, const uint256 txid, const uint8_t errorCode,
10 const string &errorMessage) {
11 if (!SysCfg().IsLogFailures())
12 return true;
13 return executeFailCache.SetData(make_pair(CFixedUInt32(blockHeight), txid),
14 std::make_pair(errorCode, errorMessage));
15}
16
17void CLogDBCache::Flush() { executeFailCache.Flush(); }

Callers 4

ConnectBlockFunction · 0.80
CheckTxInMemPoolMethod · 0.80

Calls 2

IsLogFailuresMethod · 0.80
SetDataMethod · 0.45

Tested by

no test coverage detected