Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to initialize trusting period in client state #7

Merged
merged 2 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions e2e/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
- 8545:8545
- 8546:8546
healthcheck:
test: [ "CMD-SHELL", "grep \"00000000:2161 00000000:0000 0A\" /proc/net/tcp || exit 1" ]
test: [ "CMD-SHELL", "grep \"00000000:2161 00000000:0000 0A\" /proc/net/tcp || grep \"00000000000000000000000000000000:2161 00000000000000000000000000000000:0000 0A\" /proc/net/tcp6 || exit 1" ]
interval: 100ms
timeout: 1s
retries: 100
Expand All @@ -15,7 +15,7 @@ services:
- 8645:8545
- 8646:8546
healthcheck:
test: [ "CMD-SHELL", "grep \"00000000:2161 00000000:0000 0A\" /proc/net/tcp || exit 1" ]
test: [ "CMD-SHELL", "grep \"00000000:2161 00000000:0000 0A\" /proc/net/tcp || grep \"00000000000000000000000000000000:2161 00000000000000000000000000000000:0000 0A\" /proc/net/tcp6 || exit 1" ]
interval: 100ms
timeout: 1s
retries: 100
Expand All @@ -25,7 +25,7 @@ services:
- 8545:8545
- 8546:8546
healthcheck:
test: [ "CMD-SHELL", "grep \"00000000:2161 00000000:0000 0A\" /proc/net/tcp || exit 1" ]
test: [ "CMD-SHELL", "grep \"00000000:2161 00000000:0000 0A\" /proc/net/tcp || grep \"00000000000000000000000000000000:2161 00000000000000000000000000000000:0000 0A\" /proc/net/tcp6 || exit 1" ]
interval: 100ms
timeout: 1s
retries: 100
Expand All @@ -35,7 +35,7 @@ services:
- 8645:8545
- 8646:8546
healthcheck:
test: [ "CMD-SHELL", "grep \"00000000:2161 00000000:0000 0A\" /proc/net/tcp || exit 1" ]
test: [ "CMD-SHELL", "grep \"00000000:2161 00000000:0000 0A\" /proc/net/tcp || grep \"00000000000000000000000000000000:2161 00000000000000000000000000000000:0000 0A\" /proc/net/tcp6 || exit 1" ]
interval: 100ms
timeout: 1s
retries: 100
1 change: 1 addition & 0 deletions module/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (pr *Prover) CreateInitialLightClientState(height exported.Height) (exporte
ChainId: chainIDUint256[:],
IbcStoreAddress: pr.chain.Config().IBCAddress().Bytes(),
LatestHeight: clienttypes.NewHeight(0, uint64(header.Number.Int64())),
TrustingPeriod: uint64(pr.config.GetTrustingPeriod().Seconds()),
}
consensusState := &ConsensusState{
Timestamp: header.Time,
Expand Down
Loading