use of co.rsk.scoring.PeerScoringManager in project rskj by rsksmart.
the class Web3ImplScoringTest method addBannedAddressUsingIPV6.
@Test
public void addBannedAddressUsingIPV6() throws UnknownHostException {
PeerScoringManager peerScoringManager = createPeerScoringManager();
Web3Impl web3 = createWeb3(peerScoringManager);
InetAddress address = generateIPAddressV6();
Assert.assertTrue(peerScoringManager.hasGoodReputation(address));
web3.sco_banAddress(address.getHostAddress());
Assert.assertFalse(peerScoringManager.hasGoodReputation(address));
}
Aggregations