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: refetch missing packet #168

Draft
wants to merge 66 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
2c07f05
fix: add missing mutex in query proof
viveksharmapoudel Aug 22, 2023
244d363
chore: add retry logic in wasm query method
viveksharmapoudel Aug 22, 2023
fb281b4
fix: add delay for pathprocessor sync
viveksharmapoudel Aug 22, 2023
5c72d19
fix: remove tp when getting client state
viveksharmapoudel Aug 22, 2023
df20a84
fix: adding defer in queryWasmProof
viveksharmapoudel Aug 22, 2023
afbcf30
fix: change to processheight
viveksharmapoudel Aug 22, 2023
f581195
fix: limit max block fetch at a time in wasm processor
viveksharmapoudel Aug 22, 2023
a2b9187
fix: btp block update miss
viveksharmapoudel Aug 23, 2023
9c3d3bd
fix:add values
viveksharmapoudel Aug 23, 2023
4660bc8
fix: the logic
viveksharmapoudel Aug 23, 2023
95396e6
fix: queue logic
viveksharmapoudel Aug 23, 2023
6b8db31
fix:refractor
viveksharmapoudel Aug 23, 2023
5145d20
fix: implement mutex in queue
viveksharmapoudel Aug 23, 2023
87a9477
fix: add prevconsensusstateheight method and use it to fetch trusted …
viveksharmapoudel Aug 24, 2023
68f8257
fix: add method missing receipt methods
viveksharmapoudel Aug 9, 2023
ef7b18c
Merge branch 'main' of github.com:icon-project/ibc-relay into fix/ref…
viveksharmapoudel Sep 6, 2023
2b90d8b
build fix
viveksharmapoudel Sep 6, 2023
ed33f74
feat: flush logic for contract based chains
viveksharmapoudel Sep 6, 2023
aed90fe
feat: add query method in chain provider for flush logic
viveksharmapoudel Sep 6, 2023
544277e
feat: implement additional query method in cosmos & penumber
viveksharmapoudel Sep 6, 2023
73613e6
feat: implement additional queries in icon & wasm chain
viveksharmapoudel Sep 6, 2023
c05f1c6
feat: getNextSequence Improvize logic
viveksharmapoudel Sep 6, 2023
7efd902
refract: wasm types code optimize
viveksharmapoudel Sep 6, 2023
e08da36
feat: implement next sequence send method
viveksharmapoudel Sep 6, 2023
6776c85
refract: unmarshal of contract byte response
viveksharmapoudel Sep 6, 2023
c7e0534
feat: add querySendPacketByHeight wasm chain
viveksharmapoudel Sep 6, 2023
cb5cd9b
feat: query send packet by height query added
viveksharmapoudel Sep 6, 2023
60ef21f
fix: get next seq based on height
viveksharmapoudel Sep 7, 2023
807283c
fix: remove comment
viveksharmapoudel Sep 11, 2023
2e9818c
feat: new btp queue structure
viveksharmapoudel Sep 11, 2023
de85a36
feat: update client logic
viveksharmapoudel Sep 11, 2023
4f233d7
feat: add test btp queue
viveksharmapoudel Sep 11, 2023
b07f90e
fix: queryMissingPacketReceipts method icon provider
viveksharmapoudel Sep 11, 2023
53729e4
Merge branch 'main' of github.com:icon-project/ibc-relay into fix/ref…
viveksharmapoudel Sep 11, 2023
64cf31d
fix: filter packetHeights before
viveksharmapoudel Sep 11, 2023
a2f663a
chore: rename packetHeights to message heights
viveksharmapoudel Sep 11, 2023
bf19a0a
feat: add query ackHeights methods
viveksharmapoudel Sep 11, 2023
7fff473
refract: refractor query method wasm
viveksharmapoudel Sep 11, 2023
7e10932
feat: add flush unreceived ack logic
viveksharmapoudel Sep 11, 2023
4aca55c
Merge branch 'main' into fix/refetch-missing-packet
viveksharmapoudel Sep 11, 2023
fc991ed
fix: handle wasm query search based on latest height
viveksharmapoudel Sep 12, 2023
2cf0a6c
fix: query packet height based on fixed duration
viveksharmapoudel Sep 12, 2023
2098511
fix: implement pagination
viveksharmapoudel Sep 12, 2023
c310e79
fix: find proofContext change heights from last client state to lates…
viveksharmapoudel Sep 18, 2023
89b7406
fix: add btp block for all the missing packet if consensus state not …
viveksharmapoudel Sep 22, 2023
aa4ea1a
fix: add btp queue for missing block
viveksharmapoudel Sep 26, 2023
1ed3229
fix: flush ack not handled properly on icon side
viveksharmapoudel Oct 5, 2023
d262d5d
fix: ack on wasm not handled properly
viveksharmapoudel Oct 5, 2023
0150ed7
fix: active flush timer
viveksharmapoudel Oct 5, 2023
cb6fac2
Merge branch 'main' into fix/refetch-missing-packet
viveksharmapoudel Oct 5, 2023
07f4dbd
chore: fix merge conflict
viveksharmapoudel Nov 27, 2023
f92cede
feat: add btp proof context change flag
viveksharmapoudel Dec 1, 2023
3daee45
chore: remove unwanted
viveksharmapoudel Dec 1, 2023
539c435
chore: add flag for proof context from height
viveksharmapoudel Dec 4, 2023
5d06c2d
feat: update proof context change logic and remove timer to save height
viveksharmapoudel Dec 4, 2023
7183883
feat: add proof context update logic in start only
viveksharmapoudel Dec 4, 2023
274cd87
feat: iconchainprocessor startheight fetch from context
viveksharmapoudel Dec 4, 2023
6a83caa
feat: remove start height from IconproviderConfig-> always run from l…
viveksharmapoudel Dec 4, 2023
683a508
feat: icon find proofContextChange from height
viveksharmapoudel Dec 4, 2023
e857e48
feat: wasm chain add concurrency and remove start height
viveksharmapoudel Dec 4, 2023
e3a21f8
chore: add constant
viveksharmapoudel Dec 4, 2023
a902765
chore: helper method added
viveksharmapoudel Dec 4, 2023
b3b44e8
chore: removed HeightSnapshot logic
viveksharmapoudel Dec 4, 2023
c584766
chore: update example config
viveksharmapoudel Dec 4, 2023
c222afa
chore: reduce sleep time
viveksharmapoudel Dec 4, 2023
436d733
fix: add btp height of only it doesn't exist
viveksharmapoudel Dec 11, 2023
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
Next Next commit
fix: add missing mutex in query proof
viveksharmapoudel committed Aug 22, 2023
commit 2c07f05ab9f74980e53b994c2734bfd046619249
12 changes: 7 additions & 5 deletions relayer/chains/wasm/query.go
Original file line number Diff line number Diff line change
@@ -334,12 +334,12 @@ func (ap *WasmProvider) QueryClientConsensusState(ctx context.Context, chainHeig
}

func (ap *WasmProvider) QueryIBCHandlerContract(ctx context.Context, param wasmtypes.RawContractMessage) (*wasmtypes.QuerySmartContractStateResponse, error) {
done := ap.SetSDKContext()
defer done()
done := ap.SetSDKContext()
defer done()
return ap.QueryClient.SmartContractState(ctx, &wasmtypes.QuerySmartContractStateRequest{
Address: ap.PCfg.IbcHandlerAddress,
QueryData: param,
})
Address: ap.PCfg.IbcHandlerAddress,
QueryData: param,
})
}

func (ap *WasmProvider) QueryIBCHandlerContractProcessed(ctx context.Context, param wasmtypes.RawContractMessage) ([]byte, error) {
@@ -492,6 +492,8 @@ func (ap *WasmProvider) QueryConnection(ctx context.Context, height int64, conne
}

func (ap *WasmProvider) QueryWasmProof(ctx context.Context, storageKey []byte, height int64) ([]byte, error) {
done := ap.SetSDKContext()
done()
ibcAddr, err := sdk.AccAddressFromBech32(ap.PCfg.IbcHandlerAddress)
if err != nil {
return nil, err