Skip to content

Commit

Permalink
Check for correct witness size.
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Sabadello <[email protected]>
  • Loading branch information
peacekeeper committed May 13, 2020
1 parent a26216f commit f563365
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,9 @@ public DidBtcrData getDidBtcrData(ChainAndTxid chainAndTxid) throws IOException
inputScriptPubKey = matcher.group(1);
break;
}
} else if (txinwitness != null && txinwitness.size() > 0) {
} else if (txinwitness != null && txinwitness.size() == 2) {

//Get the second witness push -> pubKey
inputScriptPubKey = txinwitness.get(1);
break;
} else {
Expand Down

0 comments on commit f563365

Please sign in to comment.