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")
|
||||
}
|
||||
|
||||
// add the priv validator (actual node) to genesis validators
|
||||
genDoc.Validators = append(genDoc.Validators,
|
||||
tmtypes.GenesisValidator{
|
||||
PubKey: privVal.PubKey,
|
||||
Power: 1,
|
||||
Name: "val",
|
||||
},
|
||||
)
|
||||
//// add the priv validator (actual node) to genesis validators
|
||||
//genDoc.Validators = append(genDoc.Validators,
|
||||
//tmtypes.GenesisValidator{
|
||||
//PubKey: privVal.PubKey,
|
||||
//Power: 1,
|
||||
//Name: "val",
|
||||
//},
|
||||
//)
|
||||
|
||||
// then add some randoms
|
||||
for i := 2; i < nValidators; i++ {
|
||||
for i := 1; i < nValidators; i++ {
|
||||
genDoc.Validators = append(genDoc.Validators,
|
||||
tmtypes.GenesisValidator{
|
||||
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)
|
||||
|
||||
// distribute rewards
|
||||
distr.EndBlocker(ctx, app.distrKeeper)
|
||||
//distr.EndBlocker(ctx, app.distrKeeper)
|
||||
|
||||
// Add these new validators to the addr -> pubkey map.
|
||||
app.slashingKeeper.AddValidators(ctx, validatorUpdates)
|
||||
|
|
Loading…
Reference in New Issue