From 34184f0949d21d2df00060db6511b2bca6108123 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Tue, 7 Sep 2021 14:09:17 -0700 Subject: [PATCH] ChainSplitTest: Use getGenesisBlock() getter This is the only place where getGenesisBlock() is not being used. --- core/src/test/java/org/bitcoinj/core/ChainSplitTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/bitcoinj/core/ChainSplitTest.java b/core/src/test/java/org/bitcoinj/core/ChainSplitTest.java index 081563df6..950045958 100644 --- a/core/src/test/java/org/bitcoinj/core/ChainSplitTest.java +++ b/core/src/test/java/org/bitcoinj/core/ChainSplitTest.java @@ -526,7 +526,7 @@ public class ChainSplitTest { // Receive some money to the wallet. 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); // Send a couple of payments one after the other (so the second depends on the change output of the first).