Пример #1
0
  @Before
  public void setup() {
    BriefLogFormatter.init();
    Utils.setMockClock();
    group = new KeyChainGroup(params);
    group.setLookaheadSize(LOOKAHEAD_SIZE); // Don't want slow tests.
    group.getActiveKeyChain(); // Force create a chain.

    watchingAccountKey = DeterministicKey.deserializeB58(null, XPUB);
  }
 @Override
 @Before
 public void setUp() throws Exception {
   Utils.setMockClock(); // Use mock clock
   super.setUp();
   // Fix the random permutation that TransactionBroadcast uses to shuffle the peers.
   TransactionBroadcast.random = new Random(0);
   peerGroup.setMinBroadcastConnections(2);
   peerGroup.startAsync();
   peerGroup.awaitRunning();
 }