Skip to content

Commit

Permalink
Fix wrong format of public key in BlockFilteredEvent reason
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Jan 26, 2024
1 parent 642e8e7 commit 95c0bc1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 95c0bc1

Please sign in to comment.