fn reserialize_bank_fields_with_new_hash<W, R>(
    stream_reader: &mut BufReader<R>,
    stream_writer: &mut BufWriter<W>,
    accounts_hash: &AccountsHash,
    incremental_snapshot_persistence: Option<&BankIncrementalSnapshotPersistence>
) -> Result<(), Error>where
    W: Write,
    R: Read,
Expand description

deserialize the bank from ‘stream_reader’ modify the accounts_hash reserialize the bank to ‘stream_writer’