disable endblock for lcd
This commit is contained in:
parent
7ab02aed76
commit
733b616c8c
|
@ -139,17 +139,17 @@ func InitializeTestLCD(t *testing.T, nValidators int, initAddrs []sdk.AccAddress
|
||||||
panic("InitializeTestLCD must use at least one validator")
|
panic("InitializeTestLCD must use at least one validator")
|
||||||
}
|
}
|
||||||
|
|
||||||
// add the priv validator (actual node) to genesis validators
|
//// add the priv validator (actual node) to genesis validators
|
||||||
genDoc.Validators = append(genDoc.Validators,
|
//genDoc.Validators = append(genDoc.Validators,
|
||||||
tmtypes.GenesisValidator{
|
//tmtypes.GenesisValidator{
|
||||||
PubKey: privVal.PubKey,
|
//PubKey: privVal.PubKey,
|
||||||
Power: 1,
|
//Power: 1,
|
||||||
Name: "val",
|
//Name: "val",
|
||||||
},
|
//},
|
||||||
)
|
//)
|
||||||
|
|
||||||
// then add some randoms
|
// then add some randoms
|
||||||
for i := 2; i < nValidators; i++ {
|
for i := 1; i < nValidators; i++ {
|
||||||
genDoc.Validators = append(genDoc.Validators,
|
genDoc.Validators = append(genDoc.Validators,
|
||||||
tmtypes.GenesisValidator{
|
tmtypes.GenesisValidator{
|
||||||
PubKey: ed25519.GenPrivKey().PubKey(),
|
PubKey: ed25519.GenPrivKey().PubKey(),
|
||||||
|
|
|
@ -168,7 +168,7 @@ func (app *GaiaApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.R
|
||||||
validatorUpdates := stake.EndBlocker(ctx, app.stakeKeeper)
|
validatorUpdates := stake.EndBlocker(ctx, app.stakeKeeper)
|
||||||
|
|
||||||
// distribute rewards
|
// distribute rewards
|
||||||
distr.EndBlocker(ctx, app.distrKeeper)
|
//distr.EndBlocker(ctx, app.distrKeeper)
|
||||||
|
|
||||||
// Add these new validators to the addr -> pubkey map.
|
// Add these new validators to the addr -> pubkey map.
|
||||||
app.slashingKeeper.AddValidators(ctx, validatorUpdates)
|
app.slashingKeeper.AddValidators(ctx, validatorUpdates)
|
||||||
|
|
Loading…
Reference in New Issue