Skip to content

Commit

Permalink
🔧 fix: #265 remove yaml marshalling in endblock logging
Browse files Browse the repository at this point in the history
  • Loading branch information
byte-bandit committed Jun 27, 2023
1 parent 156fd88 commit efdc5d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x/consensus/types/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/gogoproto/proto"
xchain "github.com/palomachain/paloma/internal/x-chain"
"gopkg.in/yaml.v2"
)

type ConsensusQueueType string
Expand Down Expand Up @@ -63,8 +62,10 @@ type MessageQueuedForBatchingI interface {
var _ MessageQueuedForBatchingI = &BatchOfConsensusMessages{}

func (q *QueuedSignedMessage) String() string {
out, _ := yaml.Marshal(q)
return string(out)
if q == nil {
return ""
}
return fmt.Sprintf("%+v", *q)
}

func (q *QueuedSignedMessage) AddSignData(data *SignData) {
Expand Down

0 comments on commit efdc5d8

Please sign in to comment.