Exemple #1
0
  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();

    memoryPool = new MemoryPool();
    VersionMessage ver = new VersionMessage(unitTestParams, 100);
    InetSocketAddress address = new InetSocketAddress("127.0.0.1", 4000);
    peer = new Peer(unitTestParams, ver, new PeerAddress(address), blockChain, memoryPool);
    peer.addWallet(wallet);
  }
Exemple #2
0
 @After
 public void tearDown() throws Exception {
   super.tearDown();
   assertFalse(fail.get());
 }