Merge bitcoin/bitcoin#35538: test: make TestChain100Setup's m_clock timestamp more readable

58cc2a0453 test: make TestChain100Setup's m_clock timestamp more readable (Hao Xu)

Pull request description:

  The timestamp 1598887952 is used as the initial value of the node's mocked wall-clock in TestChain100Setup. Comment its UTC date to make the magic number more readable.

ACKs for top commit:
  maflcko:
    lgtm ACK 58cc2a0453

Tree-SHA512: bd26977dcbdc6e2b448152dd0c2c71cee4ed73eb64ea32be3cac1e0a3f432f588b9f3261037be804d308e713163c2b47350c020327e21d7e9a9fe9a2827cdf45
This commit is contained in:
merge-script
2026-06-16 09:24:38 +02:00

View File

@@ -227,7 +227,7 @@ struct TestChain100Setup : public TestingSetup {
*/
std::vector<CTransactionRef> PopulateMempool(FastRandomContext& det_rand, size_t num_transactions, bool submit);
FakeNodeClock m_clock{std::chrono::seconds{1598887952}};
FakeNodeClock m_clock{std::chrono::seconds{1598887952}}; // 2020-08-31, arbitrary
std::vector<CTransactionRef> m_coinbase_txns; // For convenience, coinbase transactions
CKey coinbaseKey; // private/public key needed to spend coinbase transactions
};