fixing the staking type not found bug for collect rewards

pull/1907/head
Ganesha Upadhyaya 5 years ago
parent 2823067625
commit 72dfc3cbdb
  1. 2
      core/types/transaction.go

@ -59,7 +59,7 @@ const (
// StakingTypeMap is the map from staking type to transactionType // StakingTypeMap is the map from staking type to transactionType
var StakingTypeMap = map[staking.Directive]TransactionType{staking.DirectiveCreateValidator: StakeNewVal, var StakingTypeMap = map[staking.Directive]TransactionType{staking.DirectiveCreateValidator: StakeNewVal,
staking.DirectiveEditValidator: StakeEditVal, staking.DirectiveDelegate: Delegate, staking.DirectiveEditValidator: StakeEditVal, staking.DirectiveDelegate: Delegate,
staking.DirectiveUndelegate: Undelegate} staking.DirectiveUndelegate: Undelegate, staking.DirectiveCollectRewards: CollectRewards}
// Transaction struct. // Transaction struct.
type Transaction struct { type Transaction struct {

Loading…
Cancel
Save