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
717 B

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. package nilapp
  2. import (
  3. "github.com/tendermint/tmsp/types"
  4. )
  5. type NilApplication struct {
  6. }
  7. func NewNilApplication() *NilApplication {
  8. return &NilApplication{}
  9. }
  10. func (app *NilApplication) Info() string {
  11. return "nil"
  12. }
  13. func (app *NilApplication) SetOption(key string, value string) (log string) {
  14. return ""
  15. }
  16. func (app *NilApplication) AppendTx(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(query []byte) types.Result {
  26. return types.NewResultOK(nil, "")
  27. }