Browse Source

lint: couple more fixes

pull/1780/head
Zach Ramsay 7 years ago
parent
commit
fe426de5d4
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      tests/test_app/app.go
  2. +2
    -2
      types/application.go

+ 1
- 1
tests/test_app/app.go View File

@ -57,7 +57,7 @@ func setOption(client abcicli.Client, key, value string) {
func commit(client abcicli.Client, hashExp []byte) {
res := client.CommitSync()
_, data, log := res.Code, res.Data, res.Log
_, data, _ := res.Code, res.Data, res.Log
if res.IsErr() {
panic(fmt.Sprintf("committing err %v\n", res))
}


+ 2
- 2
types/application.go View File

@ -1,4 +1,4 @@
package types
package types // nolint: goimports
import (
context "golang.org/x/net/context"
@ -18,7 +18,7 @@ type Application interface {
// Consensus Connection
InitChain(RequestInitChain) // Initialize blockchain with validators and other info from TendermintCore
BeginBlock(RequestBeginBlock) // Signals the beginning of a block
DeliverTx(tx []byte) Result // Deliver a tx for full processing
DeliverTx(tx []byte) Result // Deliver a tx for full processing
EndBlock(height uint64) ResponseEndBlock // Signals the end of a block, returns changes to the validator set
Commit() Result // Commit the state and return the application Merkle root hash
}


Loading…
Cancel
Save