Skip to content

Commit ca64b71

Browse files
committed
test: fix scripts in blockfilter_basic_test
1 parent daca51b commit ca64b71

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/blockfilter_tests.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,21 @@ BOOST_AUTO_TEST_CASE(blockfilter_basic_test)
5959
CScript included_scripts[5], excluded_scripts[4];
6060

6161
// First two are outputs on a single transaction.
62-
included_scripts[0] << std::vector<unsigned char>(0, 65) << OP_CHECKSIG;
63-
included_scripts[1] << OP_DUP << OP_HASH160 << std::vector<unsigned char>(1, 20) << OP_EQUALVERIFY << OP_CHECKSIG;
62+
included_scripts[0] << std::vector<unsigned char>(65, 0) << OP_CHECKSIG;
63+
included_scripts[1] << OP_DUP << OP_HASH160 << std::vector<unsigned char>(20, 1) << OP_EQUALVERIFY << OP_CHECKSIG;
6464

6565
// Third is an output on in a second transaction.
66-
included_scripts[2] << OP_1 << std::vector<unsigned char>(2, 33) << OP_1 << OP_CHECKMULTISIG;
66+
included_scripts[2] << OP_1 << std::vector<unsigned char>(33, 2) << OP_1 << OP_CHECKMULTISIG;
6767

6868
// Last two are spent by a single transaction.
69-
included_scripts[3] << OP_0 << std::vector<unsigned char>(3, 32);
69+
included_scripts[3] << OP_0 << std::vector<unsigned char>(32, 3);
7070
included_scripts[4] << OP_4 << OP_ADD << OP_8 << OP_EQUAL;
7171

7272
// OP_RETURN output is an output on the second transaction.
73-
excluded_scripts[0] << OP_RETURN << std::vector<unsigned char>(4, 40);
73+
excluded_scripts[0] << OP_RETURN << std::vector<unsigned char>(40, 4);
7474

7575
// This script is not related to the block at all.
76-
excluded_scripts[1] << std::vector<unsigned char>(5, 33) << OP_CHECKSIG;
76+
excluded_scripts[1] << std::vector<unsigned char>(33, 5) << OP_CHECKSIG;
7777

7878
// OP_RETURN is non-standard since it's not followed by a data push, but is still excluded from
7979
// filter.

0 commit comments

Comments
 (0)