Skip to content

Commit 7a1e873

Browse files
author
Jim Posen
committed
[script] Unit tests for IsMine
Does not test watch-only addresses.
1 parent d7afe2d commit 7a1e873

File tree

2 files changed

+363
-6
lines changed

2 files changed

+363
-6
lines changed

src/script/ismine.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ isminetype IsMine(const CKeyStore &keystore, const CTxDestination& dest, bool& i
4646

4747
isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey, bool& isInvalid, SigVersion sigversion)
4848
{
49+
isInvalid = false;
50+
4951
std::vector<valtype> vSolutions;
5052
txnouttype whichType;
5153
if (!Solver(scriptPubKey, whichType, vSolutions)) {

0 commit comments

Comments
 (0)