-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Testing, Tooling] chore: in-memory network interface & config types #289
Conversation
5414460
to
e3c3f8c
Compare
Co-authored-by: harry <[email protected]> Co-authored-by: Daniel Olshansky <[email protected]>
Co-authored-by: Daniel Olshansky <[email protected]> Co-authored-by: harry <[email protected]>
…im-proof * pokt/main: Fix bug introduced by #252 where genesis file was no longer being copied to the right location [Docs] Introduce Docusaurus documentation (#252) [Cleanup] Centralzie websocket url -> endpoint changes (#272) refactor: `NewMinedRelay` to shared testutil (#262) fix: PR template typo 2 (#269) [Testing] Unit tests, E2E tests, logging and other Fixes / "Touchups" (#253) [SDK] feat: Have distinct JSON-RPC and gRPC urls (#261)
…or/supplier-keys * issues/141/refactor/claim-proof: chore: review feedback improvements chore: review feedback improvements Fix bug introduced by #252 where genesis file was no longer being copied to the right location [Docs] Introduce Docusaurus documentation (#252) [Cleanup] Centralzie websocket url -> endpoint changes (#272) refactor: `NewMinedRelay` to shared testutil (#262) fix: PR template typo 2 (#269) [Testing] Unit tests, E2E tests, logging and other Fixes / "Touchups" (#253) [SDK] feat: Have distinct JSON-RPC and gRPC urls (#261)
Co-authored-by: Daniel Olshansky <[email protected]>
…ctor/supplier-errors * issues/141/refactor/supplier-keys: chore: review feedback improvements chore: review feedback improvements Fix bug introduced by #252 where genesis file was no longer being copied to the right location [Docs] Introduce Docusaurus documentation (#252) [Cleanup] Centralzie websocket url -> endpoint changes (#272) refactor: `NewMinedRelay` to shared testutil (#262) fix: PR template typo 2 (#269) [Testing] Unit tests, E2E tests, logging and other Fixes / "Touchups" (#253) [SDK] feat: Have distinct JSON-RPC and gRPC urls (#261)
This reverts commit af531b0.
e3c3f8c
to
8b57b22
Compare
sh.session.SessionNumber = int64(sh.blockHeight / NumBlocksPerSession) | ||
sh.session.SessionNumber = sh.blockHeight / NumBlocksPerSession | ||
|
||
// TODO_BLOCKER: SessionStartBlockHeight should be aligned to NumBlocksPerSession. |
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.
Nice TODO
encoding = app.MakeEncodingConfig() | ||
chainID = "chain-" + rand.NewRand().Str(6) | ||
) | ||
return network.Config{ |
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.
I think the answer to #303 is in this struct somewhere.
@bryanchriswhite forgot to leave a a comment pre-emptive approving while u fix them as they are minor |
func (cfg *InMemoryNetworkConfig) GetNumKeyringAccounts(t *testing.T) int { | ||
t.Helper() | ||
|
||
return cfg.NumGateways + cfg.NumSuppliers + cfg.GetNumApplications(t) |
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.
- Re assumption w.r.t
#GetNumKeyringAccounts
. 👍 and doesn't even need a comment - Regarding
#GetNumApplications()
, I think we should add a comment above the return w/ something like "NumApplications is intentionally a computed field" and potentially link to this comment.
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.
Left one outstanding comment but otherwise lgtm!
Co-authored-by: Daniel Olshansky <[email protected]>
…ctor/supplier-errors
…ctor/supplier-errors
Co-authored-by: h5law <[email protected]> Co-authored-by: Daniel Olshansky <[email protected]>
…ep/in-memory-network
…ctor/supplier-errors
…ep/in-memory-network
…im-proof * pokt/main: [Supplier] refactor: claim & proof protobufs + (#263)
…plier-keys * pokt/main: [Supplier] refactor: supplier module keys (#264)
…plier-errors * pokt/main: [Supplier] refactor: supplier module errors (#265)
…ry-network * pokt/main: [Testing, Tooling] chore: in-memory network interface & config types (#289)
…/in-memory-network * issues/141/prep/in-memory-network: [Testing, Tooling] chore: in-memory network interface & config types (#289) trigger CI [Supplier] refactor: supplier module errors (#265) [Supplier] refactor: supplier module keys (#264) [Supplier] refactor: claim & proof protobufs + (#263) chore: review feedback improvements [Configs] feat: Add staking config parser of gateway staking (#302) chore: review feedback improvements fix: usage raw string literal chore: review feedback improvements [RingCache] Invalidate Cache On Redelegation Events (#239)
…ctor/in-memory-network * issues/141/feat/in-memory-network: chore: review feedback improvements feat: update SMT to v0.9.2 (#311) fix: linter errors fixup! chore: review feedback improvements chore: review feedback improvements chore: review feedback improvements [Testing, Tooling] chore: in-memory network interface & config types (#289) trigger CI [Supplier] refactor: supplier module errors (#265) [Supplier] refactor: supplier module keys (#264) [Supplier] refactor: claim & proof protobufs + (#263) chore: review feedback improvements [Configs] feat: Add staking config parser of gateway staking (#302) chore: review feedback improvements fix: usage raw string literal chore: review feedback improvements [RingCache] Invalidate Cache On Redelegation Events (#239)
Summary
Human Summary
InMemoryCosmosNetwork
interface type.InMemoryNetworkConfig
concrete type.Issue
SubmitProof
message handling #141Type of change
Select one or more:
Testing
make go_develop_and_test
make test_e2e
devnet-test-e2e
label to the PR. This is VERY expensive, only do it after all the reviews are complete.Sanity Checklist