Skip to content

Commit

Permalink
fix rebase, decrease logging level for block header extension errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell committed Jun 18, 2024
1 parent a417840 commit 188c672
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 346 deletions.
4 changes: 2 additions & 2 deletions codec/antelope/spring_v1/hydrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (h *Hydrator) HydrateBlock(block *pbantelope.Block, input []byte, version s

decodedBlockHeaderExtensions, err := antelope.BlockHeaderExtensionsToDEOS(signedBlock.BlockHeader.HeaderExtensions)
if err != nil {
h.logger.Error("failed to decode block header extensions", zap.Error(err))
h.logger.Debug("failed to decode block header extensions", zap.Error(err))
} else {
block.Header.DecodedHeaderExtensions = decodedBlockHeaderExtensions
}
Expand Down Expand Up @@ -104,7 +104,7 @@ func (h *Hydrator) HydrateBlock(block *pbantelope.Block, input []byte, version s

decodedBlockHeaderExtensions, err := antelope.BlockHeaderExtensionsToDEOS(signedBlock.BlockHeader.HeaderExtensions)
if err != nil {
h.logger.Error("failed to decode block header extensions", zap.Error(err))
h.logger.Debug("failed to decode block header extensions", zap.Error(err))
} else {
block.Header.DecodedHeaderExtensions = decodedBlockHeaderExtensions
}
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,11 @@ require (
github.com/streamingfast/shutter v1.5.0 // indirect
github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0 // indirect
github.com/streamingfast/substreams v1.8.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf // indirect
github.com/tetratelabs/wazero v1.7.1 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/whyrusleeping/tar-utils v0.0.0-20201201191210-20a61371de5b // indirect
github.com/yourbasic/graph v0.0.0-20210606180040-8ecfec1c2869 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.27.0 // indirect
Expand Down
Loading

0 comments on commit 188c672

Please sign in to comment.