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

Function InputIsMine

src/wallet/receive.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12namespace wallet {
13bool InputIsMine(const CWallet& wallet, const CTxIn& txin)
14{
15 AssertLockHeld(wallet.cs_wallet);
16 const CWalletTx* prev = wallet.GetWalletTx(txin.prevout.hash);
17 if (prev && txin.prevout.n < prev->tx->vout.size()) {
18 return wallet.IsMine(prev->tx->vout[txin.prevout.n]);
19 }
20 return false;
21}
22
23bool AllInputsMine(const CWallet& wallet, const CTransaction& tx)
24{

Callers 4

AllInputsMineFunction · 0.85
GetAddressGroupingsFunction · 0.85
MakeWalletTxFunction · 0.85
txinIsMineMethod · 0.85

Calls 3

GetWalletTxMethod · 0.80
sizeMethod · 0.45
IsMineMethod · 0.45

Tested by

no test coverage detected