mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-18 09:27:05 +00:00
Remove some deprecation warnings
This commit is contained in:
parent
2fd9f93e69
commit
6689d0a642
@ -27,7 +27,7 @@ proc getValidator*(pool: ValidatorPool,
|
|||||||
proc signBlockProposal*(v: AttachedValidator, fork: Fork,
|
proc signBlockProposal*(v: AttachedValidator, fork: Fork,
|
||||||
blck: BeaconBlock): Future[ValidatorSig] {.async.} =
|
blck: BeaconBlock): Future[ValidatorSig] {.async.} =
|
||||||
if v.kind == inProcess:
|
if v.kind == inProcess:
|
||||||
await sleepAsync(1)
|
await sleepAsync(chronos.milliseconds(1))
|
||||||
result = bls_sign(v.privKey, signed_root(blck).data,
|
result = bls_sign(v.privKey, signed_root(blck).data,
|
||||||
get_domain(fork, slot_to_epoch(blck.slot), DOMAIN_BEACON_BLOCK))
|
get_domain(fork, slot_to_epoch(blck.slot), DOMAIN_BEACON_BLOCK))
|
||||||
else:
|
else:
|
||||||
@ -39,7 +39,7 @@ proc signAttestation*(v: AttachedValidator,
|
|||||||
attestation: AttestationData): Future[ValidatorSig] {.async.} =
|
attestation: AttestationData): Future[ValidatorSig] {.async.} =
|
||||||
# TODO: implement this
|
# TODO: implement this
|
||||||
if v.kind == inProcess:
|
if v.kind == inProcess:
|
||||||
await sleepAsync(1)
|
await sleepAsync(chronos.milliseconds(1))
|
||||||
|
|
||||||
let attestationRoot = hash_tree_root(attestation)
|
let attestationRoot = hash_tree_root(attestation)
|
||||||
# TODO: Avoid the allocations belows
|
# TODO: Avoid the allocations belows
|
||||||
|
Loading…
x
Reference in New Issue
Block a user