Skip to content

Commit c42c823

Browse files
committed
MERGE FIX: Pegin witness test cleanup
1 parent 6c1c652 commit c42c823

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/pegin_witness_tests.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ std::vector<unsigned char> pegin_transaction = ParseHex("02000000000101f321df979
3838
COutPoint prevout(uint256S("ce9b0ee70f82e48f78e2a2e66e61ee4281df74419c23673cc33b639097df21f3"), 1);
3939

4040
// Needed for easier parent PoW check, and setting fedpegscript
41-
struct RegtestingSetup : public TestingSetup {
42-
RegtestingSetup() : TestingSetup("custom", "512103dff4923d778550cc13ce0d887d737553b4b58f4e8e886507fc39f5e447b2186451ae") {}
41+
struct FedpegSetup : public BasicTestingSetup {
42+
FedpegSetup() : BasicTestingSetup("custom", "512103dff4923d778550cc13ce0d887d737553b4b58f4e8e886507fc39f5e447b2186451ae") {}
4343
};
4444

45-
BOOST_FIXTURE_TEST_SUITE(pegin_witness_tests, RegtestingSetup)
45+
BOOST_FIXTURE_TEST_SUITE(pegin_witness_tests, FedpegSetup)
4646

4747
BOOST_AUTO_TEST_CASE(witness_valid)
4848
{
@@ -53,6 +53,7 @@ BOOST_AUTO_TEST_CASE(witness_valid)
5353

5454
bool valid = IsValidPeginWitness(witness, prevout, err, false);
5555
BOOST_CHECK(err == "");
56+
BOOST_CHECK(valid);
5657

5758
// Missing byte on each field to make claim ill-formatted
5859
// This will break deserialization and other data-matching checks

0 commit comments

Comments
 (0)