Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Jan 24, 2024
1 parent 482a02d commit 1dfae32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions go/common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ func (cf *ChainFork) IsFork() bool {
}

func (cf *ChainFork) String() string {
if cf == nil {
return ""
}
return fmt.Sprintf("ChainFork{NewCanonical: %s, OldCanonical: %s, CommonAncestor: %s, CanonicalPath: %s, NonCanonicalPath: %s}",
cf.NewCanonical.Hash(), cf.OldCanonical.Hash(), cf.CommonAncestor.Hash(), cf.CanonicalPath, cf.NonCanonicalPath)
}
2 changes: 1 addition & 1 deletion go/enclave/components/block_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (bp *l1BlockProcessor) tryAndInsertBlock(br *common.BlockAndReceipts) (*Blo
return nil, err
}
bp.logger.Trace("Block inserted successfully",
log.BlockHeightKey, block.NumberU64(), log.BlockHashKey, block.Hash())
log.BlockHeightKey, block.NumberU64(), log.BlockHashKey, block.Hash(), "ingestionType", ingestionType)

err = bp.storage.StoreBlock(block, ingestionType.ChainFork)
if err != nil {
Expand Down

0 comments on commit 1dfae32

Please sign in to comment.