From 63e6464e06dd9cf563ade0a64ecfb29f79ed250e Mon Sep 17 00:00:00 2001 From: David Date: Wed, 17 Jan 2024 01:14:05 +0800 Subject: [PATCH] feat: more logs --- pkg/rpc/utils.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/rpc/utils.go b/pkg/rpc/utils.go index b3b809329..ce925c66a 100644 --- a/pkg/rpc/utils.go +++ b/pkg/rpc/utils.go @@ -223,7 +223,13 @@ func GetBlockProofStatus( } if proverAddress == transition.Prover { - log.Info("📬 Block's proof has already been submitted by current prover", "blockID", id) + log.Info( + "📬 Block's proof has already been submitted by current prover", + "blockID", id, + "parent", parent.Hash().Hex(), + "hash", common.Bytes2Hex(transition.BlockHash[:]), + "signalRoot", common.Bytes2Hex(transition.SignalRoot[:]), + ) return &BlockProofStatus{ IsSubmitted: true, Invalid: false, @@ -236,6 +242,9 @@ func GetBlockProofStatus( "📬 Block's proof has already been submitted by another prover", "blockID", id, "prover", transition.Prover, + "parent", parent.Hash().Hex(), + "hash", common.Bytes2Hex(transition.BlockHash[:]), + "signalRoot", common.Bytes2Hex(transition.SignalRoot[:]), "timestamp", transition.Timestamp, )