|
|
@ -79,7 +79,7 @@ func TestABCIResponsesSaveLoad1(t *testing.T) { |
|
|
|
abciResponses.DeliverTx[0] = &abci.ResponseDeliverTx{Data: []byte("foo"), Tags: nil} |
|
|
|
abciResponses.DeliverTx[1] = &abci.ResponseDeliverTx{Data: []byte("bar"), Log: "ok", Tags: nil} |
|
|
|
abciResponses.EndBlock = &abci.ResponseEndBlock{ValidatorUpdates: []abci.Validator{ |
|
|
|
types.TM2PB.ValidatorFromPubKeyAndPower(ed25519.GenPrivKeyEd25519().PubKey(), 10), |
|
|
|
types.TM2PB.ValidatorFromPubKeyAndPower(ed25519.GenPrivKey().PubKey(), 10), |
|
|
|
}} |
|
|
|
|
|
|
|
saveABCIResponses(stateDB, block.Height, abciResponses) |
|
|
@ -261,7 +261,7 @@ func TestManyValidatorChangesSaveLoad(t *testing.T) { |
|
|
|
defer tearDown(t) |
|
|
|
|
|
|
|
const height = 1 |
|
|
|
pubkey := ed25519.GenPrivKeyEd25519().PubKey() |
|
|
|
pubkey := ed25519.GenPrivKey().PubKey() |
|
|
|
// swap the first validator with a new one ^^^ (validator set size stays the same)
|
|
|
|
header, blockID, responses := makeHeaderPartsResponsesValPubKeyChange(state, height, pubkey) |
|
|
|
var err error |
|
|
@ -284,7 +284,7 @@ func TestManyValidatorChangesSaveLoad(t *testing.T) { |
|
|
|
func genValSet(size int) *types.ValidatorSet { |
|
|
|
vals := make([]*types.Validator, size) |
|
|
|
for i := 0; i < size; i++ { |
|
|
|
vals[i] = types.NewValidator(ed25519.GenPrivKeyEd25519().PubKey(), 10) |
|
|
|
vals[i] = types.NewValidator(ed25519.GenPrivKey().PubKey(), 10) |
|
|
|
} |
|
|
|
return types.NewValidatorSet(vals) |
|
|
|
} |
|
|
@ -371,7 +371,7 @@ func makeParams(blockBytes, blockTx, blockGas, txBytes, |
|
|
|
} |
|
|
|
|
|
|
|
func pk() []byte { |
|
|
|
return ed25519.GenPrivKeyEd25519().PubKey().Bytes() |
|
|
|
return ed25519.GenPrivKey().PubKey().Bytes() |
|
|
|
} |
|
|
|
|
|
|
|
func TestApplyUpdates(t *testing.T) { |
|
|
|