Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
805
void BerkeleyDatabase::AddRef()
806
{
807
LOCK(cs_db);
808
if (m_refcount < 0) {
809
m_refcount = 1;
810
} else {
811
m_refcount++;
812
}
813
}
814
815
void BerkeleyDatabase::RemoveRef()
816
{
Callers
2
BerkeleyBatch
Method · 0.45
FUZZ_TARGET_INIT
Function · 0.45
Calls
no outgoing calls
Tested by
1
FUZZ_TARGET_INIT
Function · 0.36