From 72dfc3cbdb0020b58c0a3631a3507c66358a6729 Mon Sep 17 00:00:00 2001 From: Ganesha Upadhyaya Date: Wed, 27 Nov 2019 13:36:23 -0800 Subject: [PATCH] fixing the staking type not found bug for collect rewards --- core/types/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index 36cbf4a0a..747914a63 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -59,7 +59,7 @@ const ( // StakingTypeMap is the map from staking type to transactionType var StakingTypeMap = map[staking.Directive]TransactionType{staking.DirectiveCreateValidator: StakeNewVal, staking.DirectiveEditValidator: StakeEditVal, staking.DirectiveDelegate: Delegate, - staking.DirectiveUndelegate: Undelegate} + staking.DirectiveUndelegate: Undelegate, staking.DirectiveCollectRewards: CollectRewards} // Transaction struct. type Transaction struct {