mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 06:25:47 +00:00
pleaseing the linter (2)
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
36d81fe9ff
commit
ae3dcd1df6
@ -621,7 +621,7 @@ func New(
|
|||||||
genutil.NewAppModule(
|
genutil.NewAppModule(
|
||||||
app.AccountKeeper,
|
app.AccountKeeper,
|
||||||
app.StakingKeeper,
|
app.StakingKeeper,
|
||||||
app.BaseApp.DeliverTx,
|
app.DeliverTx,
|
||||||
encodingConfig.TxConfig,
|
encodingConfig.TxConfig,
|
||||||
),
|
),
|
||||||
auth.NewAppModule(appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)),
|
auth.NewAppModule(appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)),
|
||||||
@ -939,14 +939,14 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, _ config.APIConfig) {
|
|||||||
|
|
||||||
// RegisterTxService implements the Application.RegisterTxService method.
|
// RegisterTxService implements the Application.RegisterTxService method.
|
||||||
func (app *App) RegisterTxService(clientCtx client.Context) {
|
func (app *App) RegisterTxService(clientCtx client.Context) {
|
||||||
authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, app.interfaceRegistry)
|
authtx.RegisterTxService(app.GRPCQueryRouter(), clientCtx, app.Simulate, app.interfaceRegistry)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RegisterTendermintService implements the Application.RegisterTendermintService method.
|
// RegisterTendermintService implements the Application.RegisterTendermintService method.
|
||||||
func (app *App) RegisterTendermintService(clientCtx client.Context) {
|
func (app *App) RegisterTendermintService(clientCtx client.Context) {
|
||||||
tmservice.RegisterTendermintService(
|
tmservice.RegisterTendermintService(
|
||||||
clientCtx,
|
clientCtx,
|
||||||
app.BaseApp.GRPCQueryRouter(),
|
app.GRPCQueryRouter(),
|
||||||
app.interfaceRegistry,
|
app.interfaceRegistry,
|
||||||
app.Query,
|
app.Query,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -41,7 +41,7 @@ func (app *App) ExportAppStateAndValidators(
|
|||||||
AppState: appState,
|
AppState: appState,
|
||||||
Validators: validators,
|
Validators: validators,
|
||||||
Height: height,
|
Height: height,
|
||||||
ConsensusParams: app.BaseApp.GetConsensusParams(ctx),
|
ConsensusParams: app.GetConsensusParams(ctx),
|
||||||
}, err
|
}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,13 +50,8 @@ func (app *App) ExportAppStateAndValidators(
|
|||||||
// NOTE zero height genesis is a temporary feature which will be deprecated
|
// NOTE zero height genesis is a temporary feature which will be deprecated
|
||||||
// in favour of export at a block height
|
// in favour of export at a block height
|
||||||
func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
|
func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
|
||||||
applyAllowedAddrs := false
|
|
||||||
|
|
||||||
// check if there is a allowed address list
|
// check if there is a allowed address list
|
||||||
if len(jailAllowedAddrs) > 0 {
|
applyAllowedAddrs := (len(jailAllowedAddrs) > 0)
|
||||||
applyAllowedAddrs = true
|
|
||||||
}
|
|
||||||
|
|
||||||
allowedAddrsMap := make(map[string]bool)
|
allowedAddrsMap := make(map[string]bool)
|
||||||
|
|
||||||
for _, addr := range jailAllowedAddrs {
|
for _, addr := range jailAllowedAddrs {
|
||||||
|
|||||||
@ -149,7 +149,8 @@ func (mms *MqttMonitor) SelectPoPParticipantsOutOfActiveActors() (challenger str
|
|||||||
found := 0
|
found := 0
|
||||||
var lastSeen LastSeenEvent
|
var lastSeen LastSeenEvent
|
||||||
for iter.Next() {
|
for iter.Next() {
|
||||||
if count == randomChallenger {
|
switch count {
|
||||||
|
case randomChallenger:
|
||||||
lastSeen, err = mms.getDataFromIter(iter)
|
lastSeen, err = mms.getDataFromIter(iter)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Log("could not get Data from ID" + strconv.Itoa(randomChallenger))
|
Log("could not get Data from ID" + strconv.Itoa(randomChallenger))
|
||||||
@ -157,7 +158,7 @@ func (mms *MqttMonitor) SelectPoPParticipantsOutOfActiveActors() (challenger str
|
|||||||
}
|
}
|
||||||
challenger = lastSeen.Address
|
challenger = lastSeen.Address
|
||||||
found++
|
found++
|
||||||
} else if count == randomChallengee {
|
case randomChallengee:
|
||||||
lastSeen, err = mms.getDataFromIter(iter)
|
lastSeen, err = mms.getDataFromIter(iter)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Log("could not get Data from ID" + strconv.Itoa(randomChallengee))
|
Log("could not get Data from ID" + strconv.Itoa(randomChallengee))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user