add sample_code.cpp which is compiling but incomplete;

add get_primary_address() impl;
cleanup scratchpad
This commit is contained in:
woodser
2019-08-09 12:03:48 -04:00
parent 3cb9f932b7
commit 41ff146735
5 changed files with 175 additions and 61 deletions
+5
View File
@@ -1116,6 +1116,11 @@ namespace monero {
return epee::string_tools::pod_to_hex(m_w2->get_account().get_keys().m_spend_secret_key);
}
string monero_wallet::get_primary_address() const {
MTRACE("get_primary_address()");
return get_address(0, 0);
}
void monero_wallet::set_listener(const boost::optional<monero_wallet_listener&> listener) {
MTRACE("set_listener()");
m_w2_listener->set_wallet_listener(listener);