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