Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115006
D746.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
825 B
Subscribers
None
D746.diff
View Options
diff --git a/src/test/cashaddrenc_tests.cpp b/src/test/cashaddrenc_tests.cpp
--- a/src/test/cashaddrenc_tests.cpp
+++ b/src/test/cashaddrenc_tests.cpp
@@ -238,12 +238,10 @@
for (size_t i = 0; i < hash.size(); ++i) {
const CTxDestination dstKey = CKeyID(uint160(hash[i]));
- const CTxDestination dstScript = CScriptID(uint160(hash[i]));
+ BOOST_CHECK_EQUAL(pubkey[i], EncodeCashAddr(dstKey, params));
- BOOST_CHECK_EQUAL(pubkey[i],
- EncodeCashAddr(CKeyID(uint160(hash[i])), params));
- BOOST_CHECK_EQUAL(script[i],
- EncodeCashAddr(CScriptID(uint160(hash[i])), params));
+ const CTxDestination dstScript = CScriptID(uint160(hash[i]));
+ BOOST_CHECK_EQUAL(script[i], EncodeCashAddr(dstScript, params));
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 09:12 (2 m, 42 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187174
Default Alt Text
D746.diff (825 B)
Attached To
D746: Remove redundant code in cashaddr tests
Event Timeline
Log In to Comment