diff --git a/test/sample_code.cpp b/test/sample_code.cpp index 11cf83f..1cbd652 100644 --- a/test/sample_code.cpp +++ b/test/sample_code.cpp @@ -73,7 +73,7 @@ int main(int argc, const char* argv[]) { bool is_synced = wallet_random->is_synced(); // be notified when the wallet receives funds - class : monero_wallet_listener { + struct : monero_wallet_listener { void on_output_received(const monero_output_wallet& output) { cout << "Wallet received funds!" << endl; int account_index = output.m_account_index.get(); @@ -81,7 +81,7 @@ int main(int argc, const char* argv[]) { shared_ptr key_image = output.m_key_image.get(); } } my_listener; - //wallet_random->set_listener(&my_listener); + wallet_random->set_listener(my_listener); // TODO: define wallet send convenience methods // // send funds from the restored wallet to the random wallet diff --git a/todo.txt b/todo.txt index a315770..8c4be6d 100644 --- a/todo.txt +++ b/todo.txt @@ -2,6 +2,7 @@ HIGH PRIORITY ensure model toPropertyTrees(), etc are not unecessarily copying return objects gen documentation sample code including readme +monero_wallet_listener should be a class? MEDIUM PRIORITY should not need wallet.h / wallet.cpp as dependency, why are GUI deps needed?