forked from palomachain/paloma
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: print formatted queue messages on remove (#1204)
# Related Github tickets - Closes #1783 # Background At the moment, investigating messages is incredibly tedious due to the high volatility in storage. We will need a better way to investigate messages after they've been removed from the consensus queue. This PR logs all messages as they're removed from the queue, so we can see what's happening through the logs. - Change consensus keeper `cdc` from `BinaryCodec` to `Codec`. The `Codec` interface embeds `BinaryCodec` as well, so we don't lose functionality. However, `Codec` also adds `JSONCodec`. - Create `MessageWithSignatures` from `QueuedSignedMessageI`. - Marshal messages with `cdc.MarshalJSON` as we remove them from the queues. We get the output formatted the same as in the CLI commands. # Testing completed - [x] test coverage exists or has been added/updated - [x] tested in a private testnet # Breaking changes - [x] I have checked my code for breaking changes - [x] If there are breaking changes, there is a supporting migration.
- Loading branch information
Showing
5 changed files
with
71 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters