Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Nov 18, 2023
1 parent 2408980 commit 01f847e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/base58.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class CBitcoinAddress : public CBase58Data {
CBitcoinAddress(const CTxDestination &dest) { Set(dest); }
CBitcoinAddress(const std::string& strAddress) {
SetString(strAddress);
if (!IsValid()) {
if (vchData.size() != 20) {
// give the address second chance and try exchange address format with 3 byte prefix
SetString(strAddress.c_str(), 3);
}
Expand Down
3 changes: 1 addition & 2 deletions src/test/data/script_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
["0", "IF 0xdd ELSE 1 ENDIF", "P2SH,STRICTENC", "OK"],
["0", "IF 0xde ELSE 1 ENDIF", "P2SH,STRICTENC", "OK"],
["0", "IF 0xdf ELSE 1 ENDIF", "P2SH,STRICTENC", "OK"],
["0", "IF 0xe0 ELSE 1 ENDIF", "P2SH,STRICTENC", "OK"],

["0", "IF 0xe1 ELSE 1 ENDIF", "P2SH,STRICTENC", "OK"],
["0", "IF 0xe2 ELSE 1 ENDIF", "P2SH,STRICTENC", "OK"],
["0", "IF 0xe3 ELSE 1 ENDIF", "P2SH,STRICTENC", "OK"],
Expand Down Expand Up @@ -908,7 +908,6 @@
["1", "IF 0xdd ELSE 1 ENDIF", "P2SH,STRICTENC", "BAD_OPCODE"],
["1", "IF 0xde ELSE 1 ENDIF", "P2SH,STRICTENC", "BAD_OPCODE"],
["1", "IF 0xdf ELSE 1 ENDIF", "P2SH,STRICTENC", "BAD_OPCODE"],
["1", "IF 0xe0 ELSE 1 ENDIF", "P2SH,STRICTENC", "BAD_OPCODE"],
["1", "IF 0xe1 ELSE 1 ENDIF", "P2SH,STRICTENC", "BAD_OPCODE"],
["1", "IF 0xe2 ELSE 1 ENDIF", "P2SH,STRICTENC", "BAD_OPCODE"],
["1", "IF 0xe3 ELSE 1 ENDIF", "P2SH,STRICTENC", "BAD_OPCODE"],
Expand Down

0 comments on commit 01f847e

Please sign in to comment.