MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetChange

Method GetChange

src/wallet/wallet.cpp:1373–1378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1371}
1372
1373CAmount CWallet::GetChange(const CTxOut& txout) const
1374{
1375 if (!MoneyRange(txout.nValue))
1376 throw std::runtime_error(std::string(__func__) + ": value out of range");
1377 return (IsChange(txout) ? txout.nValue : 0);
1378}
1379
1380bool CWallet::IsMine(const CTransaction& tx) const
1381{

Callers 1

MakeWalletTxFunction · 0.80

Calls 1

MoneyRangeFunction · 0.85

Tested by

no test coverage detected