MCPcopy Create free account
hub / github.com/ElementsProject/elements / incomingTransaction

Method incomingTransaction

src/qt/bitcoingui.cpp:1231–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229
1230#ifdef ENABLE_WALLET
1231void BitcoinGUI::incomingTransaction(const QString& date, const QString& assetamount_str, const QString& type, const QString& address, const QString& label, const QString& walletName)
1232{
1233 // On new transaction, make an info balloon
1234 QString msg = tr("Date: %1\n").arg(date) +
1235 tr("Amount: %1\n").arg(assetamount_str);
1236 if (m_node.walletLoader().getWallets().size() > 1 && !walletName.isEmpty()) {
1237 msg += tr("Wallet: %1\n").arg(walletName);
1238 }
1239 msg += tr("Type: %1\n").arg(type);
1240 if (!label.isEmpty())
1241 msg += tr("Label: %1\n").arg(label);
1242 else if (!address.isEmpty())
1243 msg += tr("Address: %1\n").arg(address);
1244 message(assetamount_str.startsWith("-") ? tr("Sent transaction") : tr("Incoming transaction"),
1245 msg, CClientUIInterface::MSG_INFORMATION);
1246}
1247#endif // ENABLE_WALLET
1248
1249void BitcoinGUI::dragEnterEvent(QDragEnterEvent *event)

Callers

nothing calls this directly

Calls 3

messageFunction · 0.85
getWalletsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected