Skip to content

Commit

Permalink
Problem: MsgExec parser can cause indexer to halt
Browse files Browse the repository at this point in the history
Solution: (Fix crypto-com#674) Disable MsgExec parser
  • Loading branch information
calvinaco committed Jan 25, 2022
1 parent c42232b commit 37d6103
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion usecase/parser/msg_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

var _ = Describe("ParseMsgCommands", func() {
Describe("MsgExec", func() {
XDescribe("MsgExec", func() {
It("should parse Msg commands when there is MsgExec (inner message MsgSend) in the transaction", func() {
expected := `{
"name": "MsgExecCreated",
Expand Down
3 changes: 2 additions & 1 deletion usecase/parser/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ func InitParsers(manager *utils.CosmosParserManager) {
// cosmos authz
manager.RegisterParser("/cosmos.authz.v1beta1.MsgGrant", BEGIN_BLOCK_HEIGHT, ParseMsgGrant)
manager.RegisterParser("/cosmos.authz.v1beta1.MsgRevoke", BEGIN_BLOCK_HEIGHT, ParseMsgRevoke)
manager.RegisterParser("/cosmos.authz.v1beta1.MsgExec", BEGIN_BLOCK_HEIGHT, ParseMsgExec)
// FIXME: https://github.com/crypto-com/chain-indexing/issues/673
//manager.RegisterParser("/cosmos.authz.v1beta1.MsgExec", BEGIN_BLOCK_HEIGHT, ParseMsgExec)

// cosmos feegrant
manager.RegisterParser("/cosmos.feegrant.v1beta1.MsgGrantAllowance", BEGIN_BLOCK_HEIGHT, ParseMsgGrantAllowance)
Expand Down

0 comments on commit 37d6103

Please sign in to comment.