diff --git a/pkg/fakes/data.go b/pkg/fakes/data.go index 8b8b45a7..cebcfb2a 100644 --- a/pkg/fakes/data.go +++ b/pkg/fakes/data.go @@ -43,11 +43,15 @@ var FakeHeader = core.Header{ } func GetFakeHeader(blockNumber int64) core.Header { + return GetFakeHeaderWithTimestamp(fakeTimestamp, blockNumber) +} + +func GetFakeHeaderWithTimestamp(timestamp, blockNumber int64) core.Header { return core.Header{ Hash: FakeHash.String(), BlockNumber: blockNumber, Raw: rawFakeHeader, - Timestamp: strconv.FormatInt(fakeTimestamp, 10), + Timestamp: strconv.FormatInt(timestamp, 10), } }