mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-05-21 09:09:28 +00:00
fix: fmt
This commit is contained in:
parent
c0318de646
commit
dbb276e470
@ -136,12 +136,7 @@ impl NodeCore {
|
|||||||
pub fn store_present_accounts_at_path(&self, path: PathBuf) -> Result<PathBuf> {
|
pub fn store_present_accounts_at_path(&self, path: PathBuf) -> Result<PathBuf> {
|
||||||
let dump_path = path.join("curr_accounts.json");
|
let dump_path = path.join("curr_accounts.json");
|
||||||
|
|
||||||
let curr_accs: Vec<Account> = self
|
let curr_accs: Vec<Account> = self.storage.acc_map.values().cloned().collect();
|
||||||
.storage
|
|
||||||
.acc_map
|
|
||||||
.values()
|
|
||||||
.cloned()
|
|
||||||
.collect();
|
|
||||||
let accs_serialized = serde_json::to_vec_pretty(&curr_accs)?;
|
let accs_serialized = serde_json::to_vec_pretty(&curr_accs)?;
|
||||||
|
|
||||||
let mut acc_file = File::create(&dump_path).unwrap();
|
let mut acc_file = File::create(&dump_path).unwrap();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user