Commit 5404f9e1 authored by 张振华's avatar 张振华

lint

parent d32b6dce
...@@ -58,7 +58,7 @@ type Action struct { ...@@ -58,7 +58,7 @@ type Action struct {
localDB dbm.KVDB localDB dbm.KVDB
index int index int
api client.QueueProtocolAPI api client.QueueProtocolAPI
execApi api.ExecutorAPI execAPI api.ExecutorAPI
} }
//NewAction 生成Action对象 //NewAction 生成Action对象
...@@ -77,7 +77,7 @@ func NewAction(guess *Guess, tx *types.Transaction, index int) *Action { ...@@ -77,7 +77,7 @@ func NewAction(guess *Guess, tx *types.Transaction, index int) *Action {
localDB: guess.GetLocalDB(), localDB: guess.GetLocalDB(),
index: index, index: index,
api: guess.GetAPI(), api: guess.GetAPI(),
execApi: guess.GetExecutorAPI(), execAPI: guess.GetExecutorAPI(),
} }
} }
...@@ -878,7 +878,7 @@ func (action *Action) checkTime(start *gty.GuessGameStart) bool { ...@@ -878,7 +878,7 @@ func (action *Action) checkTime(start *gty.GuessGameStart) bool {
// GetMainHeightByTxHash get Block height // GetMainHeightByTxHash get Block height
func (action *Action) GetMainHeightByTxHash(txHash []byte) int64 { func (action *Action) GetMainHeightByTxHash(txHash []byte) int64 {
req := &types.ReqHash{Hash: txHash} req := &types.ReqHash{Hash: txHash}
txDetail, err := action.execApi.QueryTx(req) txDetail, err := action.execAPI.QueryTx(req)
if err != nil { if err != nil {
return -1 return -1
} }
......
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