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.
This commit is contained in:
MarcoFalke 2021-04-04 11:52:44 +02:00
parent aa69471ecd
commit fa732bccb3
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
3 changed files with 4 additions and 4 deletions

View file

@ -441,7 +441,7 @@ public:
m_assumeutxo_data = MapAssumeutxo{ m_assumeutxo_data = MapAssumeutxo{
{ {
110, 110,
{uint256S("0x76fd7334ac7c1baf57ddc0c626f073a655a35d98a4258cd1382c8cc2b8392e10"), 110}, {uint256S("0x1ebbf5850204c0bdb15bf030f47c7fe91d45c44c712697e4509ba67adb01c618"), 110},
}, },
{ {
210, 210,

View file

@ -213,7 +213,7 @@ TestChain100Setup::TestChain100Setup(bool deterministic)
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 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
} }
}; };
coinbaseKey.Set(vchKey.begin(), vchKey.end(), false); coinbaseKey.Set(vchKey.begin(), vchKey.end(), true);
} else { } else {
coinbaseKey.MakeNewKey(true); coinbaseKey.MakeNewKey(true);
} }
@ -225,7 +225,7 @@ TestChain100Setup::TestChain100Setup(bool deterministic)
LOCK(::cs_main); LOCK(::cs_main);
assert( assert(
m_node.chainman->ActiveChain().Tip()->GetBlockHash().ToString() == m_node.chainman->ActiveChain().Tip()->GetBlockHash().ToString() ==
"49c95db1e470fed04496d801c9d8fbb78155d2c7f855232c918823d2c17d0cf6"); "571d80a9967ae599cec0448b0b0ba1cfb606f584d8069bd7166b86854ba7a191");
} }
} }

View file

@ -135,7 +135,7 @@ BOOST_AUTO_TEST_CASE(test_assumeutxo)
} }
const auto out110 = *ExpectedAssumeutxo(110, *params); const auto out110 = *ExpectedAssumeutxo(110, *params);
BOOST_CHECK_EQUAL(out110.hash_serialized, uint256S("76fd7334ac7c1baf57ddc0c626f073a655a35d98a4258cd1382c8cc2b8392e10")); BOOST_CHECK_EQUAL(out110.hash_serialized, uint256S("1ebbf5850204c0bdb15bf030f47c7fe91d45c44c712697e4509ba67adb01c618"));
BOOST_CHECK_EQUAL(out110.nChainTx, (unsigned int)110); BOOST_CHECK_EQUAL(out110.nChainTx, (unsigned int)110);
const auto out210 = *ExpectedAssumeutxo(210, *params); const auto out210 = *ExpectedAssumeutxo(210, *params);