Skip to content

Commit

Permalink
[Session] add num_blocks_per_session param (#530)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Olshansky <[email protected]>
  • Loading branch information
bryanchriswhite and Olshansk committed May 22, 2024
1 parent aecf0b3 commit da70c0e
Show file tree
Hide file tree
Showing 32 changed files with 395 additions and 93 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ claim_list_session: ## List all the claims ending at a specific session (specifi
# TODO_CONSIDERATION: additional factoring (e.g. POKTROLLD_FLAGS).
PARAM_FLAGS = --home=$(POKTROLLD_HOME) --keyring-backend test --from $(PNF_ADDRESS) --node $(POCKET_NODE)

### Tokenomics Module Params ###
.PHONY: update_tokenomics_params_all
params_update_tokenomics_all: ## Update the tokenomics module params
poktrolld tx authz exec ./tools/scripts/params/tokenomics_all.json $(PARAM_FLAGS)
Expand All @@ -815,6 +816,7 @@ params_update_tokenomics_all: ## Update the tokenomics module params
params_update_tokenomics_compute_units_to_tokens_multiplier: ## Update the tokenomics module params
poktrolld tx authz exec ./tools/scripts/params/tokenomics_compute_units_to_tokens_multiplier.json $(PARAM_FLAGS)

### Proof Module Params ###
.PHONY: params_update_proof_all
params_update_proof_all: ## Update the proof module params
poktrolld tx authz exec ./tools/scripts/params/proof_all.json $(PARAM_FLAGS)
Expand All @@ -823,6 +825,11 @@ params_update_proof_all: ## Update the proof module params
params_update_proof_min_relay_difficulty_bits: ## Update the proof module params
poktrolld tx authz exec ./tools/scripts/params/proof_min_relay_difficulty_bits.json $(PARAM_FLAGS)

### 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)

.PHONY: params_query_all
params_query_all: check_jq ## Query the params from all available modules
@for module in $(MODULES); do \
Expand Down
94 changes: 78 additions & 16 deletions api/poktroll/session/params.pulsar.go

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

53 changes: 27 additions & 26 deletions api/poktroll/session/tx.pulsar.go

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

7 changes: 7 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ accounts:
mnemonic: "elder spatial erosion soap athlete tide subject recipe also awkward head pattern cart version beach usual oxygen confirm erupt diamond maze smooth census garment"
coins:
- 300000000upokt
- name: unauthorized
mnemonic: "abuse tumble whip pioneer immense pipe method note upon glory switch rail metal camp gasp top require rain party total struggle glance between fossil"
coins:
- 100000upokt
faucet:
name: faucet
coins:
Expand Down Expand Up @@ -179,3 +183,6 @@ genesis:
service:
params:
add_service_fee: "1000000000"
session:
params:
num_blocks_per_session: 4
5 changes: 0 additions & 5 deletions e2e/tests/params_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

package e2e

const (
computeUnitsToTokensMultipler = "compute_units_to_tokens_multiplier"
minRelayDifficultyBits = "min_relay_difficulty_bits"
)

type (
// moduleNameKey is the key for a module name in the module params map.
moduleNameKey = string
Expand Down
Loading

0 comments on commit da70c0e

Please sign in to comment.