Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Jan 24, 2024
1 parent 9a08cd9 commit 06ed0a3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion go/enclave/nodetype/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,19 @@ 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())
s.logger.Debug("Submit tx",
log.TxKey, transaction.Hash(),
"type", transaction.Type(),
"payload", gethcommon.Bytes2Hex(transaction.Data()),
"time", transaction.Time(),
"to", transaction.To().Hex(),
"value", transaction.Value().Uint64(),
"size", transaction.Size(),
"nonce", transaction.Nonce(),
"gas", transaction.Gas(),
"gasPrice", transaction.GasPrice().Uint64(),
"chainId", transaction.ChainId().Uint64(),
)
return s.mempool.Add(transaction)
}

Expand Down

0 comments on commit 06ed0a3

Please sign in to comment.