Dogecoin Core  1.14.2
P2P Digital Currency
transactionview.cpp
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #include "transactionview.h"
6 
7 #include "addresstablemodel.h"
8 #include "bitcoinunits.h"
9 #include "csvmodelwriter.h"
10 #include "editaddressdialog.h"
11 #include "guiutil.h"
12 #include "optionsmodel.h"
13 #include "platformstyle.h"
14 #include "transactiondescdialog.h"
15 #include "transactionfilterproxy.h"
16 #include "transactionrecord.h"
17 #include "transactiontablemodel.h"
18 #include "walletmodel.h"
19 
20 #include "ui_interface.h"
21 
22 #include <QComboBox>
23 #include <QDateTimeEdit>
24 #include <QDesktopServices>
25 #include <QDoubleValidator>
26 #include <QHBoxLayout>
27 #include <QHeaderView>
28 #include <QLabel>
29 #include <QLineEdit>
30 #include <QMenu>
31 #include <QPoint>
32 #include <QScrollBar>
33 #include <QSignalMapper>
34 #include <QTableView>
35 #include <QUrl>
36 #include <QVBoxLayout>
37 
38 TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *parent) :
39  QWidget(parent), model(0), transactionProxyModel(0),
40  transactionView(0), abandonAction(0), columnResizingFixer(0)
41 {
42  // Build filter row
43  setContentsMargins(0,0,0,0);
44 
45  QHBoxLayout *hlayout = new QHBoxLayout();
46  hlayout->setContentsMargins(0,0,0,0);
47 
48  if (platformStyle->getUseExtraSpacing()) {
49  hlayout->setSpacing(5);
50  hlayout->addSpacing(26);
51  } else {
52  hlayout->setSpacing(0);
53  hlayout->addSpacing(23);
54  }
55 
56  watchOnlyWidget = new QComboBox(this);
57  watchOnlyWidget->setFixedWidth(24);
59  watchOnlyWidget->addItem(platformStyle->SingleColorIcon(":/icons/eye_plus"), "", TransactionFilterProxy::WatchOnlyFilter_Yes);
60  watchOnlyWidget->addItem(platformStyle->SingleColorIcon(":/icons/eye_minus"), "", TransactionFilterProxy::WatchOnlyFilter_No);
61  hlayout->addWidget(watchOnlyWidget);
62 
63  dateWidget = new QComboBox(this);
64  if (platformStyle->getUseExtraSpacing()) {
65  dateWidget->setFixedWidth(121);
66  } else {
67  dateWidget->setFixedWidth(120);
68  }
69  dateWidget->addItem(tr("All"), All);
70  dateWidget->addItem(tr("Today"), Today);
71  dateWidget->addItem(tr("This week"), ThisWeek);
72  dateWidget->addItem(tr("This month"), ThisMonth);
73  dateWidget->addItem(tr("Last month"), LastMonth);
74  dateWidget->addItem(tr("This year"), ThisYear);
75  dateWidget->addItem(tr("Range..."), Range);
76  hlayout->addWidget(dateWidget);
77 
78  typeWidget = new QComboBox(this);
79  if (platformStyle->getUseExtraSpacing()) {
80  typeWidget->setFixedWidth(121);
81  } else {
82  typeWidget->setFixedWidth(120);
83  }
84 
85  typeWidget->addItem(tr("All"), TransactionFilterProxy::ALL_TYPES);
93 
94  hlayout->addWidget(typeWidget);
95 
96  addressWidget = new QLineEdit(this);
97 #if QT_VERSION >= 0x040700
98  addressWidget->setPlaceholderText(tr("Enter address or label to search"));
99 #endif
100  hlayout->addWidget(addressWidget);
101 
102  amountWidget = new QLineEdit(this);
103 #if QT_VERSION >= 0x040700
104  amountWidget->setPlaceholderText(tr("Min amount"));
105 #endif
106  if (platformStyle->getUseExtraSpacing()) {
107  amountWidget->setFixedWidth(97);
108  } else {
109  amountWidget->setFixedWidth(100);
110  }
111  amountWidget->setValidator(new QDoubleValidator(0, 1e20, 8, this));
112  hlayout->addWidget(amountWidget);
113 
114  QVBoxLayout *vlayout = new QVBoxLayout(this);
115  vlayout->setContentsMargins(0,0,0,0);
116  vlayout->setSpacing(0);
117 
118  QTableView *view = new QTableView(this);
119  vlayout->addLayout(hlayout);
120  vlayout->addWidget(createDateRangeWidget());
121  vlayout->addWidget(view);
122  vlayout->setSpacing(0);
123  int width = view->verticalScrollBar()->sizeHint().width();
124  // Cover scroll bar width with spacing
125  if (platformStyle->getUseExtraSpacing()) {
126  hlayout->addSpacing(width+2);
127  } else {
128  hlayout->addSpacing(width);
129  }
130  // Always show scroll bar
131  view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
132  view->setTabKeyNavigation(false);
133  view->setContextMenuPolicy(Qt::CustomContextMenu);
134 
135  view->installEventFilter(this);
136 
137  transactionView = view;
138 
139  // Actions
140  abandonAction = new QAction(tr("Abandon transaction"), this);
141  QAction *copyAddressAction = new QAction(tr("Copy address"), this);
142  QAction *copyLabelAction = new QAction(tr("Copy label"), this);
143  QAction *copyAmountAction = new QAction(tr("Copy amount"), this);
144  QAction *copyTxIDAction = new QAction(tr("Copy transaction ID"), this);
145  QAction *copyTxHexAction = new QAction(tr("Copy raw transaction"), this);
146  QAction *copyTxPlainText = new QAction(tr("Copy full transaction details"), this);
147  QAction *editLabelAction = new QAction(tr("Edit label"), this);
148  QAction *showDetailsAction = new QAction(tr("Show transaction details"), this);
149 
150  contextMenu = new QMenu(this);
151  contextMenu->addAction(copyAddressAction);
152  contextMenu->addAction(copyLabelAction);
153  contextMenu->addAction(copyAmountAction);
154  contextMenu->addAction(copyTxIDAction);
155  contextMenu->addAction(copyTxHexAction);
156  contextMenu->addAction(copyTxPlainText);
157  contextMenu->addAction(showDetailsAction);
158  contextMenu->addSeparator();
159  contextMenu->addAction(abandonAction);
160  contextMenu->addAction(editLabelAction);
161 
162  mapperThirdPartyTxUrls = new QSignalMapper(this);
163 
164  // Connect actions
165  connect(mapperThirdPartyTxUrls, SIGNAL(mapped(QString)), this, SLOT(openThirdPartyTxUrl(QString)));
166 
167  connect(dateWidget, SIGNAL(activated(int)), this, SLOT(chooseDate(int)));
168  connect(typeWidget, SIGNAL(activated(int)), this, SLOT(chooseType(int)));
169  connect(watchOnlyWidget, SIGNAL(activated(int)), this, SLOT(chooseWatchonly(int)));
170  connect(addressWidget, SIGNAL(textChanged(QString)), this, SLOT(changedPrefix(QString)));
171  connect(amountWidget, SIGNAL(textChanged(QString)), this, SLOT(changedAmount(QString)));
172 
173  connect(view, SIGNAL(doubleClicked(QModelIndex)), this, SIGNAL(doubleClicked(QModelIndex)));
174  connect(view, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextualMenu(QPoint)));
175 
176  connect(abandonAction, SIGNAL(triggered()), this, SLOT(abandonTx()));
177  connect(copyAddressAction, SIGNAL(triggered()), this, SLOT(copyAddress()));
178  connect(copyLabelAction, SIGNAL(triggered()), this, SLOT(copyLabel()));
179  connect(copyAmountAction, SIGNAL(triggered()), this, SLOT(copyAmount()));
180  connect(copyTxIDAction, SIGNAL(triggered()), this, SLOT(copyTxID()));
181  connect(copyTxHexAction, SIGNAL(triggered()), this, SLOT(copyTxHex()));
182  connect(copyTxPlainText, SIGNAL(triggered()), this, SLOT(copyTxPlainText()));
183  connect(editLabelAction, SIGNAL(triggered()), this, SLOT(editLabel()));
184  connect(showDetailsAction, SIGNAL(triggered()), this, SLOT(showDetails()));
185 }
186 
188 {
189  this->model = _model;
190  if(_model)
191  {
193  transactionProxyModel->setSourceModel(_model->getTransactionTableModel());
194  transactionProxyModel->setDynamicSortFilter(true);
195  transactionProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
196  transactionProxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
197 
198  transactionProxyModel->setSortRole(Qt::EditRole);
199 
200  transactionView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
202  transactionView->setAlternatingRowColors(true);
203  transactionView->setSelectionBehavior(QAbstractItemView::SelectRows);
204  transactionView->setSelectionMode(QAbstractItemView::ExtendedSelection);
205  transactionView->setSortingEnabled(true);
206  transactionView->sortByColumn(TransactionTableModel::Date, Qt::DescendingOrder);
207  transactionView->verticalHeader()->hide();
208 
214 
216 
217  if (_model->getOptionsModel())
218  {
219  // Add third party transaction URLs to context menu
220  QStringList listUrls = _model->getOptionsModel()->getThirdPartyTxUrls().split("|", QString::SkipEmptyParts);
221  for (int i = 0; i < listUrls.size(); ++i)
222  {
223  QUrl url = QUrl(listUrls[i].trimmed(), QUrl::StrictMode);
224  QString host = url.host();
225  if (!host.isEmpty() && url.scheme() == "https")
226  {
227  QAction *thirdPartyTxUrlAction = new QAction(host, this); // use host as menu item label
228  if (i == 0)
229  contextMenu->addSeparator();
230  contextMenu->addAction(thirdPartyTxUrlAction);
231  connect(thirdPartyTxUrlAction, SIGNAL(triggered()), mapperThirdPartyTxUrls, SLOT(map()));
232  mapperThirdPartyTxUrls->setMapping(thirdPartyTxUrlAction, listUrls[i].trimmed());
233  }
234  }
235  }
236 
237  // show/hide column Watch-only
239 
240  // Watch-only signal
241  connect(_model, SIGNAL(notifyWatchonlyChanged(bool)), this, SLOT(updateWatchOnlyColumn(bool)));
242  }
243 }
244 
246 {
248  return;
249  QDate current = QDate::currentDate();
250  dateRangeWidget->setVisible(false);
251  switch(dateWidget->itemData(idx).toInt())
252  {
253  case All:
257  break;
258  case Today:
260  QDateTime(current),
262  break;
263  case ThisWeek: {
264  // Find last Monday
265  QDate startOfWeek = current.addDays(-(current.dayOfWeek()-1));
267  QDateTime(startOfWeek),
269 
270  } break;
271  case ThisMonth:
273  QDateTime(QDate(current.year(), current.month(), 1)),
275  break;
276  case LastMonth:
278  QDateTime(QDate(current.year(), current.month(), 1).addMonths(-1)),
279  QDateTime(QDate(current.year(), current.month(), 1)));
280  break;
281  case ThisYear:
283  QDateTime(QDate(current.year(), 1, 1)),
285  break;
286  case Range:
287  dateRangeWidget->setVisible(true);
289  break;
290  }
291 }
292 
294 {
296  return;
298  typeWidget->itemData(idx).toInt());
299 }
300 
302 {
304  return;
307 }
308 
310 {
312  return;
314 }
315 
316 void TransactionView::changedAmount(const QString &amount)
317 {
319  return;
320  CAmount amount_parsed = 0;
321  if(BitcoinUnits::parse(model->getOptionsModel()->getDisplayUnit(), amount, &amount_parsed))
322  {
323  transactionProxyModel->setMinAmount(amount_parsed);
324  }
325  else
326  {
328  }
329 }
330 
332 {
333  // CSV is currently the only supported format
334  QString filename = GUIUtil::getSaveFileName(this,
335  tr("Export Transaction History"), QString(),
336  tr("Comma separated file (*.csv)"), NULL);
337 
338  if (filename.isNull())
339  return;
340 
341  CSVModelWriter writer(filename);
342 
343  // name, column, role
345  writer.addColumn(tr("Confirmed"), 0, TransactionTableModel::ConfirmedRole);
346  if (model && model->haveWatchOnly())
347  writer.addColumn(tr("Watch-only"), TransactionTableModel::Watchonly);
348  writer.addColumn(tr("Date"), 0, TransactionTableModel::DateRole);
349  writer.addColumn(tr("Type"), TransactionTableModel::Type, Qt::EditRole);
350  writer.addColumn(tr("Label"), 0, TransactionTableModel::LabelRole);
351  writer.addColumn(tr("Address"), 0, TransactionTableModel::AddressRole);
353  writer.addColumn(tr("ID"), 0, TransactionTableModel::TxIDRole);
354 
355  if(!writer.write()) {
356  Q_EMIT message(tr("Exporting Failed"), tr("There was an error trying to save the transaction history to %1.").arg(filename),
358  }
359  else {
360  Q_EMIT message(tr("Exporting Successful"), tr("The transaction history was successfully saved to %1.").arg(filename),
362  }
363 }
364 
365 void TransactionView::contextualMenu(const QPoint &point)
366 {
367  QModelIndex index = transactionView->indexAt(point);
368  QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
369  if (selection.empty())
370  return;
371 
372  // check if transaction can be abandoned, disable context menu action in case it doesn't
373  uint256 hash;
374  hash.SetHex(selection.at(0).data(TransactionTableModel::TxHashRole).toString().toStdString());
375  abandonAction->setEnabled(model->transactionCanBeAbandoned(hash));
376 
377  if(index.isValid())
378  {
379  contextMenu->exec(QCursor::pos());
380  }
381 }
382 
384 {
385  if(!transactionView || !transactionView->selectionModel())
386  return;
387  QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
388 
389  // get the hash from the TxHashRole (QVariant / QString)
390  uint256 hash;
391  QString hashQStr = selection.at(0).data(TransactionTableModel::TxHashRole).toString();
392  hash.SetHex(hashQStr.toStdString());
393 
394  // Abandon the wallet transaction over the walletModel
395  model->abandonTransaction(hash);
396 
397  // Update the table
399 }
400 
402 {
404 }
405 
407 {
409 }
410 
412 {
414 }
415 
417 {
419 }
420 
422 {
424 }
425 
427 {
429 }
430 
432 {
433  if(!transactionView->selectionModel() ||!model)
434  return;
435  QModelIndexList selection = transactionView->selectionModel()->selectedRows();
436  if(!selection.isEmpty())
437  {
438  AddressTableModel *addressBook = model->getAddressTableModel();
439  if(!addressBook)
440  return;
441  QString address = selection.at(0).data(TransactionTableModel::AddressRole).toString();
442  if(address.isEmpty())
443  {
444  // If this transaction has no associated address, exit
445  return;
446  }
447  // Is address in address book? Address book can miss address when a transaction is
448  // sent from outside the UI.
449  int idx = addressBook->lookupAddress(address);
450  if(idx != -1)
451  {
452  // Edit sending / receiving address
453  QModelIndex modelIdx = addressBook->index(idx, 0, QModelIndex());
454  // Determine type of address, launch appropriate editor dialog type
455  QString type = modelIdx.data(AddressTableModel::TypeRole).toString();
456 
457  EditAddressDialog dlg(
461  dlg.setModel(addressBook);
462  dlg.loadRow(idx);
463  dlg.exec();
464  }
465  else
466  {
467  // Add sending address
469  this);
470  dlg.setModel(addressBook);
471  dlg.setAddress(address);
472  dlg.exec();
473  }
474  }
475 }
476 
478 {
479  if(!transactionView->selectionModel())
480  return;
481  QModelIndexList selection = transactionView->selectionModel()->selectedRows();
482  if(!selection.isEmpty())
483  {
484  TransactionDescDialog *dlg = new TransactionDescDialog(selection.at(0));
485  dlg->setAttribute(Qt::WA_DeleteOnClose);
486  dlg->show();
487  }
488 }
489 
491 {
492  if(!transactionView || !transactionView->selectionModel())
493  return;
494  QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
495  if(!selection.isEmpty())
496  QDesktopServices::openUrl(QUrl::fromUserInput(url.replace("%s", selection.at(0).data(TransactionTableModel::TxHashRole).toString())));
497 }
498 
500 {
501  dateRangeWidget = new QFrame();
502  dateRangeWidget->setFrameStyle(QFrame::Panel | QFrame::Raised);
503  dateRangeWidget->setContentsMargins(1,1,1,1);
504  QHBoxLayout *layout = new QHBoxLayout(dateRangeWidget);
505  layout->setContentsMargins(0,0,0,0);
506  layout->addSpacing(23);
507  layout->addWidget(new QLabel(tr("Range:")));
508 
509  dateFrom = new QDateTimeEdit(this);
510  dateFrom->setDisplayFormat("dd/MM/yy");
511  dateFrom->setCalendarPopup(true);
512  dateFrom->setMinimumWidth(100);
513  dateFrom->setDate(QDate::currentDate().addDays(-7));
514  layout->addWidget(dateFrom);
515  layout->addWidget(new QLabel(tr("to")));
516 
517  dateTo = new QDateTimeEdit(this);
518  dateTo->setDisplayFormat("dd/MM/yy");
519  dateTo->setCalendarPopup(true);
520  dateTo->setMinimumWidth(100);
521  dateTo->setDate(QDate::currentDate());
522  layout->addWidget(dateTo);
523  layout->addStretch();
524 
525  // Hide by default
526  dateRangeWidget->setVisible(false);
527 
528  // Notify on change
529  connect(dateFrom, SIGNAL(dateChanged(QDate)), this, SLOT(dateRangeChanged()));
530  connect(dateTo, SIGNAL(dateChanged(QDate)), this, SLOT(dateRangeChanged()));
531 
532  return dateRangeWidget;
533 }
534 
536 {
538  return;
540  QDateTime(dateFrom->date()),
541  QDateTime(dateTo->date()).addDays(1));
542 }
543 
544 void TransactionView::focusTransaction(const QModelIndex &idx)
545 {
547  return;
548  QModelIndex targetIdx = transactionProxyModel->mapFromSource(idx);
549  transactionView->scrollTo(targetIdx);
550  transactionView->setCurrentIndex(targetIdx);
551  transactionView->setFocus();
552 }
553 
554 // We override the virtual resizeEvent of the QWidget to adjust tables column
555 // sizes as the tables width is proportional to the dialogs width.
556 void TransactionView::resizeEvent(QResizeEvent* event)
557 {
558  QWidget::resizeEvent(event);
560 }
561 
562 // Need to override default Ctrl+C action for amount as default behaviour is just to copy DisplayRole text
563 bool TransactionView::eventFilter(QObject *obj, QEvent *event)
564 {
565  if (event->type() == QEvent::KeyPress)
566  {
567  QKeyEvent *ke = static_cast<QKeyEvent *>(event);
568  if (ke->key() == Qt::Key_C && ke->modifiers().testFlag(Qt::ControlModifier))
569  {
571  return true;
572  }
573  }
574  return QWidget::eventFilter(obj, event);
575 }
576 
577 // show/hide column Watch-only
578 void TransactionView::updateWatchOnlyColumn(bool fHaveWatchOnly)
579 {
580  watchOnlyWidget->setVisible(fHaveWatchOnly);
581  transactionView->setColumnHidden(TransactionTableModel::Watchonly, !fHaveWatchOnly);
582 }
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:15
Qt model of the address book in the core.
@ TypeRole
Type of address (Send or Receive)
int lookupAddress(const QString &address) const
QModelIndex index(int row, int column, const QModelIndex &parent) const
QVariant data(const QModelIndex &index, int role) const
static const QString Receive
Specifies receive address.
static bool parse(int unit, const QString &value, CAmount *val_out)
Parse string to coin amount.
static QString getAmountColumnTitle(int unit)
Gets title for amount column including current display unit if optionsModel reference available *‍/.
@ MSG_INFORMATION
Predefined combinations for certain default usage cases.
Definition: ui_interface.h:71
Export a Qt table model to a CSV file.
bool write()
Perform export of the model to CSV.
void setModel(const QAbstractItemModel *model)
void addColumn(const QString &title, int column, int role=Qt::EditRole)
Dialog for editing an address and associated information.
void setModel(AddressTableModel *model)
void setAddress(const QString &address)
Makes a QTableView last column feel as if it was being resized from its left border.
Definition: guiutil.h:149
int getDisplayUnit()
Definition: optionsmodel.h:65
QString getThirdPartyTxUrls()
Definition: optionsmodel.h:66
QIcon SingleColorIcon(const QString &filename) const
Colorize an icon (given filename) with the icon color.
bool getUseExtraSpacing() const
Definition: platformstyle.h:22
Dialog showing transaction details.
Filter the transaction list according to pre-specified rules.
void setMinAmount(const CAmount &minimum)
static const QDateTime MAX_DATE
Last date that can be represented (far in the future)
void setWatchOnlyFilter(WatchOnlyFilter filter)
static const quint32 ALL_TYPES
Type filter bit field (all types)
static quint32 TYPE(int type)
static const QDateTime MIN_DATE
Earliest date that can be represented (far in the past)
void setAddressPrefix(const QString &addrPrefix)
void setDateRange(const QDateTime &from, const QDateTime &to)
void setTypeFilter(quint32 modes)
@ TxPlainTextRole
Whole transaction as plain text.
@ LabelRole
Label of address related to transaction.
@ DateRole
Date and time this transaction was created.
@ TxHashRole
Transaction hash.
@ TxHexRole
Transaction data, hex-encoded.
@ TxIDRole
Unique identifier.
@ AddressRole
Address of transaction.
@ ConfirmedRole
Is transaction confirmed?
@ FormattedAmountRole
Formatted amount, without brackets when unconfirmed.
void updateTransaction(const QString &hash, int status, bool showTransaction)
void changedAmount(const QString &amount)
WalletModel * model
bool eventFilter(QObject *obj, QEvent *event)
void chooseWatchonly(int idx)
QComboBox * typeWidget
QDateTimeEdit * dateFrom
QLineEdit * addressWidget
QWidget * createDateRangeWidget()
QSignalMapper * mapperThirdPartyTxUrls
void setModel(WalletModel *model)
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
void updateWatchOnlyColumn(bool fHaveWatchOnly)
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
void chooseType(int idx)
TransactionView(const PlatformStyle *platformStyle, QWidget *parent=0)
virtual void resizeEvent(QResizeEvent *event)
QComboBox * watchOnlyWidget
QAction * abandonAction
QFrame * dateRangeWidget
QDateTimeEdit * dateTo
TransactionFilterProxy * transactionProxyModel
QTableView * transactionView
void focusTransaction(const QModelIndex &)
void chooseDate(int idx)
void contextualMenu(const QPoint &)
void changedPrefix(const QString &prefix)
QComboBox * dateWidget
void openThirdPartyTxUrl(QString url)
void doubleClicked(const QModelIndex &)
QLineEdit * amountWidget
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:99
bool transactionCanBeAbandoned(uint256 hash) const
AddressTableModel * getAddressTableModel()
OptionsModel * getOptionsModel()
bool abandonTransaction(uint256 hash) const
bool haveWatchOnly() const
Definition: walletmodel.cpp:89
TransactionTableModel * getTransactionTableModel()
void SetHex(const char *psz)
Definition: uint256.cpp:30
uint8_t data[WIDTH]
Definition: uint256.h:23
256-bit opaque blob.
Definition: uint256.h:123
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix when ...
Definition: guiutil.cpp:294
void copyEntryData(QAbstractItemView *view, int column, int role)
Copy a field of the currently selected entry of a view to the clipboard.
Definition: guiutil.cpp:274
const char * prefix
Definition: rest.cpp:605
const char * url
Definition: rpcconsole.cpp:57
@ CT_UPDATED
Definition: ui_interface.h:24