| 1028 | } |
| 1029 | |
| 1030 | bool CWallet::IsSpentKey(const CScript& scriptPubKey) const |
| 1031 | { |
| 1032 | AssertLockHeld(cs_wallet); |
| 1033 | CTxDestination dest; |
| 1034 | if (!ExtractDestination(scriptPubKey, dest)) { |
| 1035 | return false; |
| 1036 | } |
| 1037 | if (IsAddressPreviouslySpent(dest)) { |
| 1038 | return true; |
| 1039 | } |
| 1040 | return false; |
| 1041 | } |
| 1042 | |
| 1043 | CWalletTx* CWallet::AddToWallet(CTransactionRef tx, const TxState& state, const UpdateWalletTxFn& update_wtx, bool rescanning_old_block) |
| 1044 | { |
no test coverage detected