mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-29 12:41:44 +00:00
lint: couple more fixes
This commit is contained in:
@ -57,7 +57,7 @@ func setOption(client abcicli.Client, key, value string) {
|
|||||||
|
|
||||||
func commit(client abcicli.Client, hashExp []byte) {
|
func commit(client abcicli.Client, hashExp []byte) {
|
||||||
res := client.CommitSync()
|
res := client.CommitSync()
|
||||||
_, data, log := res.Code, res.Data, res.Log
|
_, data, _ := res.Code, res.Data, res.Log
|
||||||
if res.IsErr() {
|
if res.IsErr() {
|
||||||
panic(fmt.Sprintf("committing err %v\n", res))
|
panic(fmt.Sprintf("committing err %v\n", res))
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package types
|
package types // nolint: goimports
|
||||||
|
|
||||||
import (
|
import (
|
||||||
context "golang.org/x/net/context"
|
context "golang.org/x/net/context"
|
||||||
@ -18,7 +18,7 @@ type Application interface {
|
|||||||
// Consensus Connection
|
// Consensus Connection
|
||||||
InitChain(RequestInitChain) // Initialize blockchain with validators and other info from TendermintCore
|
InitChain(RequestInitChain) // Initialize blockchain with validators and other info from TendermintCore
|
||||||
BeginBlock(RequestBeginBlock) // Signals the beginning of a block
|
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
|
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
|
Commit() Result // Commit the state and return the application Merkle root hash
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user