Skip to content

Commit

Permalink
fix crashing log and add new trace
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Jan 24, 2024
1 parent 6995c7c commit 9a08cd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go/enclave/components/block_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,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(), "ingestionType", ingestionType)
log.BlockHeightKey, block.NumberU64(), log.BlockHashKey, block.Hash())

err = bp.storage.StoreBlock(block, ingestionType.ChainFork)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions go/enclave/nodetype/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ func (s *sequencer) duplicateBatches(l1Head *types.Block, nonCanonicalL1Path []c
}

func (s *sequencer) SubmitTransaction(transaction *common.L2Tx) error {
s.logger.Trace("Submit tx", "tx", transaction, "type", transaction.Type())
return s.mempool.Add(transaction)
}

Expand Down

0 comments on commit 9a08cd9

Please sign in to comment.