Skip to content

Commit

Permalink
Keep GenesisConfig binary compatible with v0.23 (#8617)
Browse files Browse the repository at this point in the history
automerge

(cherry picked from commit d3b458d)
  • Loading branch information
mvines authored and mergify-bot committed Mar 4, 2020
1 parent 74ae40b commit 2f1b869
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/src/genesis_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ pub struct GenesisConfig {
pub slots_per_segment: u64,
/// network speed configuration
pub poh_config: PohConfig,
/// this field exists only to ensure that the binary layout of GenesisConfig remains compatible
/// with the Solana v0.23 release line
pub __backwards_compat_with_v0_23: u64,
/// transaction fee config
pub fee_rate_governor: FeeRateGovernor,
/// rent config
Expand Down Expand Up @@ -89,6 +92,7 @@ impl Default for GenesisConfig {
slots_per_segment: DEFAULT_SLOTS_PER_SEGMENT,
poh_config: PohConfig::default(),
inflation: Inflation::default(),
__backwards_compat_with_v0_23: 0,
fee_rate_governor: FeeRateGovernor::default(),
rent: Rent::default(),
epoch_schedule: EpochSchedule::default(),
Expand Down

0 comments on commit 2f1b869

Please sign in to comment.