Skip to content

Commit

Permalink
submit uptime proof when ending pos validation in e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Nov 1, 2024
1 parent d9f0a9d commit 82dcdc8
Show file tree
Hide file tree
Showing 4 changed files with 229 additions and 29 deletions.
3 changes: 3 additions & 0 deletions tests/flows/validator-manager/erc20_token_staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func ERC20TokenStakingManager(network interfaces.LocalNetwork) {
expiry,
nodes[0],
)
validatorStartTime := time.Now()

//
// Register a delegator
Expand Down Expand Up @@ -263,5 +264,7 @@ func ERC20TokenStakingManager(network interfaces.LocalNetwork) {
expiry,
nodes[0],
1,
true,
validatorStartTime,
)
}
3 changes: 3 additions & 0 deletions tests/flows/validator-manager/native_token_staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func NativeTokenStakingManager(network interfaces.LocalNetwork) {
expiry,
nodes[0],
)
validatorStartTime := time.Now()

//
// Register a delegator
Expand Down Expand Up @@ -262,5 +263,7 @@ func NativeTokenStakingManager(network interfaces.LocalNetwork) {
expiry,
nodes[0],
1,
true,
validatorStartTime,
)
}
5 changes: 5 additions & 0 deletions tests/flows/validator-manager/poa_to_pos.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ func PoAMigrationToPoS(network interfaces.LocalNetwork) {
expiry,
nodes[0],
1,
false,
time.Time{},
)

expiry2 := uint64(time.Now().Add(24 * time.Hour).Unix())
Expand All @@ -266,6 +268,7 @@ func PoAMigrationToPoS(network interfaces.LocalNetwork) {
expiry2,
nodes[0],
)
validatorStartTime := time.Now()

// Delist the PoS validator
utils.InitializeAndCompleteEndNativeValidation(
Expand All @@ -281,5 +284,7 @@ func PoAMigrationToPoS(network interfaces.LocalNetwork) {
expiry2,
nodes[0],
1,
true,
validatorStartTime,
)
}
Loading

0 comments on commit 82dcdc8

Please sign in to comment.