BaseApplication

This commit is contained in:
Ethan Buchman
2017-02-13 20:16:21 -05:00
parent b6afa8d85b
commit e909cafa0b
6 changed files with 52 additions and 99 deletions
+2 -10
View File
@@ -9,6 +9,8 @@ import (
)
type CounterApplication struct {
types.BaseApplication
hashCount int
txCount int
serial bool
@@ -80,13 +82,3 @@ func (app *CounterApplication) Query(reqQuery types.RequestQuery) types.Response
return types.ResponseQuery{Log: Fmt("Invalid query path. Expected hash or tx, got %v", reqQuery.Path)}
}
}
func (app *CounterApplication) InitChain(validators []*types.Validator) {
}
func (app *CounterApplication) BeginBlock(hash []byte, header *types.Header) {
}
func (app *CounterApplication) EndBlock(height uint64) types.ResponseEndBlock {
return types.ResponseEndBlock{}
}