mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 23:31:32 +02:00
update sample code with outputs is_confirmed, is_locked
set m_is_confirmed, m_is_unlocked in output notifications
This commit is contained in:
@@ -97,7 +97,10 @@ int main(int argc, const char* argv[]) {
|
||||
struct : monero_wallet_listener {
|
||||
void on_output_received(const monero_output_wallet& output) {
|
||||
cout << "Wallet received funds!" << endl;
|
||||
uint64_t amount = output.m_amount.get();
|
||||
string tx_hash = output.m_tx->m_hash.get();
|
||||
bool is_confirmed = output.m_tx->m_is_confirmed.get();
|
||||
bool is_locked = static_pointer_cast<monero_tx_wallet>(output.m_tx)->m_is_locked.get();
|
||||
int account_index = output.m_account_index.get();
|
||||
int subaddress_index = output.m_subaddress_index.get();
|
||||
OUTPUT_RECEIVED = true;
|
||||
|
||||
Reference in New Issue
Block a user