Skip to content

Commit

Permalink
use a constant timestamp for sanitizing blocks (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell authored Jan 31, 2024
1 parent c8a0f35 commit 7e53af4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Firehose on Antelope
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

This is the Antelope chain-specific implementation part of firehose-core and enables both Firehose and Substreams on
Antelope chains with native blocks.

## For Developers




This is Streamingfast's [Firehose](https://firehose.streamingfast.io) implementation adapted for Antelope chains,
effectively enabling [Substreams](https://substreams.streamingfast.io) on all Antelope chains.

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions cmd/fireantelope/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"time"
)

var fixedTimestamp = timestamppb.New(time.Date(2006, 01, 02, 15, 04, 05, 0, time.UTC))

func mustParseUint64(in string) uint64 {
out, err := strconv.ParseUint(in, 10, 64)
if err != nil {
Expand All @@ -19,8 +21,6 @@ func mustParseUint64(in string) uint64 {

func sanitizeBlockForCompare(block *pbantelope.Block) *pbantelope.Block {

fixedTimestamp := timestamppb.New(time.Now())

var sanitizeContext func(logContext *pbantelope.Exception_LogContext)
sanitizeContext = func(logContext *pbantelope.Exception_LogContext) {
if logContext != nil {
Expand Down

0 comments on commit 7e53af4

Please sign in to comment.