Fixes https://github.com/bitcoin/bitcoin/issues/32558 Fixes #874
This fixes a bug introduced in commit fafee85358397289aa4c6b799d2603a5d89e83a2, which changed the type of the dummy address from WitnessV0KeyHash
to PKHash
. It was expected that this is fine, given that this is just a dummy address. However, the base58 characters can include the substring “io”, leading to test failures later on.
Fix it by just using WitnessV0KeyHash
again.
For reference, a passing test could look like:
0Model contains 2 rows and 2 columns.
1--- Model Data ---
2Row 0 : "io - new A\tmxgkqJWAwfUwbgzZUsWrG1stKWV6fDn8YH"
3Row 1 : "io - new B\tmhsxP2yrYDQiEncT8HzKxQSFSFJmUsudsP"
4------------------
A failing test could look like:
0Model contains 3 rows and 2 columns.
1--- Model Data ---
2Row 0 : "already here (s)\tmyDFZSKDQdPMMoSQgzkDtq2yioo8DA8qCX"
3Row 1 : "io - new A\tmsAqQKjMrbxYRDhGXBBJ3yUEQxj5Bf5Njz"
4Row 2 : "io - new B\tmtALQiit8dw33kznVfHDgE38ohfgz2Pchc"
5------------------
6FAIL! : AddressBookTests::addressBookTests() Compared values are not the same
7 Actual (table_view->model()->rowCount()): 3
8 Expected (2) : 2
9 Loc: [qt/test/addressbooktests.cpp(219)]