MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / EraseTransaction

Method EraseTransaction

src/wallet/wallet.cpp:175–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void CWallet::EraseTransaction(const uint256 &hash) {
176 if (!fFileBacked)
177 return;
178 {
179 LOCK(cs_wallet);
180 if (unconfirmedTx.count(hash)) {
181 unconfirmedTx.erase(hash);
182 CWalletDB(strWalletFile).EraseUnconfirmedTx(hash);
183 }
184 }
185
186 return;
187}
188
189void CWallet::ResendWalletTransactions() {
190 vector<uint256> erase;

Callers 1

Calls 4

CWalletDBClass · 0.85
EraseUnconfirmedTxMethod · 0.80
countMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected