Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Merge pull request #76 from vulcanize/fake-header-customization
Browse files Browse the repository at this point in the history
Add timestamp customization for fake header
  • Loading branch information
Gslaughl committed Apr 10, 2019
2 parents fcaa28d + 8903b6f commit 8b704e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/fakes/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

Expand Down

0 comments on commit 8b704e9

Please sign in to comment.