From 14193ed19322c9d8ffcfad084bffb1bf05d45014 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 23 Aug 2022 16:32:05 +0000 Subject: [PATCH] serialize incremental_snapshot_hash (backport #26839) (#27212) serialize incremental_snapshot_hash (#26839) * serialize incremental_snapshot_hash * pr feedback (cherry picked from commit 225cddcffbf453cc05f5c6ca2da74509a3fcde07) Co-authored-by: Jeff Washington (jwash) --- runtime/src/serde_snapshot/newer.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/src/serde_snapshot/newer.rs b/runtime/src/serde_snapshot/newer.rs index 8537079ac956e6..1a7ad4c8f163f2 100644 --- a/runtime/src/serde_snapshot/newer.rs +++ b/runtime/src/serde_snapshot/newer.rs @@ -307,6 +307,10 @@ impl<'a> TypeContext<'a> for Context { bank_fields.fee_rate_governor = bank_fields .fee_rate_governor .clone_with_lamports_per_signature(lamports_per_signature); + + let incremental_snapshot_persistence = ignore_eof_error(deserialize_from(stream))?; + bank_fields.incremental_snapshot_persistence = incremental_snapshot_persistence; + Ok((bank_fields, accounts_db_fields)) }