-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Code Health] refactor: block query client interface #616
[Code Health] refactor: block query client interface #616
Conversation
Co-authored-by: Daniel Olshansky <[email protected]>
Co-authored-by: Daniel Olshansky <[email protected]>
…param/proof_request_probability
…param/proof_request_probability
…request_probability * pokt/main: [Proof Module] feat: on-chain proof window validation (#588)
…/579/param/proof_requirement_threshold
…requirement_threshold * pokt/main: [Proof Module] Add `proof_request_probability` param (#593)
Co-authored-by: Daniel Olshansky <[email protected]>
b4f0108
to
2ed7f2c
Compare
2ed7f2c
to
70b13c2
Compare
@@ -297,3 +298,10 @@ type SharedQueryClient interface { | |||
// the session that includes queryHeight opens. | |||
GetProofWindowOpenHeight(ctx context.Context, queryHeight int64) (int64, error) | |||
} | |||
|
|||
// BlockQueryClient defines an interface that enables the querying of |
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.
LGTM. No issues. Just calling out something below but not looking for a response.
Looks like we're already diverging from [1] w.r.t Naming (e.g. BlockClient
vs BlockQueryClient
)
I know:
- It has different uses
- It has different contexts
- Functionality differs
Just calling it out.
[1] https://github.com/pokt-network/shannon-sdk/blob/d6cb20a34a2e50ea26f196f7c671e60a66bbc015/block.go
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.
Just note that shannon-sdk
's block client and poktroll
's block client will diverge in functionality.
While the former will mainly be used to query block heights, the later wants the full block to get block events and txs.
So they are definitely not interchangeable.
The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks. You may need to run GCP workloads (requires changing the namespace to 616) |
The image is going to be pushed after the next commit. You can use If you also want to run E2E tests, please add |
…02/refactor/relayminer * pokt/issues/402/feat/rng: [Code Health] refactor: tx hash encoding (#617) [Docs] Relay session & claim/proof diagrams (#478) Empty commit [Code Health] refactor: block query client interface (#616) [TODO] chore: cleanup done TODOs (#627) [TODOs] chore: cleanup validate session ID TODOs (#608) [LocalNet] Switch to CosmosSDK defaults (#609) [Relay Mining] Emit events and refactor test helpers (#610) [Docs] Minor improvements to `adding_params.md` (#623) [Telemetry] chore: add probabilistic proof telemetry (#605)
…aim-proof-distribution * issues/402/refactor/relayminer: (21 commits) fix: unflake and speed up tests chore: speed up & improve tests chore: update comments chore: simplify [E2E] Add logging output from the init-container step (#635) fix: failing test Empty commit [Code Health] refactor: random number generation (#618) chore: review improvements chore: review improvments [Code Health] refactor: tx hash encoding (#617) [Docs] Relay session & claim/proof diagrams (#478) Empty commit [Code Health] refactor: block query client interface (#616) chore: review feedback improvements [TODO] chore: cleanup done TODOs (#627) [TODOs] chore: cleanup validate session ID TODOs (#608) [LocalNet] Switch to CosmosSDK defaults (#609) [Relay Mining] Emit events and refactor test helpers (#610) [Docs] Minor improvements to `adding_params.md` (#623) ...
Summary
Define a new interface which is a subset of
cometclient.CometRPC
and only contains members that poktroll depends on.Issue
We were depending on a cometbft interface which was much larger than we need. This came while working on #402 in an integration test. Defining our own interface for this purpose is more "SOLID".
Type of change
Select one or more:
Testing
Documentation changes (only if making doc changes)
make docusaurus_start
; only needed if you make doc changesLocal Testing (only if making code changes)
make go_develop_and_test
make test_e2e
PR Testing (only if making code changes)
devnet-test-e2e
label to the PR.make trigger_ci
if you want to re-trigger tests without any code changesSanity Checklist