mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +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
|
// TMSP callback function
|
||||||
func (mem *Mempool) resCb(req *tmsp.Request, res *tmsp.Response) {
|
func (mem *Mempool) resCb(req *tmsp.Request, res *tmsp.Response) {
|
||||||
switch res.Type {
|
switch res.Type {
|
||||||
case tmsp.ResponseTypeCheckTx:
|
case tmsp.MessageType_CheckTx:
|
||||||
if tmsp.RetCode(res.Code) == tmsp.RetCodeOK {
|
if tmsp.RetCode(res.Code) == tmsp.RetCodeOK {
|
||||||
mem.counter++
|
mem.counter++
|
||||||
memTx := &mempoolTx{
|
memTx := &mempoolTx{
|
||||||
|
@ -62,7 +62,7 @@ func (s *State) execBlockOnProxyApp(evsw *events.EventSwitch, proxyAppConn proxy
|
|||||||
// Execute transactions and get hash
|
// Execute transactions and get hash
|
||||||
proxyCb := func(req *tmsp.Request, res *tmsp.Response) {
|
proxyCb := func(req *tmsp.Request, res *tmsp.Response) {
|
||||||
switch res.Type {
|
switch res.Type {
|
||||||
case tmsp.ResponseTypeAppendTx:
|
case tmsp.MessageType_AppendTx:
|
||||||
// TODO: make use of res.Log
|
// TODO: make use of res.Log
|
||||||
// TODO: make use of this info
|
// TODO: make use of this info
|
||||||
// Blocks may include invalid txs.
|
// Blocks may include invalid txs.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user