| 92 | CAffectedKeysVisitor(const CKeyStore &keystoreIn, std::vector<CKeyID> &vKeysIn) : keystore(keystoreIn), vKeys(vKeysIn) {} |
| 93 | |
| 94 | void Process(const CScript &script) { |
| 95 | txnouttype type; |
| 96 | std::vector<CTxDestination> vDest; |
| 97 | int nRequired; |
| 98 | if (ExtractDestinations(script, type, vDest, nRequired)) { |
| 99 | for (const CTxDestination &dest : vDest) |
| 100 | boost::apply_visitor(*this, dest); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void operator()(const CKeyID &keyId) { |
| 105 | if (keystore.HaveKey(keyId)) |
no test coverage detected