Use protobuf enums

This commit is contained in:
Jae Kwon 2016-01-31 19:55:23 -08:00
parent 3f49b509d2
commit a73a65a45b
2 changed files with 2 additions and 2 deletions

View File

@ -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{

View File

@ -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.