Skip to content

Commit

Permalink
remove democ test print and fix state
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Sep 30, 2024
1 parent 01cfbca commit e4eb7e6
Showing 1 changed file with 87 additions and 87 deletions.
174 changes: 87 additions & 87 deletions tests/e2e/steps_democracy.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,94 +331,94 @@ func stepsDemocracy(consumerName string, expectRegisteredRewardDistribution bool
},
},
},
// {
// Action: RelayPacketsAction{
// ChainA: ChainID("provi"),
// ChainB: ChainID(consumerName),
// Port: "provider",
// Channel: 0,
// },
// State: State{
// ChainID("provi"): ChainState{
// ValPowers: &map[ValidatorID]uint{
// ValidatorID("alice"): 511,
// // Downtime jailing and corresponding voting power change are processed by provider
// ValidatorID("bob"): 0,
// ValidatorID("carol"): 500,
// },
// },
// ChainID(consumerName): ChainState{
// ValPowers: &map[ValidatorID]uint{
// ValidatorID("alice"): 511,
// ValidatorID("bob"): 500,
// ValidatorID("carol"): 500,
// },
// },
// },
// },
{
Action: RelayPacketsAction{
ChainA: ChainID("provi"),
ChainB: ChainID(consumerName),
Port: "provider",
Channel: 0,
},
State: State{
ChainID("provi"): ChainState{
ValPowers: &map[ValidatorID]uint{
ValidatorID("alice"): 511,
// Downtime jailing and corresponding voting power change are processed by provider
ValidatorID("bob"): 0,
ValidatorID("carol"): 500,
},
},
ChainID(consumerName): ChainState{
ValPowers: &map[ValidatorID]uint{
ValidatorID("alice"): 511,
ValidatorID("bob"): 500,
ValidatorID("carol"): 500,
},
},
},
},
// A block is incremented each action, hence why VSC is committed on provider,
// and can now be relayed as packet to consumer
// {
// Action: RelayPacketsAction{
// ChainA: ChainID("provi"),
// ChainB: ChainID(consumerName),
// Port: "provider",
// Channel: 0,
// },
// State: State{
// ChainID(consumerName): ChainState{
// ValPowers: &map[ValidatorID]uint{
// ValidatorID("alice"): 511,
// // VSC now seen on consumer
// ValidatorID("bob"): 0,
// ValidatorID("carol"): 500,
// },
// },
// },
// },
// {
// Action: UnjailValidatorAction{
// Provider: ChainID("provi"),
// Validator: ValidatorID("bob"),
// },
// State: State{
// ChainID("provi"): ChainState{
// ValPowers: &map[ValidatorID]uint{
// ValidatorID("alice"): 511,
// ValidatorID("bob"): 500,
// ValidatorID("carol"): 500,
// },
// },
// ChainID(consumerName): ChainState{
// ValPowers: &map[ValidatorID]uint{
// ValidatorID("alice"): 511,
// ValidatorID("bob"): 0,
// ValidatorID("carol"): 500,
// },
// },
// },
// },
// {
// Action: RelayPacketsAction{
// ChainA: ChainID("provi"),
// ChainB: ChainID(consumerName),
// Port: "provider",
// Channel: 0,
// },
// State: State{
// ChainID(consumerName): ChainState{
// ValPowers: &map[ValidatorID]uint{
// ValidatorID("alice"): 511,
// ValidatorID("bob"): 500,
// ValidatorID("carol"): 500,
// },
// // Check that slashing on the gov-consumer chain does not result in slashing for the representatives or their delegators
// StakedTokens: &map[ValidatorID]uint{
// ValidatorID("alice"): 100500000,
// ValidatorID("bob"): 40000000,
// },
// },
// },
// },
{
Action: RelayPacketsAction{
ChainA: ChainID("provi"),
ChainB: ChainID(consumerName),
Port: "provider",
Channel: 0,
},
State: State{
ChainID(consumerName): ChainState{
ValPowers: &map[ValidatorID]uint{
ValidatorID("alice"): 511,
// VSC now seen on consumer
ValidatorID("bob"): 0,
ValidatorID("carol"): 500,
},
},
},
},
{
Action: UnjailValidatorAction{
Provider: ChainID("provi"),
Validator: ValidatorID("bob"),
},
State: State{
ChainID("provi"): ChainState{
ValPowers: &map[ValidatorID]uint{
ValidatorID("alice"): 511,
ValidatorID("bob"): 500,
ValidatorID("carol"): 500,
},
},
ChainID(consumerName): ChainState{
ValPowers: &map[ValidatorID]uint{
ValidatorID("alice"): 511,
ValidatorID("bob"): 0,
ValidatorID("carol"): 500,
},
},
},
},
{
Action: RelayPacketsAction{
ChainA: ChainID("provi"),
ChainB: ChainID(consumerName),
Port: "provider",
Channel: 0,
},
State: State{
ChainID(consumerName): ChainState{
ValPowers: &map[ValidatorID]uint{
ValidatorID("alice"): 511,
ValidatorID("bob"): 500,
ValidatorID("carol"): 500,
},
// Check that slashing on the gov-consumer chain does not result in slashing for the representatives or their delegators
StakedTokens: &map[ValidatorID]uint{
ValidatorID("alice"): 100500000,
ValidatorID("bob"): 40000000,
},
},
},
},
}
}

0 comments on commit e4eb7e6

Please sign in to comment.