Skip to content

Commit fa732bc

Browse files
author
MarcoFalke
committed
test: Use compressed keys in TestChain100Setup
coinbaseKey.MakeNewKey(true); creates a compressed key and there is no reason for the deterministic setup to use uncompressed ones.
1 parent aa69471 commit fa732bc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/chainparams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ class CRegTestParams : public CChainParams {
441441
m_assumeutxo_data = MapAssumeutxo{
442442
{
443443
110,
444-
{uint256S("0x76fd7334ac7c1baf57ddc0c626f073a655a35d98a4258cd1382c8cc2b8392e10"), 110},
444+
{uint256S("0x1ebbf5850204c0bdb15bf030f47c7fe91d45c44c712697e4509ba67adb01c618"), 110},
445445
},
446446
{
447447
210,

src/test/util/setup_common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ TestChain100Setup::TestChain100Setup(bool deterministic)
213213
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
214214
}
215215
};
216-
coinbaseKey.Set(vchKey.begin(), vchKey.end(), false);
216+
coinbaseKey.Set(vchKey.begin(), vchKey.end(), true);
217217
} else {
218218
coinbaseKey.MakeNewKey(true);
219219
}
@@ -225,7 +225,7 @@ TestChain100Setup::TestChain100Setup(bool deterministic)
225225
LOCK(::cs_main);
226226
assert(
227227
m_node.chainman->ActiveChain().Tip()->GetBlockHash().ToString() ==
228-
"49c95db1e470fed04496d801c9d8fbb78155d2c7f855232c918823d2c17d0cf6");
228+
"571d80a9967ae599cec0448b0b0ba1cfb606f584d8069bd7166b86854ba7a191");
229229
}
230230
}
231231

src/test/validation_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ BOOST_AUTO_TEST_CASE(test_assumeutxo)
135135
}
136136

137137
const auto out110 = *ExpectedAssumeutxo(110, *params);
138-
BOOST_CHECK_EQUAL(out110.hash_serialized, uint256S("76fd7334ac7c1baf57ddc0c626f073a655a35d98a4258cd1382c8cc2b8392e10"));
138+
BOOST_CHECK_EQUAL(out110.hash_serialized, uint256S("1ebbf5850204c0bdb15bf030f47c7fe91d45c44c712697e4509ba67adb01c618"));
139139
BOOST_CHECK_EQUAL(out110.nChainTx, (unsigned int)110);
140140

141141
const auto out210 = *ExpectedAssumeutxo(210, *params);

0 commit comments

Comments
 (0)