mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
Use protobuf enums
This commit is contained in:
parent
3f49b509d2
commit
a73a65a45b
@ -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{
|
||||
|
@ -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…
x
Reference in New Issue
Block a user