Use protobuf enums for CodeType

This commit is contained in:
Jae Kwon
2016-02-04 18:40:02 -08:00
parent a73a65a45b
commit f1b48ff009
3 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ func (s *State) execBlockOnProxyApp(evsw *events.EventSwitch, proxyAppConn proxy
// TODO: make use of this info
// Blocks may include invalid txs.
// reqAppendTx := req.(tmsp.RequestAppendTx)
if tmsp.RetCode(res.Code) == tmsp.RetCodeOK {
if res.Code == tmsp.CodeType_OK {
validTxs += 1
} else {
log.Debug("Invalid tx", "code", res.Code, "log", res.Log)
@ -159,7 +159,7 @@ func updateValidatorsWithBlock(lastValSet *types.ValidatorSet, valSet *types.Val
type InvalidTxError struct {
Tx types.Tx
Code tmsp.RetCode
Code tmsp.CodeType
}
func (txErr InvalidTxError) Error() string {