BlockChainTest: inline method resetBlockStore()

It is only used once.
This commit is contained in:
Andreas Schildbach 2023-04-01 12:39:09 +02:00
parent 770fcb0f03
commit f891db1bda

View File

@ -77,10 +77,6 @@ public class BlockChainTest {
private static final TestNet3Params TESTNET = TestNet3Params.get();
private static final NetworkParameters UNITTEST = UnitTestParams.get();
private void resetBlockStore() {
blockStore = new MemoryBlockStore(UNITTEST.getGenesisBlock());
}
@Before
public void setUp() throws Exception {
BriefLogFormatter.initVerbose();
@ -102,7 +98,7 @@ public class BlockChainTest {
};
wallet.freshReceiveKey();
resetBlockStore();
blockStore = new MemoryBlockStore(UNITTEST.getGenesisBlock());
chain = new BlockChain(UNITTEST, wallet, blockStore);
coinbaseTo = wallet.currentReceiveKey().toAddress(ScriptType.P2PKH, BitcoinNetwork.TESTNET);