Skip to content

Commit

Permalink
adding block_hash to boostraping logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Voiculescu committed Aug 5, 2024
1 parent b1aeea8 commit 69337aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (f *Fetcher) fetchBlockData(_ context.Context, requestedBlockNum uint64) (*

runtimeSpecVersion := f.lastBlockInfo.specVersion
if isBoostraping(f.metadata, f.lastBlockInfo.specVersion) { // bootstraping
f.logger.Info("boostraping metadata and spec version")
f.logger.Info("boostraping metadata and spec version", zap.String("block_hash", blockHash.Hex()))
_, err := f.setMetadata(blockHash, client)
if err != nil {
return nil, fmt.Errorf("failed to update metadata: %w", err)
Expand All @@ -149,7 +149,7 @@ func (f *Fetcher) fetchBlockData(_ context.Context, requestedBlockNum uint64) (*
return nil, fmt.Errorf("failed to get runtime version at block hash %s: %w", blockHash.Hex(), err)
}
runtimeSpecVersion = uint32(runtimeVersion.SpecVersion)
f.logger.Info("boostraped metadata and spec version", zap.Uint64("version", uint64(runtimeSpecVersion)))
f.logger.Info("boostraped metadata and spec version", zap.Uint64("version", uint64(runtimeSpecVersion)), zap.String("block_hash", blockHash.Hex()))
}

if requestedBlockNum > 0 {
Expand Down

0 comments on commit 69337aa

Please sign in to comment.