You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
749 B

9 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. package nilapp
  2. import (
  3. "github.com/tendermint/abci/types"
  4. )
  5. type NilApplication struct {
  6. }
  7. func NewNilApplication() *NilApplication {
  8. return &NilApplication{}
  9. }
  10. func (app *NilApplication) Info() (resInfo types.ResponseInfo) {
  11. return
  12. }
  13. func (app *NilApplication) SetOption(key string, value string) (log string) {
  14. return ""
  15. }
  16. func (app *NilApplication) DeliverTx(tx []byte) types.Result {
  17. return types.NewResultOK(nil, "")
  18. }
  19. func (app *NilApplication) CheckTx(tx []byte) types.Result {
  20. return types.NewResultOK(nil, "")
  21. }
  22. func (app *NilApplication) Commit() types.Result {
  23. return types.NewResultOK([]byte("nil"), "")
  24. }
  25. func (app *NilApplication) Query(reqQuery types.RequestQuery) (resQuery types.ResponseQuery) {
  26. return resQuery
  27. }