Beispiel #1
0
 public Context VerifySyncPeersRemoved()
 {
     _txPool.Received().RemovePeer(Arg.Any <PublicKey>());
     _syncPeerPool.Received().RemovePeer(Arg.Any <ISyncPeer>(), EthSyncPeerPool.PeerRemoveReason.SessionDisconnected);
     return(this);
 }
Beispiel #2
0
 public Context VerifySyncPeersRemoved()
 {
     _txPool.Received().RemovePeer(Arg.Any <PublicKey>());
     _syncPeerPool.Received().RemovePeer(Arg.Any <ISyncPeer>());
     return(this);
 }
Beispiel #3
0
 public void Requests_peer_refresh_on_unknown_hints()
 {
     _blockTree.IsKnownBlock(1, TestItem.KeccakA).ReturnsForAnyArgs(false);
     _syncServer.HintBlock(TestItem.KeccakA, 1, _nodeWhoSentTheBlock);
     _peerPool.Received().ReceivedWithAnyArgs();
 }