Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Aug 11, 2019
1 parent 5a4ae89 commit 6a5743d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ monero_wallet* wallet_restored = monero_wallet::create_wallet_from_mnemonic(
// synchronize the wallet and receive progress notifications
struct : monero_sync_listener {
void on_sync_progress(uint64_t height, uint64_t start_height, uint64_t end_height, double percent_done, const string& message) {
cout << "onSyncProgress(" << height << ", " << start_height << ", " << end_height << ", " << percent_done << ", " << message << ")" << endl;
// feed a progress bar?
}
} my_sync_listener;
wallet_restored->sync(my_sync_listener);
Expand Down
2 changes: 1 addition & 1 deletion test/sample_code.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main(int argc, const char* argv[]) {
// synchronize the wallet and receive progress notifications
struct : monero_sync_listener {
void on_sync_progress(uint64_t height, uint64_t start_height, uint64_t end_height, double percent_done, const string& message) {
cout << "onSyncProgress(" << height << ", " << start_height << ", " << end_height << ", " << percent_done << ", " << message << ")" << endl;
// feed a progress bar?
}
} my_sync_listener;
wallet_restored->sync(my_sync_listener);
Expand Down

0 comments on commit 6a5743d

Please sign in to comment.