Browse Source

Use protobuf enums

pull/192/head
Jae Kwon 9 years ago
parent
commit
a73a65a45b
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mempool/mempool.go
  2. +1
    -1
      state/execution.go

+ 1
- 1
mempool/mempool.go 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{


+ 1
- 1
state/execution.go 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.


Loading…
Cancel
Save