celestiaorg / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Other
19 stars 33 forks source link

feat: allow for the default consensus params to be set by the application #317

Closed evan-forbes closed 1 year ago

evan-forbes commented 1 year ago

Description

This PR adds the consensus params to the server context, so that the init cli command can add it to the genesis document. This allows for the consensus parameters to be set by the application.

codecov-commenter commented 1 year ago

Codecov Report

Merging #317 (b9a3c80) into release/v0.46.x-celestia (06c2fc2) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@                    Coverage Diff                    @@
##           release/v0.46.x-celestia     #317   +/-   ##
=========================================================
  Coverage                     65.54%   65.55%           
=========================================================
  Files                           666      666           
  Lines                         70983    70986    +3     
=========================================================
+ Hits                          46529    46532    +3     
  Misses                        21876    21876           
  Partials                       2578     2578           
Impacted Files Coverage Δ
x/genutil/client/cli/init.go 68.14% <100.00%> (+0.86%) :arrow_up: