Remove no longer needed raw Exception raises for queryRandom (#2633)
This commit is contained in:
parent
8ebd496fbe
commit
961b29ad5f
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue