MCPcopy Create free account
hub / github.com/ElementsProject/elements / AddRef

Method AddRef

src/wallet/bdb.cpp:805–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805void BerkeleyDatabase::AddRef()
806{
807 LOCK(cs_db);
808 if (m_refcount < 0) {
809 m_refcount = 1;
810 } else {
811 m_refcount++;
812 }
813}
814
815void BerkeleyDatabase::RemoveRef()
816{

Callers 2

BerkeleyBatchMethod · 0.45
FUZZ_TARGET_INITFunction · 0.45

Calls

no outgoing calls

Tested by 1

FUZZ_TARGET_INITFunction · 0.36