MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / reserve

Method reserve

src/rpc/blockchain.cpp:2271–2279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2269 explicit CoinsViewScanReserver() = default;
2270
2271 bool reserve() {
2272 CHECK_NONFATAL(!m_could_reserve);
2273 if (g_scan_in_progress.exchange(true)) {
2274 return false;
2275 }
2276 CHECK_NONFATAL(g_scan_progress == 0);
2277 m_could_reserve = true;
2278 return true;
2279 }
2280
2281 ~CoinsViewScanReserver() {
2282 if (m_could_reserve) {

Callers 15

testmempoolacceptFunction · 0.45
mempool.cppFile · 0.45
gettxspendingprevoutFunction · 0.45
submitpackageFunction · 0.45
helpMethod · 0.45
listCommandsMethod · 0.45
ShellQuoteFunction · 0.45
GetArgNamesMethod · 0.45
ElideGroupFunction · 0.45
createmultisigFunction · 0.45
TxDocFunction · 0.45
blockToJSONFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected