ChainSplitTest: Use getGenesisBlock() getter

This is the only place where getGenesisBlock() is
not being used.
This commit is contained in:
Sean Gilligan 2021-09-07 14:09:17 -07:00 committed by Andreas Schildbach
parent 0cb686481f
commit 34184f0949

View File

@ -526,7 +526,7 @@ public class ChainSplitTest {
// Receive some money to the wallet. // Receive some money to the wallet.
Transaction t1 = FakeTxBuilder.createFakeTx(UNITTEST, COIN, coinsTo); Transaction t1 = FakeTxBuilder.createFakeTx(UNITTEST, COIN, coinsTo);
final Block b1 = FakeTxBuilder.makeSolvedTestBlock(UNITTEST.genesisBlock, t1); final Block b1 = FakeTxBuilder.makeSolvedTestBlock(UNITTEST.getGenesisBlock(), t1);
chain.add(b1); chain.add(b1);
// Send a couple of payments one after the other (so the second depends on the change output of the first). // Send a couple of payments one after the other (so the second depends on the change output of the first).