tendermint/types/base_app.go
Anton Kaliaev fc7db13fa8
remove tags from CheckTx
add value_type field to KVPair
2017-11-20 18:21:59 -06:00

43 lines
855 B
Go

package types
type BaseApplication struct {
}
func NewBaseApplication() *BaseApplication {
return &BaseApplication{}
}
func (BaseApplication) Info(req RequestInfo) ResponseInfo {
return ResponseInfo{}
}
func (BaseApplication) SetOption(key string, value string) (log string) {
return ""
}
func (BaseApplication) DeliverTx(tx []byte) Result {
return NewResultOK(nil, "")
}
func (BaseApplication) CheckTx(tx []byte) Result {
return NewResultOK(nil, "")
}
func (BaseApplication) Commit() Result {
return NewResultOK([]byte("nil"), "")
}
func (BaseApplication) Query(req RequestQuery) ResponseQuery {
return ResponseQuery{}
}
func (BaseApplication) InitChain(req RequestInitChain) {
}
func (BaseApplication) BeginBlock(req RequestBeginBlock) {
}
func (BaseApplication) EndBlock(height uint64) ResponseEndBlock {
return ResponseEndBlock{}
}