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

[Relayminer] Query for on-chain session param num_blocks_per_session #538

Merged
merged 77 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from 72 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
a3d3d17
feat: add `num_blocks_per_session` session module param
bryanchriswhite May 14, 2024
99455d5
feat: add make target to update all session params
bryanchriswhite May 15, 2024
05e631a
chore: use default param values in param update msgs
bryanchriswhite May 15, 2024
bf3bff3
Empty commit
bryanchriswhite May 15, 2024
3aa53ec
fixup! feat: add `num_blocks_per_session` session module param
bryanchriswhite May 15, 2024
d7a04dc
test: add coverage for sessiontypes.Params#ValidateNumBlocksPerSession()
bryanchriswhite May 16, 2024
56ae9a8
fix: #ValidateNumBlocksPerSession()
bryanchriswhite May 16, 2024
b291bc1
chore: review feedback improvements
bryanchriswhite May 16, 2024
e9afc4c
Merge branch 'main' into issues/517/param-num_blocks_per_session
bryanchriswhite May 16, 2024
40e1e7f
refactor: rename param name vars
bryanchriswhite May 16, 2024
2c33381
fix: unit tests
bryanchriswhite May 16, 2024
9597876
Merge branch 'main' into issues/517/param-num_blocks_per_session
bryanchriswhite May 17, 2024
1eae173
Merge branch 'main' into issues/517/param-num_blocks_per_session
bryanchriswhite May 21, 2024
86e114d
Empty commit
bryanchriswhite May 21, 2024
eaf5f15
Empty commit
bryanchriswhite May 22, 2024
a757d5a
Empty commit
bryanchriswhite May 22, 2024
6c6ec62
chore: add "unauthorized" account to config.yml instead of creating i…
bryanchriswhite May 22, 2024
638f0c9
chore: add client.SessionQueryClient#GetParams interface method
bryanchriswhite May 16, 2024
a6667eb
chore: add ErrQuerySessionParams
bryanchriswhite May 16, 2024
42a63f1
feat: implement sessionQuerier#GetParams()
bryanchriswhite May 16, 2024
16dafd3
chore: add SessionQueryClient#GetSessionGracePeriodCount interface me…
bryanchriswhite May 17, 2024
48526a0
feat: implement sessionQuerier#GetSessionGracePeriodBlockCount()
bryanchriswhite May 17, 2024
3d59a5d
chore: add sessionQueryClient field to relayerSessionsManager
bryanchriswhite May 17, 2024
c24ba01
refactor: IsWithinGracePeriod from a static function to a method on r…
bryanchriswhite May 17, 2024
b23d9d8
chore: add IsWithinGracePeriod method to relayerProxy
bryanchriswhite May 17, 2024
43682ed
docs: update relayerProxy#sessoinQuerier godoc comment
bryanchriswhite May 17, 2024
7b64b2b
refactor: move duplicated #IsWithinGracePeriod methods to sessionQuerier
bryanchriswhite May 17, 2024
5c42c06
chore: add SessionQueryClient#IsPastGracePeriod() interface method
bryanchriswhite May 17, 2024
264edb2
refactor: IsPastGracePeriod from a static function to a sessionQuerie…
bryanchriswhite May 17, 2024
d75e5ae
refactor: factor static functions back out to session pkg w/ appropri…
bryanchriswhite May 21, 2024
79a141d
test: add #IsWithinGracePeriod & #IsPastGracePeriod to the mock sessi…
bryanchriswhite May 21, 2024
6ca2f88
test: fix failing test by supplying session query client dependency
bryanchriswhite May 21, 2024
05d8c73
wip: comment & simplify
bryanchriswhite May 21, 2024
eb983c1
refactor: factor out GetSessionGracePeriodEndHeight
bryanchriswhite May 22, 2024
f4d4d2e
chore: refactor & simplify claim/proof submission
bryanchriswhite May 22, 2024
3ceeb18
Empty commit
bryanchriswhite May 22, 2024
297b3f0
chore: self-review improvements
bryanchriswhite May 22, 2024
bf3ddc2
fix: typo
bryanchriswhite May 22, 2024
1e0a996
scaffold: module shared
bryanchriswhite May 23, 2024
4acef34
fix: linting
bryanchriswhite May 23, 2024
e084a3b
refactor: move `num_blocks_per_session` param to shared module
bryanchriswhite May 23, 2024
eb64733
Empty commit
bryanchriswhite May 23, 2024
bf31df8
fixup! refactor: move `num_blocks_per_session` param to shared module
bryanchriswhite May 23, 2024
8260bab
Merge remote-tracking branch 'pokt/main' into issues/517/refactor/ses…
bryanchriswhite May 23, 2024
ae7e013
Merge branch 'issues/517/refactor/move-num_blocks_per_session' into i…
bryanchriswhite May 23, 2024
c972ac9
fixup! refactor: move `num_blocks_per_session` param to shared module
bryanchriswhite May 23, 2024
ef8dcf9
Merge branch 'issues/517/refactor/move-num_blocks_per_session' into i…
bryanchriswhite May 23, 2024
e17e3c4
wip: triage & simplify
bryanchriswhite May 23, 2024
d8af996
refactor: session query client & shared query client
bryanchriswhite May 23, 2024
82a3567
refactor: simplify
bryanchriswhite May 23, 2024
3e24eda
chore: add missing comment in types.go
bryanchriswhite May 23, 2024
433236a
chore: self-review improvements
bryanchriswhite May 23, 2024
e00fe4b
fixup! chore: self-review improvements
bryanchriswhite May 23, 2024
a68ae8d
fixup! fixup! chore: self-review improvements
bryanchriswhite May 23, 2024
66e2be7
fixup! refactor: move `num_blocks_per_session` param to shared module
bryanchriswhite May 23, 2024
4d66581
fix: broken E2E test
bryanchriswhite May 23, 2024
93e01aa
fixup! refactor: move `num_blocks_per_session` param to shared module
bryanchriswhite May 23, 2024
b6ce1d4
fix: broken E2E test
bryanchriswhite May 23, 2024
9c80e77
Merge branch 'refs/heads/issues/517/refactor/move-num_blocks_per_sess…
bryanchriswhite May 23, 2024
bf24e6c
fix: typo
bryanchriswhite May 23, 2024
14e58a8
Merge branch 'main' into issues/517/scaffold/shared-module
bryanchriswhite May 24, 2024
44379b2
Merge branch 'issues/517/scaffold/shared-module' into issues/517/refa…
bryanchriswhite May 24, 2024
1ac355d
Merge branch 'refs/heads/issues/517/refactor/move-num_blocks_per_sess…
bryanchriswhite May 24, 2024
aff8853
Merge remote-tracking branch 'refs/remotes/pokt/main' into issues/517…
bryanchriswhite May 24, 2024
03a4079
Empty commit
bryanchriswhite May 27, 2024
89114f3
fix: add omitted pb.go file
bryanchriswhite May 27, 2024
5db7c9b
fix: linting
bryanchriswhite May 27, 2024
0613764
fix: go imports script: exclude *.pulsar.go files & fix buffer size
bryanchriswhite May 27, 2024
c269dc1
Merge branch 'issues/517/refactor/move-num_blocks_per_session' into i…
bryanchriswhite May 27, 2024
77f704e
Empty commit
bryanchriswhite May 27, 2024
1ccb926
Merge branch 'issues/517/refactor/move-num_blocks_per_session' into i…
bryanchriswhite May 27, 2024
c18ec7b
chore: review improvements
bryanchriswhite May 24, 2024
203de35
fix: update_params.feature reset
bryanchriswhite May 28, 2024
7d281a6
Merge branch 'issues/517/refactor/move-num_blocks_per_session' into i…
bryanchriswhite May 28, 2024
6352a5f
chore: review improvements
bryanchriswhite May 28, 2024
0d55060
Merge remote-tracking branch 'pokt/main' into issues/517/refactor/ses…
bryanchriswhite May 28, 2024
a0a23b7
Merge branch 'main' into issues/517/refactor/session-params_relayminer
bryanchriswhite May 29, 2024
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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,8 @@ params_update_proof_min_relay_difficulty_bits: ## Update the proof module params

### Session Module Params ###
.PHONY: params_update_session_all
params_update_session_all: ## Update the session module params
poktrolld tx authz exec ./tools/scripts/params/session_all.json $(PARAM_FLAGS)
params_update_shared_all: ## Update the session module params
poktrolld tx authz exec ./tools/scripts/params/shared_all.json $(PARAM_FLAGS)

.PHONY: params_query_all
params_query_all: check_jq ## Query the params from all available modules
Expand Down
94 changes: 16 additions & 78 deletions api/poktroll/session/params.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading