Local Bitcoin RPC console.
More...
#include <rpcconsole.h>
Local Bitcoin RPC console.
Definition at line 43 of file rpcconsole.h.
◆ ColumnWidths
| Enumerator |
|---|
| ADDRESS_COLUMN_WIDTH | |
| SUBVERSION_COLUMN_WIDTH | |
| PING_COLUMN_WIDTH | |
| BANSUBNET_COLUMN_WIDTH | |
| BANTIME_COLUMN_WIDTH | |
Definition at line 153 of file rpcconsole.h.
◆ MessageClass
| Enumerator |
|---|
| MC_ERROR | |
| MC_DEBUG | |
| CMD_REQUEST | |
| CMD_REPLY | |
| CMD_ERROR | |
Definition at line 63 of file rpcconsole.h.
◆ TabTypes
| Enumerator |
|---|
| INFO | |
| CONSOLE | |
| GRAPH | |
| PEERS | |
Definition at line 71 of file rpcconsole.h.
◆ RPCConsole()
◆ ~RPCConsole()
| RPCConsole::~RPCConsole |
( |
| ) |
|
◆ banSelectedNode
| void RPCConsole::banSelectedNode |
( |
int | bantime | ) |
|
|
slot |
◆ browseHistory
| void RPCConsole::browseHistory |
( |
int | offset | ) |
|
|
slot |
◆ changeEvent()
◆ clear
◆ clearSelectedNode
| void RPCConsole::clearSelectedNode |
( |
| ) |
|
|
privateslot |
◆ disconnectSelectedNode
| void RPCConsole::disconnectSelectedNode |
( |
| ) |
|
|
slot |
Disconnect a selected node on the Peers tab.
Definition at line 1276 of file rpcconsole.cpp.
◆ eventFilter()
| bool RPCConsole::eventFilter |
( |
QObject * | obj, |
|
|
QEvent * | event ) |
|
overrideprotectedvirtual |
◆ fontBigger
| void RPCConsole::fontBigger |
( |
| ) |
|
|
slot |
◆ fontSmaller
| void RPCConsole::fontSmaller |
( |
| ) |
|
|
slot |
◆ hideEvent
◆ keyPressEvent()
◆ message [1/2]
◆ message [2/2]
Append the message to the message widget.
Definition at line 117 of file rpcconsole.h.
◆ on_lineEdit_returnPressed
| void RPCConsole::on_lineEdit_returnPressed |
( |
| ) |
|
|
privateslot |
◆ on_openDebugLogfileButton_clicked
| void RPCConsole::on_openDebugLogfileButton_clicked |
( |
| ) |
|
|
privateslot |
open the debug.log from the current datadir
Definition at line 1118 of file rpcconsole.cpp.
◆ on_sldGraphRange_valueChanged
| void RPCConsole::on_sldGraphRange_valueChanged |
( |
int | value | ) |
|
|
privateslot |
change the time range of the network traffic graph
Definition at line 1129 of file rpcconsole.cpp.
◆ on_tabWidget_currentChanged
| void RPCConsole::on_tabWidget_currentChanged |
( |
int | index | ) |
|
|
privateslot |
◆ resizeEvent
◆ RPCExecuteCommandLine()
| static bool RPCConsole::RPCExecuteCommandLine |
( |
interfaces::Node & | node, |
|
|
std::string & | strResult, |
|
|
const std::string & | strCommand, |
|
|
std::string *const | pstrFilteredOut = nullptr, |
|
|
const QString & | wallet_name = {} ) |
|
inlinestatic |
◆ RPCParseCommandLine()
| bool RPCConsole::RPCParseCommandLine |
( |
interfaces::Node * | node, |
|
|
std::string & | strResult, |
|
|
const std::string & | strCommand, |
|
|
bool | fExecute, |
|
|
std::string * | pstrFilteredOut = nullptr, |
|
|
const QString & | wallet_name = {} ) |
|
static |
Split shell command line into a list of arguments and optionally execute the command(s).
Aims to emulate bash and friends.
- Command nesting is possible with parenthesis; for example: validateaddress(getnewaddress())
- Arguments are delimited with whitespace or comma
- Extra whitespace at the beginning and end and between arguments will be ignored
- Text can be "double" or 'single' quoted
- The backslash
\ is used as escape character
- Outside quotes, any character can be escaped
- Within double quotes, only escape
" and backslashes before a \c " or another backslash
- Within single quotes, no escaping is possible and no special interpretation takes place
- Parameters
-
| [in] | node | optional node to execute command on |
| [out] | strResult | stringified result from the executed command(chain) |
| [in] | strCommand | Command line to split |
| [in] | fExecute | set true if you want the command to be executed |
| [out] | pstrFilteredOut | Command line, filtered to remove any sensitive data |
Definition at line 141 of file rpcconsole.cpp.
◆ scrollToEnd
| void RPCConsole::scrollToEnd |
( |
| ) |
|
|
slot |
◆ setClientModel()
◆ setFontSize
| void RPCConsole::setFontSize |
( |
int | newSize | ) |
|
|
slot |
◆ setMempoolSize
Set size (number of transactions and memory usage) of the mempool in the UI.
Definition at line 980 of file rpcconsole.cpp.
◆ setNetworkActive
| void RPCConsole::setNetworkActive |
( |
bool | networkActive | ) |
|
|
slot |
◆ setNumBlocks
Set number of blocks and last block date shown in the UI.
Definition at line 972 of file rpcconsole.cpp.
◆ setNumConnections
| void RPCConsole::setNumConnections |
( |
int | count | ) |
|
|
slot |
Set number of connections shown in the UI.
Definition at line 959 of file rpcconsole.cpp.
◆ setTabFocus
◆ setTrafficGraphRange()
| void RPCConsole::setTrafficGraphRange |
( |
int | mins | ) |
|
|
private |
◆ showBanTableContextMenu
| void RPCConsole::showBanTableContextMenu |
( |
const QPoint & | point | ) |
|
|
privateslot |
◆ showEvent
◆ showOrHideBanTableIfRequired
| void RPCConsole::showOrHideBanTableIfRequired |
( |
| ) |
|
|
privateslot |
◆ showPeersTableContextMenu
| void RPCConsole::showPeersTableContextMenu |
( |
const QPoint & | point | ) |
|
|
privateslot |
◆ startExecutor()
| void RPCConsole::startExecutor |
( |
| ) |
|
|
private |
◆ tabs()
| std::vector< TabTypes > RPCConsole::tabs |
( |
| ) |
const |
|
inline |
◆ tabShortcut()
◆ tabTitle()
◆ TimeDurationField()
| QString RPCConsole::TimeDurationField |
( |
std::chrono::seconds | time_now, |
|
|
std::chrono::seconds | time_at_event ) const |
|
inlineprivate |
Helper for the output of a time duration field.
Inputs are UNIX epoch times.
Definition at line 186 of file rpcconsole.h.
◆ unbanSelectedNode
| void RPCConsole::unbanSelectedNode |
( |
| ) |
|
|
slot |
◆ updateAlerts
| void RPCConsole::updateAlerts |
( |
const QString & | warnings | ) |
|
|
privateslot |
◆ updateDetailWidget
| void RPCConsole::updateDetailWidget |
( |
| ) |
|
|
privateslot |
show detailed information on ui about selected node
Definition at line 1148 of file rpcconsole.cpp.
◆ updateNetworkState()
| void RPCConsole::updateNetworkState |
( |
| ) |
|
|
private |
Update UI with latest network info from model.
Definition at line 933 of file rpcconsole.cpp.
◆ updateTrafficStats
◆ updateWindowTitle()
| void RPCConsole::updateWindowTitle |
( |
| ) |
|
|
private |
◆ autoCompleter
◆ banTableContextMenu
◆ cachedNodeids
◆ clientModel
◆ cmdBeforeBrowsing
| QString RPCConsole::cmdBeforeBrowsing |
|
private |
◆ consoleFontSize
| int RPCConsole::consoleFontSize = 0 |
|
private |
◆ history
◆ historyPtr
| int RPCConsole::historyPtr = 0 |
|
private |
◆ m_banlist_widget_header_state
| QByteArray RPCConsole::m_banlist_widget_header_state |
|
private |
◆ m_executor
◆ m_is_executing
◆ m_last_wallet_model
◆ m_node
◆ m_peer_widget_header_state
◆ peersTableContextMenu
◆ platformStyle
◆ thread
◆ ts
◆ ui
| Ui::RPCConsole* const RPCConsole::ui |
|
private |
The documentation for this class was generated from the following files: