Skip to content

Commit

Permalink
Merge pull request #7 from datachainlab/fix-trusting-period-initializ…
Browse files Browse the repository at this point in the history
…ation

Fix to initialize trusting period in client state

Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
  • Loading branch information
bluele committed Jun 30, 2024
2 parents defbedf + 6717168 commit ae3d7d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit ae3d7d5

Please sign in to comment.