various linter fixes (#8666)
This commit is contained in:
@@ -68,7 +68,6 @@ func createLogFile() *os.File {
|
||||
return f
|
||||
}
|
||||
|
||||
//_____________________
|
||||
// dummy log writter
|
||||
type DummyLogWriter struct{}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user