Following #2910 / #2910 (comment)
Currently, the da client uses the retrieve time for all its responses: https://github.com/evstack/ev-node/blob/207922/block/internal/da/client.go#L244
However, we need this time to be deterministic for base sequencing as our calculations are assuming that:
|
if len(s.currentBatchTxs) == 0 || s.checkpoint.TxIndex >= uint64(len(s.currentBatchTxs)) { |
|
daEndTime, daEndHeight, err := s.fetchNextDAEpoch(ctx, req.MaxBytes) |
|
if err != nil { |
|
return nil, err |
|
} |
|
|
|
daHeight = daEndHeight |
|
s.currentDAEndTime = daEndTime |
|
} |
Following #2910 / #2910 (comment)
Currently, the da client uses the retrieve time for all its responses: https://github.com/evstack/ev-node/blob/207922/block/internal/da/client.go#L244
However, we need this time to be deterministic for base sequencing as our calculations are assuming that:
ev-node/sequencers/based/sequencer.go
Lines 103 to 111 in 2079225