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

Method AddBlockTx

src/persistence/txdb.cpp:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <algorithm>
16
17bool CTxMemCache::AddBlockTx(const CBlock &block) {
18 for (auto &ptx : block.vptx) {
19 txids[ptx->GetHash()] = true;
20 }
21 return true;
22}
23
24bool CTxMemCache::RemoveBlockTx(const CBlock &block) {
25 for (auto &ptx : block.vptx) {

Callers 4

AppInitFunction · 0.80
DisconnectBlockFunction · 0.80
ConnectBlockFunction · 0.80
reloadtxcacheFunction · 0.80

Calls 1

GetHashMethod · 0.45

Tested by

no test coverage detected