Definition at line 789 of file main.cpp.
◆ MyWalletListener()
Definition at line 809 of file main.cpp.
virtual void setListener(WalletListener *)=0
Electroneum::Wallet * wallet
◆ etnReceived()
| virtual void MyWalletListener::etnReceived |
( |
const string & |
txId, |
|
|
uint64_t |
amount |
|
) |
| |
|
inlinevirtual |
etnReceived - called when etn received
- Parameters
-
| txId | - transaction id |
| amount | - amount |
Implements Electroneum::WalletListener.
Definition at line 832 of file main.cpp.
std::string mainAddress() const
static std::string displayAmount(uint64_t amount)
boost::condition_variable cv_receive
◆ etnSpent()
| virtual void MyWalletListener::etnSpent |
( |
const string & |
txId, |
|
|
uint64_t |
amount |
|
) |
| |
|
inlinevirtual |
etnSpent - called when etn spent
- Parameters
-
| txId | - transaction id |
| amount | - amount |
Implements Electroneum::WalletListener.
Definition at line 823 of file main.cpp.
boost::condition_variable cv_send
◆ newBlock()
| virtual void MyWalletListener::newBlock |
( |
uint64_t |
height | ) |
|
|
inlinevirtual |
newBlock - called when new block received
- Parameters
-
Implements Electroneum::WalletListener.
Definition at line 851 of file main.cpp.
857 <<
" / " << bc_height
virtual uint64_t daemonBlockChainHeight() const =0
daemonBlockChainHeight - returns daemon blockchain height
boost::condition_variable cv_newblock
◆ refreshed()
| virtual void MyWalletListener::refreshed |
( |
| ) |
|
|
inlinevirtual |
refreshed - called when wallet refreshed by background thread or explicitly refreshed by calling "refresh" synchronously
Implements Electroneum::WalletListener.
Definition at line 870 of file main.cpp.
872 std::cout << __FUNCTION__ <<
"Wallet refreshed";
boost::condition_variable cv_refresh
◆ reset()
| void MyWalletListener::reset |
( |
| ) |
|
|
inline |
◆ unconfirmedETNReceived()
| virtual void MyWalletListener::unconfirmedETNReceived |
( |
const string & |
txId, |
|
|
uint64_t |
amount |
|
) |
| |
|
inlinevirtual |
unconfirmedETNReceived - called when payment arrived in tx pool
- Parameters
-
| txId | - transaction id |
| amount | - amount |
Implements Electroneum::WalletListener.
Definition at line 841 of file main.cpp.
843 std::cout <<
"wallet: " <<
wallet->
mainAddress() <<
"**** just received unconfirmed ETN ("
◆ updated()
| virtual void MyWalletListener::updated |
( |
| ) |
|
|
inlinevirtual |
updated - generic callback, called when any event (sent/received/block reveived/etc) happened with the wallet;
Implements Electroneum::WalletListener.
Definition at line 863 of file main.cpp.
865 std::cout << __FUNCTION__ <<
"Wallet updated";
boost::condition_variable cv_update
◆ cv_newblock
| boost::condition_variable MyWalletListener::cv_newblock |
◆ cv_receive
| boost::condition_variable MyWalletListener::cv_receive |
◆ cv_refresh
| boost::condition_variable MyWalletListener::cv_refresh |
◆ cv_send
| boost::condition_variable MyWalletListener::cv_send |
◆ cv_update
| boost::condition_variable MyWalletListener::cv_update |
◆ mutex
| boost::mutex MyWalletListener::mutex |
◆ newblock_triggered
| bool MyWalletListener::newblock_triggered |
◆ receive_triggered
| bool MyWalletListener::receive_triggered |
◆ refresh_triggered
| bool MyWalletListener::refresh_triggered |
◆ send_triggered
| bool MyWalletListener::send_triggered |
◆ total_rx
◆ total_tx
◆ update_triggered
| bool MyWalletListener::update_triggered |
◆ wallet
The documentation for this struct was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-4.0.0.0/tests/libwallet_api_tests/main.cpp