@Test public void basicTest() { ETHMinerAgent.ETHPowWithAgent p = ETHMinerAgent.create(.6, 1); p.init(); p.network.run(200); ETHMinerAgent n = p.getByzNode(); Assert.assertTrue(n.head.height > p.genesis.height); Assert.assertTrue(n.otherMinersHead.height > p.genesis.height); Assert.assertNotSame(n.otherMinersHead.producer, n); }
public static ETHPowWithAgent create(double byzHashPowerShare) { return create(byzHashPowerShare, System.nanoTime()); }
ETHMinerAgent extends ETHMiner { public static ETHPowWithAgent create(double byzHashPowerShare) { return create(byzHashPowerShare, System.nanoTime()); } }
ETHMinerAgent extends ETHMiner { public static ETHPowWithAgent create(double byzHashPowerShare) { return create(byzHashPowerShare, System.nanoTime()); } ETHMinerAgent(
      BlockChainNetwork<ETHPoW.POWBlock, ETHMiner> network,
      NodeBuilder nb,
      int hashPowerGHs,
      ETHPoW.POWBlock genesis); }
ETHMinerAgent extends ETHMiner { public static ETHPowWithAgent create(double byzHashPowerShare) { return create(byzHashPowerShare, System.nanoTime()); } ETHMinerAgent(
      BlockChainNetwork<ETHPoW.POWBlock, ETHMiner> network,
      NodeBuilder nb,
      int hashPowerGHs,
      ETHPoW.POWBlock genesis); void sendMinedBlocks(int howMany); int goNextStep(); int getSecretAdvance(); int getAdvance(); int getLag(); double getReward(); double getReward(int lastBlocksCount); double getRewardRatio(); boolean iAmAhead(); int countMyBlocks(); void actionSendOldestBlockMined(); static ETHPowWithAgent create(double byzHashPowerShare); static ETHPowWithAgent create(double byzHashPowerShare, long rdSeed); static void main(String... args); }
ETHMinerAgent extends ETHMiner { public static ETHPowWithAgent create(double byzHashPowerShare) { return create(byzHashPowerShare, System.nanoTime()); } ETHMinerAgent(
      BlockChainNetwork<ETHPoW.POWBlock, ETHMiner> network,
      NodeBuilder nb,
      int hashPowerGHs,
      ETHPoW.POWBlock genesis); void sendMinedBlocks(int howMany); int goNextStep(); int getSecretAdvance(); int getAdvance(); int getLag(); double getReward(); double getReward(int lastBlocksCount); double getRewardRatio(); boolean iAmAhead(); int countMyBlocks(); void actionSendOldestBlockMined(); static ETHPowWithAgent create(double byzHashPowerShare); static ETHPowWithAgent create(double byzHashPowerShare, long rdSeed); static void main(String... args);  }