Remove no longer needed raw Exception raises for queryRandom (#2633)

This commit is contained in:
Kim De Mey 2021-06-08 22:23:19 +02:00 committed by GitHub
parent 8ebd496fbe
commit 961b29ad5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -879,7 +879,7 @@ proc toPeerAddr(node: Node): Result[PeerAddr, cstring] {.raises: [Defect].} =
proc queryRandom*(d: Eth2DiscoveryProtocol, forkId: ENRForkID,
attnets: BitArray[ATTESTATION_SUBNET_COUNT]):
Future[seq[PeerAddr]] {.async, raises:[Exception, Defect].} =
Future[seq[PeerAddr]] {.async, raises: [Defect].} =
## Perform a discovery query for a random target matching the eth2 field
## (forkId) and matching at least one of the attestation subnets.
let nodes = await d.queryRandom()

View File

@ -3,7 +3,6 @@
import
unittest2,
chronos, stew/shims/net, eth/keys, eth/p2p/discoveryv5/enr,
../beacon_chain/conf,
../beacon_chain/spec/datatypes,
../beacon_chain/networking/[eth2_network, eth2_discovery],
./testutil