various linter fixes (#8666)

This commit is contained in:
Alessio Treglia
2021-02-23 08:46:01 +00:00
committed by GitHub
parent 39b816ebb3
commit f2ee972e31
74 changed files with 19 additions and 168 deletions
-1
View File
@@ -68,7 +68,6 @@ func createLogFile() *os.File {
return f
}
//_____________________
// dummy log writter
type DummyLogWriter struct{}
-2
View File
@@ -59,8 +59,6 @@ func (vals mockValidators) getKeys() []string {
return keys
}
//_________________________________________________________________________________
// randomProposer picks a random proposer from the current validator set
func (vals mockValidators) randomProposer(r *rand.Rand) tmbytes.HexBytes {
keys := vals.getKeys()
-4
View File
@@ -64,8 +64,6 @@ func (oe OperationEntry) MustMarshal() json.RawMessage {
return out
}
//_____________________________________________________________________
// OperationQueue defines an object for a queue of operations
type OperationQueue map[int][]simulation.Operation
@@ -107,8 +105,6 @@ func queueOperations(queuedOps OperationQueue, queuedTimeOps []simulation.Future
}
}
//________________________________________________________________________
// WeightedOperation is an operation with associated weight.
// This is used to bias the selection operation within the simulator.
type WeightedOperation struct {
-3
View File
@@ -87,7 +87,6 @@ func RandomParams(r *rand.Rand) Params {
}
}
//-----------------------------------------------------------------------------
// Param change proposals
// ParamChange defines the object used for simulating parameter change proposals
@@ -123,7 +122,6 @@ func (spc ParamChange) ComposedKey() string {
return fmt.Sprintf("%s/%s", spc.Subspace(), spc.Key())
}
//-----------------------------------------------------------------------------
// Proposal Contents
// WeightedProposalContent defines a common struct for proposal contents defined by
@@ -150,7 +148,6 @@ func (w WeightedProposalContent) ContentSimulatorFn() simulation.ContentSimulato
return w.contentSimulatorFn
}
//-----------------------------------------------------------------------------
// Param change proposals
// randomConsensusParams returns random simulation consensus parameters, it extracts the Evidence from the Staking genesis state.
-2
View File
@@ -240,8 +240,6 @@ func SimulateFromSeed(
return false, exportedParams, nil
}
//______________________________________________________________________________
type blockSimFn func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context,
accounts []simulation.Account, header tmproto.Header) (opCount int)