Skip to content

Commit

Permalink
addressed more review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bermuell committed Sep 3, 2024
1 parent 61c853e commit d10b610
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func (tr Chain) CreateConsumer(providerChain, consumerChain ChainID, validator V
log.Fatalf("sending transaction failed with error code %d, Log:'%s'", txResponse.Code, txResponse.RawLog)
}

// TODO: introduce waitForTx
// TODO: introduce waitForTx (see issue #2198)
tr.waitBlocks(providerChain, 2, 10*time.Second)

// Get Consumer ID from transaction
Expand All @@ -503,7 +503,6 @@ func (tr Chain) CreateConsumer(providerChain, consumerChain ChainID, validator V
log.Fatalf("not able to query tx containing creation-consumer: tx: %s, err: %s, out: %s",
txResponse.TxHash, err.Error(), string(bz))
}
fmt.Println("@@@@ created consumer chain tx=", txResponse.TxHash)

err = json.Unmarshal(bz, txResponse)
if err != nil {
Expand Down Expand Up @@ -554,7 +553,7 @@ func (tr Chain) submitConsumerAdditionProposal(
Metadata: "no metadata",
}

InitializationParameters := types.ConsumerInitializationParameters{
initializationParameters := types.ConsumerInitializationParameters{
InitialHeight: action.InitialHeight,
GenesisHash: []byte("gen_hash"),
BinaryHash: []byte("bin_hash"),
Expand All @@ -578,7 +577,7 @@ func (tr Chain) submitConsumerAdditionProposal(
NewOwnerAddress: authority,
}
// For the MsgUpdateConsumer sent in the proposal
PowerShapingParameters := types.PowerShapingParameters{
powerShapingParameters := types.PowerShapingParameters{
Top_N: 0,
ValidatorsPowerCap: action.ValidatorsPowerCap,
ValidatorSetCap: action.ValidatorSetCap,
Expand All @@ -587,14 +586,14 @@ func (tr Chain) submitConsumerAdditionProposal(
MinStake: action.MinStake,
AllowInactiveVals: action.AllowInactiveVals,
}
update.PowerShapingParameters = &PowerShapingParameters
update.PowerShapingParameters = &powerShapingParameters
tr.UpdateConsumer(action.Chain, action.From, *update)

// - set PowerShaping params TopN > 0 for consumer chain
update.PowerShapingParameters.Top_N = action.TopN
update.Signer = authority
update.NewOwnerAddress = ""
update.InitializationParameters = &InitializationParameters
update.InitializationParameters = &initializationParameters
update.InitializationParameters.SpawnTime = spawnTime
update.Metadata = &Metadata

Expand Down

0 comments on commit d10b610

Please sign in to comment.