-
Notifications
You must be signed in to change notification settings - Fork 33
[IBC] Make the IBC Host a submodule with access to the bus #868
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
145 commits
Select commit
Hold shift + click to select a range
ab9ff72
Add ics23 integration
h5law b47402d
Add SMT proof conversion to ics23 Existence and Exclusion proofs with…
h5law 20fa2fc
Add ICS23 docs
h5law 52e62e4
Fix errors
h5law 0656658
Update next error comment
h5law d631bb3
Address comments in docs
h5law 1beb4bd
Add names back to tests
h5law 9a7a578
Address comments
h5law 327ed96
Address comments
h5law bc5a878
add isLeft helper and use smt.GetPathBit()
h5law 2f67dcd
go.mod
h5law 17e2419
Fix SMT repo
h5law cf92d93
Add IBC proto types to protogen
h5law a194cef
Add provable stores and HandleMessage
h5law c7206fc
Export treestore trees
h5law 8c9f38a
Add IBC message handling
h5law 9b3d286
Add ibc message types
h5law 797ac03
Add provable stores and HandleMessage
h5law b1f9a88
Add more IBC errors
h5law 1dca7d8
Add GetProvableStore
h5law ff2d440
Implement provableStore
h5law 83fb7a1
Add private key to ibc config
h5law aa56b42
Allow conversion of IbcMessage to Transaction
h5law 454db6e
HandleEvent adds ibc message to TxMempool
h5law 0d867f3
Add signer to messages
h5law a3178e4
Implement utility Message interface for IbcMessage types
h5law 3570e52
Update IBC config to have a private key
h5law 22970b1
Add IBC nil field errors
h5law f72f513
Add IbcMessage Tx handling logic
h5law c7176e8
Add techdebt comment
h5law 5c2bbc5
Remove duplicate method
h5law c05ab8e
Add IBC store change related postgres DB sql code
h5law 3732091
Add update IBC state tree logic from postgres DB changes
h5law 5ffa511
Remove prefix field from ibc messages
h5law eee1a18
Add IBC postgres db update error
h5law cdec8ca
Add SetIBCStoreEntry method to PostgresContext
h5law ac619b4
Address linter errors
h5law ff447f7
Add HandleMessage unit tests
h5law 6e4a510
Simplify tests as covered in utility
h5law 895dfd0
Update validation testcases
h5law ac2a974
Fix importing twice
h5law dbf7f2b
Add nolint comments
h5law 0c05028
Check msg equality in test mempool test
h5law 2cf0ff2
Add new issue comments
h5law 7cbbe6e
Add mockgen flag for ProvableStore
h5law a1edf4b
Address comments
h5law 416682b
Add diagrams
h5law 953a146
Update state hashes
h5law c39ea1d
fixup: runtime key addition
h5law 89550be
fixup: remove prefixes from IbcMessages
h5law 4766802
Clear IBC table state between tests
h5law ed94086
Improve unit test cases
h5law 32964cb
Add no valuehashing to state trees
h5law 1d84d08
Add ibc.feature text file to track upcoming tests to be added
h5law f7e7c0c
Update docs
h5law be48d99
Fix proto naming
h5law e54be28
Add signer comments
h5law 9ccc197
Prefix errors with IBC
h5law fbadb8d
Update docs
h5law 65f647f
Address comments
h5law 6414094
Update IBC errors
h5law 681a328
Remove no value hashing from state trees
h5law 128cee5
Reword IBC stores
h5law ccea884
Update interfaces
h5law d27211d
Add storesDir to IBC config and pass to host and storemanger
h5law d476191
golint error
h5law 9cb2bdd
Reorganise
h5law 6b74a5f
Update docs on data retrieval
h5law 9ba683a
Update docs on provable stores and caching
h5law 5bb0adf
Prefix errors
h5law 157f3c9
Merge branch 'main' into ibc/initial_stores
h5law e94f4a9
linter error
h5law e6b53fe
Address comments
h5law a6aaa50
del: squash and merge submodule PR & add TreeStore to bus
h5law 782a09b
squash and merge submodule PR
h5law ca110fa
squash and merge submodule PR
h5law f948f34
Make host a submodule
h5law fbe18f3
Add event broadcasting logic
h5law db6d287
Pass bus to storemanager
h5law c4b37c4
Add consensus module to prepare environment
h5law bf166a0
Add comment around signatures
h5law 3db3d60
Add godoc comments
h5law fa3e337
Remove SQL injectors as emit handles these
h5law 9c7f8b0
Add bus to store manager and getallstores function
h5law 1fddfdd
Add emit update store message event test
h5law 12c6ff6
Update emitter functions to handle the msg locally first
h5law 129d987
golint errors
h5law 65e83cf
Add IBC messages as presigned transactions to utility mempool directly
h5law f28b193
Fix mocks, remove HandleMessage calls and IBC message type
h5law 5ae0b1d
Consolidate tests
h5law bda216d
Give host submodule a config
h5law ad09c34
Remove redundant functions from host module
h5law 90109d8
Rename module.go to submodule.go
h5law 365a62f
Make storeManager => BulkStoreCacher submodule
h5law cfc844b
Add mutex and techdebt comment
h5law d77d2c9
linter errors
h5law 688e8a2
Rename IBCHostModule to IBCHostSubmodule
h5law fa8a26d
Rename letter => poktEnvelope
h5law 1d02438
rename ibc_host_module.go => ibc_host_submodule.go
h5law eb71ffa
Add BulkStoreCacher config and background flushing task
h5law 4de98ca
emmitter.go => emitter.go
h5law 4e02f45
Add comment to host in ibcModule struct
h5law 89bea23
Add spacing to give better readability
h5law d9093c6
Mock TreeStore
h5law ba859d8
rename module files
h5law 668799c
Add provable store unit tests
h5law 6191406
fix linter errors
h5law a970009
Remove debug log line
h5law 68e28a3
Flush cache on new height event
h5law 70e7f14
Update mocks
h5law 77b41ca
Prefix cache entries with store name
h5law 94815d6
Capitalise log lines
h5law 3824933
Stop consensus module in cleanup
h5law d5bd28c
Remove 1 validator from test env
h5law 08c74cc
Implement Is() for error comparison
h5law d907843
Move nil value check to persistence layer
h5law 5017d02
Make value not null
h5law 3e18676
Add persistence IBC method tests
h5law 2588a8d
Handle consensus new height events in the IBC module
h5law 3a2dae9
Add height to cache restoration
h5law 53bc07e
Add research comment
h5law 9739f84
Update docs
h5law 99111eb
Fix linter error
h5law d00ac54
Address comments
h5law 733f53b
merge: squash and merge main
h5law 3668f1b
merge: squash and merge ibc/initial_stores
h5law 4f112b8
Merge branch 'ibc/initial_stores' into ibc/host_submodule
h5law cac0ea6
Fix spelling error
h5law 3edbf67
use multierr
h5law 99db8db
Add tests for pruning and flushing on new heights
h5law 0e0b3a4
add nolint comment
h5law 7994828
Merge branch 'main' into ibc/initial_stores
h5law 99c3815
rename MaxHeightStored => MaxHeightCached
h5law 1f45a82
Address comments on test
h5law 35cb54a
Add mermaid diagram
h5law 57c6b92
address comments
h5law 03b83c5
address comments
h5law 9c73e71
Merge branch 'ibc/initial_stores' into ibc/host_submodule
h5law 7278aba
add comments, use filepath.Join
h5law 4a26267
Merge branch 'main' into ibc/host_submodule
h5law a0dee48
remove artifacts from merge
h5law 229242f
remove old files from merge
h5law 8e75455
fix cache dir name
h5law e8f0600
make persistence test deterministic again
h5law 56dd0e3
remove unused mutex
h5law File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.