Definition at line 789 of file main.cpp.
◆ MyWalletListener()
Definition at line 809 of file main.cpp.
811 {
813
815 this->
wallet->setListener(
this);
816 }
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.
833 {
834 std::cout <<
"wallet: " <<
wallet->mainAddress() <<
"**** just received ETN ("
835 << txId <<
", " <<
wallet->displayAmount(amount) <<
")" << std::endl;
839 }
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.
824 {
825 std::cerr <<
"wallet: " <<
wallet->mainAddress() <<
"**** just spent ETN ("
826 << txId <<
", " <<
wallet->displayAmount(amount) <<
")" << std::endl;
830 }
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.
852 {
853
854
855 static int bc_height =
wallet->daemonBlockChainHeight();
857 << " / " << bc_height
858 << std::endl;
861 }
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.
871 {
872 std::cout << __FUNCTION__ << "Wallet refreshed";
875 }
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.
842 {
843 std::cout <<
"wallet: " <<
wallet->mainAddress() <<
"**** just received unconfirmed ETN ("
844 << txId <<
", " <<
wallet->displayAmount(amount) <<
")" << std::endl;
845
846
847
848
849 }
◆ 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.
864 {
865 std::cout << __FUNCTION__ << "Wallet updated";
868 }
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-5.1.3.1-build/electroneum-5.1.3.1/tests/libwallet_api_tests/main.cpp