Skip to content

Commit

Permalink
chore(statedb): flush writer in genesis verify command with reverse o…
Browse files Browse the repository at this point in the history
…ption (#2530)

Ensure the writer is flushed to disk in the genesis verify reverse process. This change resolves potential issues with data not being fully written when kill process after finish address_mapping checking
  • Loading branch information
popcnt1 authored Aug 28, 2024
1 parent 1841fe0 commit 94b9a99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ fn verify_reverse(
RoochToBitcoinAddressMapping::object_id(),
&mut writer,
)?;

writer.flush()?;
ExportCommand::export_object(
&moveos_store_arc,
root_state_root,
Expand Down

0 comments on commit 94b9a99

Please sign in to comment.