Unverified Commit cf38751f authored by vipwzw's avatar vipwzw Committed by GitHub

Merge pull request #113 from harrylee2015/addExecName

reset exector name
parents 748d60d9 61b903f8
...@@ -52,6 +52,11 @@ func NewType() *EvmType { ...@@ -52,6 +52,11 @@ func NewType() *EvmType {
return c return c
} }
// GetName 获取执行器名称
func (evm *EvmType) GetName() string {
return ExecutorName
}
// GetPayload 获取消息负载结构 // GetPayload 获取消息负载结构
func (evm *EvmType) GetPayload() types.Message { func (evm *EvmType) GetPayload() types.Message {
return &EVMContractAction{} return &EVMContractAction{}
......
...@@ -42,6 +42,11 @@ type GameType struct { ...@@ -42,6 +42,11 @@ type GameType struct {
types.ExecTypeBase types.ExecTypeBase
} }
// GetName 获取执行器名称
func (gt *GameType) GetName() string {
return GameX
}
// GetLogMap get log // GetLogMap get log
func (gt *GameType) GetLogMap() map[int64]*types.LogInfo { func (gt *GameType) GetLogMap() map[int64]*types.LogInfo {
return map[int64]*types.LogInfo{ return map[int64]*types.LogInfo{
......
...@@ -35,6 +35,11 @@ func NewType() *HashlockType { ...@@ -35,6 +35,11 @@ func NewType() *HashlockType {
return c return c
} }
// GetName 获取执行器名称
func (hashlock *HashlockType) GetName() string {
return HashlockX
}
// GetPayload method // GetPayload method
func (hashlock *HashlockType) GetPayload() types.Message { func (hashlock *HashlockType) GetPayload() types.Message {
return &HashlockAction{} return &HashlockAction{}
......
...@@ -35,6 +35,11 @@ func NewType() *LotteryType { ...@@ -35,6 +35,11 @@ func NewType() *LotteryType {
return c return c
} }
// GetName 获取执行器名称
func (lottery *LotteryType) GetName() string {
return LotteryX
}
// GetLogMap method // GetLogMap method
func (lottery *LotteryType) GetLogMap() map[int64]*types.LogInfo { func (lottery *LotteryType) GetLogMap() map[int64]*types.LogInfo {
return map[int64]*types.LogInfo{ return map[int64]*types.LogInfo{
......
...@@ -29,6 +29,11 @@ func NewType() *NormType { ...@@ -29,6 +29,11 @@ func NewType() *NormType {
return c return c
} }
// GetName 获取执行器名称
func (norm *NormType) GetName() string {
return NormX
}
// GetPayload method // GetPayload method
func (norm *NormType) GetPayload() types.Message { func (norm *NormType) GetPayload() types.Message {
return &NormAction{} return &NormAction{}
......
...@@ -42,6 +42,11 @@ func NewType() *ParacrossType { ...@@ -42,6 +42,11 @@ func NewType() *ParacrossType {
return c return c
} }
// GetName 获取执行器名称
func (p *ParacrossType) GetName() string {
return ParaX
}
// GetLogMap get receipt log map // GetLogMap get receipt log map
func (p *ParacrossType) GetLogMap() map[int64]*types.LogInfo { func (p *ParacrossType) GetLogMap() map[int64]*types.LogInfo {
return map[int64]*types.LogInfo{ return map[int64]*types.LogInfo{
......
...@@ -29,6 +29,11 @@ func NewType() *PokerBullType { ...@@ -29,6 +29,11 @@ func NewType() *PokerBullType {
return c return c
} }
// GetName 获取执行器名称
func (t *PokerBullType) GetName() string {
return PokerBullX
}
// GetPayload 获取payload // GetPayload 获取payload
func (t *PokerBullType) GetPayload() types.Message { func (t *PokerBullType) GetPayload() types.Message {
return &PBGameAction{} return &PBGameAction{}
......
...@@ -31,6 +31,11 @@ func NewType() *TokenType { ...@@ -31,6 +31,11 @@ func NewType() *TokenType {
return c return c
} }
// GetName 获取执行器名称
func (t *TokenType) GetName() string {
return TokenX
}
// GetPayload 获取token action // GetPayload 获取token action
func (t *TokenType) GetPayload() types.Message { func (t *TokenType) GetPayload() types.Message {
return &TokenAction{} return &TokenAction{}
......
...@@ -43,6 +43,11 @@ type UnfreezeType struct { ...@@ -43,6 +43,11 @@ type UnfreezeType struct {
types.ExecTypeBase types.ExecTypeBase
} }
// GetName 获取执行器名称
func (u *UnfreezeType) GetName() string {
return UnfreezeX
}
// GetLogMap 获得日志类型列表 // GetLogMap 获得日志类型列表
func (u *UnfreezeType) GetLogMap() map[int64]*types.LogInfo { func (u *UnfreezeType) GetLogMap() map[int64]*types.LogInfo {
return map[int64]*types.LogInfo{ return map[int64]*types.LogInfo{
......
...@@ -29,6 +29,11 @@ func NewType() *ValNodeType { ...@@ -29,6 +29,11 @@ func NewType() *ValNodeType {
return c return c
} }
// GetName 获取执行器名称
func (t *ValNodeType) GetName() string {
return ValNodeX
}
// GetPayload method // GetPayload method
func (t *ValNodeType) GetPayload() types.Message { func (t *ValNodeType) GetPayload() types.Message {
return &ValNodeAction{} return &ValNodeAction{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment