mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-21 12:00:56 +00:00
make attestation duty minimum offset relative to slot length (#3522)
This commit is contained in:
parent
637f1e2be6
commit
e418497bb2
@ -1119,7 +1119,8 @@ proc handleValidatorDuties*(node: BeaconNode, lastSlot, slot: Slot) {.async.} =
|
||||
# Regardless, because we "just" received the block, we'll impose the
|
||||
# delay.
|
||||
|
||||
const afterBlockDelay = millis(2000)
|
||||
# Take into consideration chains with a different slot time
|
||||
const afterBlockDelay = nanos(attestationSlotOffset.nanoseconds div 2)
|
||||
let
|
||||
afterBlockTime = node.beaconClock.now() + afterBlockDelay
|
||||
afterBlockCutoff = node.beaconClock.fromNow(
|
||||
|
Loading…
x
Reference in New Issue
Block a user