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

Method reserve

src/rpc/blockchain.cpp:2644–2652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2642 explicit CoinsViewScanReserver() : m_could_reserve(false) {}
2643
2644 bool reserve() {
2645 CHECK_NONFATAL(!m_could_reserve);
2646 if (g_scan_in_progress.exchange(true)) {
2647 return false;
2648 }
2649 CHECK_NONFATAL(g_scan_progress == 0);
2650 m_could_reserve = true;
2651 return true;
2652 }
2653
2654 ~CoinsViewScanReserver() {
2655 if (m_could_reserve) {

Callers 4

testmempoolacceptFunction · 0.45
ShellQuoteFunction · 0.45
SoftForkDescPushBackFunction · 0.45
scantxoutsetFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected