From 95c0bc1599276cd9ae726329186943227b66b633 Mon Sep 17 00:00:00 2001 From: muXxer Date: Fri, 26 Jan 2024 09:56:52 +0100 Subject: [PATCH] Fix wrong format of public key in BlockFilteredEvent reason --- .../postsolidblockfilter/post_solid_block_filter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/protocol/engine/filter/postsolidfilter/postsolidblockfilter/post_solid_block_filter.go b/pkg/protocol/engine/filter/postsolidfilter/postsolidblockfilter/post_solid_block_filter.go index 37463cb81..09d963910 100644 --- a/pkg/protocol/engine/filter/postsolidfilter/postsolidblockfilter/post_solid_block_filter.go +++ b/pkg/protocol/engine/filter/postsolidfilter/postsolidblockfilter/post_solid_block_filter.go @@ -10,6 +10,7 @@ import ( "github.com/iotaledger/iota-core/pkg/protocol/engine/blocks" "github.com/iotaledger/iota-core/pkg/protocol/engine/filter/postsolidfilter" iotago "github.com/iotaledger/iota.go/v4" + "github.com/iotaledger/iota.go/v4/hexutil" ) type PostSolidBlockFilter struct { @@ -163,7 +164,7 @@ func (c *PostSolidBlockFilter) ProcessSolidBlock(block *blocks.Block) { if !accountData.BlockIssuerKeys.Has(expectedBlockIssuerKey) { c.events.BlockFiltered.Trigger(&postsolidfilter.BlockFilteredEvent{ Block: block, - Reason: ierrors.Wrapf(iotago.ErrInvalidSignature, "block issuer account %s does not have block issuer key corresponding to public key %s in slot %d", block.ProtocolBlock().Header.IssuerID, signature.PublicKey, block.ProtocolBlock().Header.SlotCommitmentID.Index()), + Reason: ierrors.Wrapf(iotago.ErrInvalidSignature, "block issuer account %s does not have block issuer key corresponding to public key %s in slot %d", block.ProtocolBlock().Header.IssuerID, hexutil.EncodeHex(signature.PublicKey[:]), block.ProtocolBlock().Header.SlotCommitmentID.Index()), }) return