From 73787e162c1e9a6b67b2ada14c6e21f6ff60a4ac Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 4 Mar 2020 02:02:28 -0800 Subject: [PATCH] Keep GenesisConfig binary compatible with v0.23 (#8617) (#8620) automerge --- sdk/src/genesis_config.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/src/genesis_config.rs b/sdk/src/genesis_config.rs index b90e3e60d37ad6..09e3737679accd 100644 --- a/sdk/src/genesis_config.rs +++ b/sdk/src/genesis_config.rs @@ -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 @@ -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(),