Load freezed utxos at startup
This commit is contained in:
parent
d99cab0a26
commit
8d7a6c7400
11
src/main.rs
11
src/main.rs
@ -433,6 +433,17 @@ async fn main() -> Result<()> {
|
||||
}
|
||||
};
|
||||
|
||||
{
|
||||
let utxo_to_freeze: HashSet<OutPoint> = cached_processes.iter()
|
||||
.map(|(_, process)| {
|
||||
process.get_last_unspent_outpoint().unwrap()
|
||||
})
|
||||
.collect();
|
||||
|
||||
let mut freezed_utxos = lock_freezed_utxos()?;
|
||||
*freezed_utxos = utxo_to_freeze;
|
||||
}
|
||||
|
||||
let our_sp_address = sp_wallet.get_client().get_receiving_address();
|
||||
|
||||
log::info!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user