Use protobuf enums for RetCode. s/RetCode/CodeType/g

This commit is contained in:
Jae Kwon
2016-01-31 20:39:43 -08:00
parent 012abc437b
commit 69e587f57f
10 changed files with 110 additions and 90 deletions

View File

@@ -9,14 +9,14 @@ type Application interface {
SetOption(key string, value string) (log string)
// Append a tx
AppendTx(tx []byte) (code RetCode, result []byte, log string)
AppendTx(tx []byte) (code CodeType, result []byte, log string)
// Validate a tx for the mempool
CheckTx(tx []byte) (code RetCode, result []byte, log string)
CheckTx(tx []byte) (code CodeType, result []byte, log string)
// Return the application Merkle root hash
GetHash() (hash []byte, log string)
// Query for state
Query(query []byte) (code RetCode, result []byte, log string)
Query(query []byte) (code CodeType, result []byte, log string)
}