From a73a65a45b334519a64c5d36a6197e5c344f744f Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Sun, 31 Jan 2016 19:55:23 -0800 Subject: [PATCH] Use protobuf enums --- mempool/mempool.go | 2 +- state/execution.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mempool/mempool.go b/mempool/mempool.go index 0300c402a..8980130b1 100644 --- a/mempool/mempool.go +++ b/mempool/mempool.go @@ -103,7 +103,7 @@ func (mem *Mempool) CheckTx(tx types.Tx) (err error) { // TMSP callback function func (mem *Mempool) resCb(req *tmsp.Request, res *tmsp.Response) { switch res.Type { - case tmsp.ResponseTypeCheckTx: + case tmsp.MessageType_CheckTx: if tmsp.RetCode(res.Code) == tmsp.RetCodeOK { mem.counter++ memTx := &mempoolTx{ diff --git a/state/execution.go b/state/execution.go index 0f62b8366..faad5377d 100644 --- a/state/execution.go +++ b/state/execution.go @@ -62,7 +62,7 @@ func (s *State) execBlockOnProxyApp(evsw *events.EventSwitch, proxyAppConn proxy // Execute transactions and get hash proxyCb := func(req *tmsp.Request, res *tmsp.Response) { switch res.Type { - case tmsp.ResponseTypeAppendTx: + case tmsp.MessageType_AppendTx: // TODO: make use of res.Log // TODO: make use of this info // Blocks may include invalid txs.