disable endblock for lcd

This commit is contained in:
rigelrozanski 2018-09-28 04:15:03 -04:00
parent 7ab02aed76
commit 733b616c8c
2 changed files with 10 additions and 10 deletions

View File

@ -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(),

View File

@ -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)