diff --git a/README.md b/README.md index 64aa101..a153916 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/cmd/fireantelope/tools_fix_invalid_utf8.go b/cmd/fireantelope/tools_check_blocks.go similarity index 100% rename from cmd/fireantelope/tools_fix_invalid_utf8.go rename to cmd/fireantelope/tools_check_blocks.go diff --git a/cmd/fireantelope/util.go b/cmd/fireantelope/util.go index b742c51..6505f8d 100644 --- a/cmd/fireantelope/util.go +++ b/cmd/fireantelope/util.go @@ -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 { @@ -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 {