mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
BlockChainTest: inline method resetBlockStore()
It is only used once.
This commit is contained in:
parent
770fcb0f03
commit
f891db1bda
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user