Remove some deprecation warnings

This commit is contained in:
Zahary Karadjov 2019-03-29 16:45:38 +02:00
parent 2fd9f93e69
commit 6689d0a642
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ proc getValidator*(pool: ValidatorPool,
proc signBlockProposal*(v: AttachedValidator, fork: Fork,
blck: BeaconBlock): Future[ValidatorSig] {.async.} =
if v.kind == inProcess:
await sleepAsync(1)
await sleepAsync(chronos.milliseconds(1))
result = bls_sign(v.privKey, signed_root(blck).data,
get_domain(fork, slot_to_epoch(blck.slot), DOMAIN_BEACON_BLOCK))
else:
@ -39,7 +39,7 @@ proc signAttestation*(v: AttachedValidator,
attestation: AttestationData): Future[ValidatorSig] {.async.} =
# TODO: implement this
if v.kind == inProcess:
await sleepAsync(1)
await sleepAsync(chronos.milliseconds(1))
let attestationRoot = hash_tree_root(attestation)
# TODO: Avoid the allocations belows