-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: claim/proof messages, relayer, & genesis #24
Merged
Merged
Changes from 127 commits
Commits
Show all changes
140 commits
Select commit
Hold shift + click to select a range
f39df3a
WIP: Separate client and server commands
red-0ne 707abb5
fix: re-generation artifacts
bryanchriswhite b119ce3
chore: update `Proof` and `Claim` types
bryanchriswhite de6d5ac
chore: update SMT dep with go.mod replace
bryanchriswhite be3fa80
feat: implement `ServicerClient#SubmitProof()` & `#SubmitClaim()`
bryanchriswhite 5dc911b
Merge remote-tracking branch 'pokt/main' into relayminer
bryanchriswhite 5844282
chore: refactor relayer & new blocks WS client
red-0ne 249f41c
refactor: relayer session type as interface
bryanchriswhite d7d946a
debug: newBlocks observable
bryanchriswhite 6fefe10
feat: Add new block event constructor
red-0ne d5265ab
feat: Source servicer params from viper flags
red-0ne 48c9a35
fix: Observable relying on nil channel
red-0ne 9705345
fix: New blocks not getting reacted to
red-0ne d4dad85
fix: handle websocket closed error in servicer client listener
bryanchriswhite 6967f7d
fix: update defalut websocket URL port to poktrolld (not celestia)
bryanchriswhite 3c7b53c
fix: restructure `tendermintBlockEvent` to match
bryanchriswhite 191d01e
chore: close servicer client websocket conn on teardown
bryanchriswhite c6cbabc
refactor: relayer command
bryanchriswhite e8666c6
WIP: proxy sign replies
red-0ne c027161
Merge remote-tracking branch 'pokt/relayer-with-ws' into relayminer
bryanchriswhite ecfa7fb
refactor: `Proxy#ServeHTTP()`
bryanchriswhite 9d1c664
chore: add `keyring-backend` flag to relayer cmd
bryanchriswhite 31185fd
chore: add node flag to relayer subcommand
bryanchriswhite 37dec27
chore: add "regenesis" make target
bryanchriswhite f263635
chore: add mnemonics to test accounts
bryanchriswhite 10c182f
chore: update localnet genesis
bryanchriswhite 946633f
wip: add debug & error logging
bryanchriswhite a89c474
refactor: update `MsgProof#ProofBz` to `#Proof` & use protobuf type
bryanchriswhite 8d53bd1
chore: add `Block` runtime interface assertion
bryanchriswhite 91e80e8
chore: remove duplicate AddCommand
red-0ne a9bc3f2
fixup: update proof types
bryanchriswhite 384f7a6
chore: remove unused interface type
bryanchriswhite d3cdef1
chore: add godoc comment
bryanchriswhite 6e3adfe
refactor: `Proxy#ServeHTTP()`
bryanchriswhite 0dcda55
chore: add/update TODOs
bryanchriswhite 5cb5f09
chore: cleanup
bryanchriswhite b2c7a97
chore: more TODOs
bryanchriswhite 757c8ab
chore: cleanup & add error log
bryanchriswhite 8cb5a36
fix: github commit fail
bryanchriswhite 2c05cfe
chore: untrack ts-client dir
bryanchriswhite c42fd33
Merge branch 'main' into relayminer
bryanchriswhite 16f7a23
chore: regenerate openapi.yml (on build)
bryanchriswhite 8c3fd44
wip: recover from panic to demo relaying
bryanchriswhite 6b5b2ee
chore: update config.yml to include necessary actors
bryanchriswhite 030131a
chore: `make regenesis` replaces entire poktrolld home dir contents
bryanchriswhite 13e78f6
chore: regenesis
bryanchriswhite 62479ce
chore: rename regenesis make target to localnet_regenesis
bryanchriswhite d7d444b
Revert "chore: regenesis"
bryanchriswhite b61002c
chore: update localnet keyring post regenesis
bryanchriswhite 3b39a50
chore: regenesis
bryanchriswhite 597f78f
fix: `make localnet_regenesis` should not modify configs
bryanchriswhite 7fe742f
fix: update app addresses in make targets
bryanchriswhite cd20cca
fixup: use the hasher the correct way
red-0ne daf0127
chore: stub genesis params in config.yml
red-0ne 67eb2e7
fixup: use smt (un)marshal for proof serialization
red-0ne 6cf12b0
Merge pull request #26 from pokt-network/proof-serialization
red-0ne 6d02ad7
fixup: argSum should be uint64
red-0ne feb5cef
refactor: websocket message handling & listen for committed claims
red-0ne 3d00926
chore: add `EventClaimed` type to servicer module
bryanchriswhite c38cfac
chore: update `ServicerClient` interface
bryanchriswhite 463e0a0
fix: initialize `committedClaims` map
bryanchriswhite 3624d25
chore: regenerate openapi.yml
bryanchriswhite a761ed8
chore: refactor rename `EventClaimed#root` to `EventClaimed#smd_root_…
bryanchriswhite 2e7f7ba
refactor: reorganize servicer client implementation across multiple f…
bryanchriswhite 928d0d1
refactor: rename relayer/client/block.go to blocks.go
bryanchriswhite 3bfb918
refactor: move unexported helpers below methods
bryanchriswhite d3ec69f
chore: add `committedClaimsMutex` to protect from concurrent reads/wr…
bryanchriswhite 893aaab
chore: factor out smt root hash string key
bryanchriswhite 23074c6
refactor: client block impl./usage
bryanchriswhite a4bd536
chore: remove unnecessary token balanes
bryanchriswhite e1f9203
WIP: implement websockets and claim/proof lifecycle
red-0ne a865cef
chore: add named return args to `ServicerClient` interface
bryanchriswhite f20087f
refactor: rename `servicerClient#broadcastMessageTx()` to `#signAndBr…
bryanchriswhite b8646b6
fix: websocket error handling
bryanchriswhite 90983a2
fix: empty ws msg error check
bryanchriswhite ce0d0b9
chore: add `ServicerClient#LatestBlock()`
bryanchriswhite 47b06cb
chore: listen for txs by hash instead of claim events
bryanchriswhite 6a1a1f1
chore: add logs
bryanchriswhite 00e0023
chore: cleanup
bryanchriswhite 3fd26fc
fix: move goroutine calls to appropriate method
bryanchriswhite 26c23b6
fix: call tx `#ValidateBasic()` method
bryanchriswhite 8ee27ab
chore: add godoc comments
bryanchriswhite 5c4fe0b
refactor: simplify servicer client txs err channel usage
bryanchriswhite a2862b7
Merge branch 'ws-relay-tree-mgmt' into fix/servicer-client-txs
bryanchriswhite 9761013
fix: interrupt signal not exiting
bryanchriswhite b5d5887
fix: rename post-merge
bryanchriswhite 22ab472
fix: post-merge
bryanchriswhite 99e4947
fix: app2 & app3 addresses in make targets
bryanchriswhite f1de953
chore: validate endpoint URLs on servicer staking
bryanchriswhite 5aca45d
refactor: working http proxy
red-0ne 17fb277
chore: add comment, log, lower-case tx hash consistently, & add `come…
bryanchriswhite 78603f4
fix: block until latestBlock is initially populated
red-0ne 5529083
feat: add GetSessionEndHeight method to Session
red-0ne 3aadba4
refactor: sessionmanager's session cleanup
red-0ne b7a059f
feat: store claim on-chain
bryanchriswhite 69502de
feat: generate claims query & persist claims in `MsgClaim` handler
bryanchriswhite a7321e6
chore: rename proof & claim msg `smstRootHash` fields
bryanchriswhite 69c2fbb
fix: some proto field names to conform to convention
bryanchriswhite be84c79
chore: add TODOs for `MsgClaim` handling validation
bryanchriswhite 4ac4001
refactro: rename `servicerClient` local var
bryanchriswhite 4ba4ce9
chore: break observable subscription loops on context cancellation
bryanchriswhite 31da353
chore: use http request context
bryanchriswhite fcbaae7
chore: remove redundant error logs
bryanchriswhite d47c8da
chore: tidy up after review
bryanchriswhite 872b133
Merge pull request #28 from pokt-network/fix/servicer-client-txs
bryanchriswhite 712bf46
fixup: rename missing MsgClaim ServicerAddress references
red-0ne a3fbd96
chore: add comment
bryanchriswhite 57f7c51
refactor: rename events.proto to event.proto & its `smt_root_hash` fi…
bryanchriswhite b99a47b
refactor: `EventClaim` usage
bryanchriswhite 4c032bb
refactor: rename `sessionWithTree#removeFromSessionMap` to `#onDelete`
bryanchriswhite e7586eb
refactor: rename `MsgProof#Sum` to `#SmstSum`
bryanchriswhite 855d2c4
chore: add `MsgClaim#ExpirationHeight` & comment
bryanchriswhite 13d8267
chore: cleanup imports & aliases
bryanchriswhite 8e67f78
refactor: move `WaitGroupContextKey` into client pkg
bryanchriswhite 5313afc
refactor: move ServicerClient interface to relayer pkg
bryanchriswhite c769173
refactor: rename `ServicerClient#Blocks()` to `#BlocksNotifee()`
bryanchriswhite fffe75b
chore: add comments
bryanchriswhite c00daf7
chore: remove unused blocks-per-session flag
bryanchriswhite 89db148
chore: add comments
bryanchriswhite a9c5fc3
feat: stub out on-chain proof verification & msg handling
bryanchriswhite 6516f68
refactor: simplify claim keys & claims query pagination filter
bryanchriswhite bb01047
chore: add incomplete comment
bryanchriswhite 731afe0
chore: add `SessionWithTree#GetSessionId()`
bryanchriswhite 6c31aa5
fix: include session ID in claim msg
bryanchriswhite 42e3a92
chore: add TODO comment
bryanchriswhite 8f02bc9
chore: protect session writes with mutexs
red-0ne 805c3de
Merge pull request #32 from pokt-network/relay-sockets
red-0ne f7afa36
Added TODO in relay.proto
Olshansk e0c7de7
fixup: remove useless mutex
red-0ne f069034
Added helpers from the PR description to the Makefile
Olshansk 52f022a
Minor nits and TODOs
Olshansk 4406c32
s/handleBlocksFactory/blocksFactorHandler
Olshansk b039f9f
s/handleTxsFactory/txsFactoryHandler
Olshansk a1f9877
Finished reviewing relayer/client subdirectory
Olshansk 89bd295
Reviewed relayer/miner/miner.go
Olshansk d944ee8
s/signResponse/signResponseFn
Olshansk 68e6883
Trying to get things working
Olshansk aad716d
Autoformat
Olshansk 43687b6
Remove fallthrough
Olshansk 1e7105f
update claims_query
Olshansk 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 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 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 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using
--home=$(POKTROLLD_HOME)
like we do in other places