From 37d610305ffc24090bda036f733440ecaa46b0e4 Mon Sep 17 00:00:00 2001 From: Calvin Lau Date: Wed, 26 Jan 2022 03:39:32 +0800 Subject: [PATCH] Problem: MsgExec parser can cause indexer to halt Solution: (Fix #674) Disable MsgExec parser --- usecase/parser/msg_exec_test.go | 2 +- usecase/parser/register.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/usecase/parser/msg_exec_test.go b/usecase/parser/msg_exec_test.go index c0daee68..87f844ca 100644 --- a/usecase/parser/msg_exec_test.go +++ b/usecase/parser/msg_exec_test.go @@ -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", diff --git a/usecase/parser/register.go b/usecase/parser/register.go index 08035f6b..cd00e135 100644 --- a/usecase/parser/register.go +++ b/usecase/parser/register.go @@ -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)