From 9a08cd9fa2c127ae0467ccc60cc20900dfd3c54d Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Wed, 24 Jan 2024 10:25:50 +0000 Subject: [PATCH] fix crashing log and add new trace --- go/enclave/components/block_processor.go | 2 +- go/enclave/nodetype/sequencer.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/go/enclave/components/block_processor.go b/go/enclave/components/block_processor.go index 13ea6edbcd..b7bf8d0d30 100644 --- a/go/enclave/components/block_processor.go +++ b/go/enclave/components/block_processor.go @@ -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 { diff --git a/go/enclave/nodetype/sequencer.go b/go/enclave/nodetype/sequencer.go index c8dd9dc6a0..26771383da 100644 --- a/go/enclave/nodetype/sequencer.go +++ b/go/enclave/nodetype/sequencer.go @@ -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) }