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

Method unlockCoin

src/wallet/interfaces.cpp:237–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 return m_wallet->LockCoin(output, batch.get());
236 }
237 bool unlockCoin(const COutPoint& output) override
238 {
239 LOCK(m_wallet->cs_wallet);
240 std::unique_ptr<WalletBatch> batch = std::make_unique<WalletBatch>(m_wallet->GetDatabase());
241 return m_wallet->UnlockCoin(output, batch.get());
242 }
243 bool isLockedCoin(const COutPoint& output) override
244 {
245 LOCK(m_wallet->cs_wallet);

Callers

nothing calls this directly

Calls 2

UnlockCoinMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected