Skip to content

Commit

Permalink
Add updater thread + Updater related functions (mimblewimble#253)
Browse files Browse the repository at this point in the history
* first attempt at adding updater thread

* rustfmt

* rustfmt

* many lifetimes made static to allow api to spawn separate thread

* add first pass at updater thread functionality

* rustfmt

* add mpsc for returning status from update functions

* rustfmt

* add stop state, ensure update is triggered by wallet functions when wallet updater is running

* rustfmt

* add update status function to owner API, V3 owner api functions

* rustfmt

* change update warning

* adding tests for new updater control functions

* documentation updates

* rustfmt
  • Loading branch information
yeastplume authored Nov 18, 2019
1 parent 4ffe5c7 commit 3568cee
Show file tree
Hide file tree
Showing 17 changed files with 944 additions and 170 deletions.
11 changes: 8 additions & 3 deletions api/src/foreign_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,9 +691,14 @@ pub fn run_doctest_foreign(
false,
);
//update local outputs after each block, so transaction IDs stay consistent
let (wallet_refreshed, _) =
api_impl::owner::retrieve_summary_info(wallet1.clone(), (&mask1).as_ref(), true, 1)
.unwrap();
let (wallet_refreshed, _) = api_impl::owner::retrieve_summary_info(
wallet1.clone(),
(&mask1).as_ref(),
&None,
true,
1,
)
.unwrap();
assert!(wallet_refreshed);
}

Expand Down
Loading

0 comments on commit 3568cee

Please sign in to comment.