aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
Commit message (Collapse)AuthorAgeFilesLines
* qt: translate more user-exposed stringschromatic2021-08-141-1/+1
|
* qt: translate all user-exposed stringsPatrick Lodder2021-08-111-3/+3
|
* Merge pull request #1825 from alamshafil/masterRoss Nicoll2021-06-081-0/+61
|\ | | | | [QT] Add a form dialog for adding peers
| * Add a form dialog for adding peersShafil Alam2021-06-051-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed tabIndex and width in debugwindow.ui Added Qt UI files for each dialog Added Qt UI files Added separate thread for peer dialogs to run RPC commands Fixed tabIndex Remove unneeded includes Fixed error Replaced RPCExecutor with g_connman Replaced RPCExecutor with g_connman Added two input fields for peer address and port Remove peerThread Validate IP addresses Remove Peer now uses selected IP address in peerWidget Interpret RPC response Remove redundant include Use a regular expression to validate IPs Disconnect node if it has been discovered Use port based on current chain Change peerAddress -> peerPort Allowed DNS names to be entered Update src/qt/peerdialog.cpp Co-authored-by: Ross Nicoll <[email protected]> Fix typo Co-authored-by: Ross Nicoll <[email protected]> Use LookupHost to check address Co-authored-by: Ross Nicoll <[email protected]> Fix syntax typo
* | [qt] User-friendly interpretation of null responses in rpc consolePatrick Lodder2021-03-111-2/+11
|/ | | | Translates "null" (UniValueNull) to "Empty response".
* net: define NodeId as an int64_tCory Fields2017-04-141-2/+2
| | | | | | | | This should make occurances of NodeId wrapping essentially impossible for real-world usage. Github-Pull: #10176 Rebased-From: c851be4b25905977ca471c42435dc590fd2ff2f5
* Ensure an item exists on the rpcconsole stack before addingAndrew Chow2017-03-271-0/+4
| | | | | | | Ensures that there is an item on the rpcconsole stack before adding something to the current stack so that a segmentation fault does not occur. Github-Pull: #10060 Rebased-From: 4df76e270caa9d828179cae1c7a8918d6f91ec21
* net: Consistently use GetTimeMicros() for inactivity checksSuhas Daftuar2017-01-251-3/+3
| | | | | | | | | | | The use of mocktime in test logic means that comparisons between GetTime() and GetTimeMicros()/1000000 are unreliable since the former can use mocktime values while the latter always gets the system clock; this changes the networking code's inactivity checks to consistently use the system clock for inactivity comparisons. Also remove some hacks from setmocktime() that are no longer needed, now that we're using the system clock for nLastSend and nLastRecv.
* Rename lambda argument name to prevent shadowing.Pavel Janík2017-01-091-3/+3
|
* Merge #9450: Increment MIT licence copyright header year on files modified ↵Wladimir J. van der Laan2017-01-041-1/+1
|\ | | | | | | | | | | in 2016 27765b6 Increment MIT Licence copyright header year on files modified in 2016 (isle2983)
| * Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | | | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* | GUI/RPCConsole: Include importmulti in history sensitive-command filterLuke Dashjr2016-12-291-0/+1
| |
* | Qt/RPCConsole: Use RPCParseCommandLine to perform command filteringLuke Dashjr2016-12-291-31/+46
| |
* | Qt/RPCConsole: Teach RPCParseCommandLine how to filter out arguments to ↵Luke Dashjr2016-12-291-2/+30
| | | | | | | | sensitive commands
* | Qt/RPCConsole: Make it possible to parse a command without executing itLuke Dashjr2016-12-291-11/+13
| |
* | Qt/RPCConsole: Truncate filtered commands to just the command name, rather ↵Luke Dashjr2016-12-291-16/+14
| | | | | | | | than skip it entirely in history
* | Qt/RPCConsole: Add signmessagewithprivkey to list of commands filtered from ↵Luke Dashjr2016-12-291-0/+1
| | | | | | | | history
* | Qt/RPCConsole: Refactor command_may_contain_sensitive_data function out of ↵Luke Dashjr2016-12-291-10/+16
| | | | | | | | RPCConsole::on_lineEdit_returnPressed
* | Bugfix: Do not add sensitive information to history for realLuke Dashjr2016-12-291-1/+4
| | | | | | | | Original code was missing braces, and short-circuited before checking everything after importprivkey
* | Qt/RPCConsole: Don't store commands with potentially sensitive information ↵Jonas Schnelli2016-12-291-9/+28
| | | | | | | | | | | | in the history Filters importprivkey, signrawtransaction, walletpassphrase, walletpassphrasechange, and encryptwallet
* | Qt/RPCConsole: Save current command entry when browsing historyJonas Schnelli2016-12-291-0/+10
|/ | | | Shell-like, but doesn't store changed history commands until executing it.
* Merge #9329: [Qt] Console: allow empty argumentsWladimir J. van der Laan2016-12-191-11/+23
|\ | | | | | | | | | | 390bd14 [Qt] Console: don't allow empty arguments when using the comma-syntax (Jonas Schnelli) 6a32c0f Qt/Test: Check handling of empty arguments in RPC debug console (Luke Dashjr) 89c8d2c [Qt] Console: allow empty arguments (Jonas Schnelli)
| * [Qt] Console: don't allow empty arguments when using the comma-syntaxJonas Schnelli2016-12-141-3/+15
| |
| * [Qt] Console: allow empty argumentsJonas Schnelli2016-12-131-11/+11
| |
* | [Qt] Console: add security warningJonas Schnelli2016-12-121-1/+6
|/
* Merge #9255: qt: layoutAboutToChange signal is called layoutAboutToBeChangedWladimir J. van der Laan2016-12-081-7/+1
|\ | | | | | | | | f36349e qt: Remove on_toggleNetworkActiveButton_clicked from RPCConsole (Wladimir J. van der Laan) 297cc20 qt: layoutAboutToChange signal is called layoutAboutToBeChanged (Wladimir J. van der Laan)
| * qt: Remove on_toggleNetworkActiveButton_clicked from RPCConsoleWladimir J. van der Laan2016-12-071-5/+0
| | | | | | | | | | There is no network toggle button (anymore?) in the RPC console. Removes another warning (#9250).
| * qt: layoutAboutToChange signal is called layoutAboutToBeChangedWladimir J. van der Laan2016-12-011-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was misnamed, resulting in a warning message and missing functionality. I'm not sure what the change in behavior will be here, this needs testing. Also remove connection to non-existing slot "test". This was used for testing if the signal arrived. It is no longer necessary. Fixes: 2016-12-01 10:04:06 GUI: QObject::connect: No such signal PeerTableModel::layoutAboutToChange() in qt/rpcconsole.cpp:518 2016-12-01 10:04:06 GUI: QObject::connect: (receiver name: 'RPCConsole') 2016-12-01 10:04:06 GUI: QObject::connect: No such slot RPCConsole::test() in qt/rpcconsole.cpp:781 2016-12-01 10:04:06 GUI: QObject::connect: (receiver name: 'RPCConsole')
* | Merge #9266: Bugfix: Qt/RPCConsole: Put column enum in the right placesWladimir J. van der Laan2016-12-081-6/+6
|\ \ | |/ |/| | | df17fe0 Bugfix: Qt/RPCConsole: Put column enum in the right places (Luke Dashjr)
| * Bugfix: Qt/RPCConsole: Put column enum in the right placesLuke Dashjr2016-12-021-6/+6
| | | | | | | | QModelIndex::data argument is a role, not a column
* | qt: Prevent thread/memory leak on exiting RPCConsoleWladimir J. van der Laan2016-11-231-10/+14
| | | | | | | | | | | | | | Make ownership of the QThread object clear, so that the RPCConsole can wait for the executor thread to quit before shutdown is called. This increases overall thread safety, and prevents some objects from leaking on exit.
* | qt: Plug many memory leaksWladimir J. van der Laan2016-11-231-2/+2
| | | | | | | | | | | | | | | | | | None of these are very serious, and are leaks in objects that are created at most one time. In most cases this means properly using the QObject parent hierarchy, except for BanTablePriv/PeerTablePriv which are not QObject, so use a std::unique_ptr instead.
* | Merge #8996: Network activity toggleJonas Schnelli2016-11-111-4/+26
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 19f46f1 Qt: New network_disabled icon (Luke Dashjr) 54cf997 RPC/Net: Use boolean consistently for networkactive, and remove from getinfo (Luke Dashjr) b2b33d9 Overhaul network activity toggle (Jonas Schnelli) 32efa79 Qt: Add GUI feedback and control of network activity state. (Jon Lund Steffensen) e38993b RPC: Add "togglenetwork" method to toggle network activity temporarily (Jon Lund Steffensen) 7c9a98a Allow network activity to be temporarily suspended. (Jon Lund Steffensen)
| * | Qt: Add GUI feedback and control of network activity state.Jon Lund Steffensen2016-10-241-4/+26
| | | | | | | | | | | | | | | | | | | | | Add getNetworkActive()/setNetworkActive() method to client model. Send network active status through NotifyNetworkActiveChanged. Indicate in tool tip of gui status bar network indicator whether network activity is disabled. Indicate in debug window whether network activity is disabled and add button to allow user to toggle network activity state.
* | | Fix auto-deselection of peersAndrew Chow2016-11-081-9/+21
| |/ |/|
* | Multiple Selection for peer and ban tablesAndrew Chow2016-11-081-35/+51
| | | | | | | | Allows multiple selection and action for the nodes in the peer and ban tables in the Debug Window.
* | [RPC] Give RPC commands more information about the RPC requestJonas Schnelli2016-10-191-1/+4
| |
* | Display minimum ping in debug window.R E Broadley2016-10-151-0/+1
| |
* | gui: fix ban from qt consoleCory Fields2016-10-041-12/+13
|/ | | | | | | Rather than doing a circle and re-resolving the node's IP, just use the one from nodestats directly. This requires syncing the addr field from CNode.
* Do not shadow in src/qtPavel Janík2016-09-231-4/+4
|
* Merge #7783: [Qt] RPC-Console: support nested commands and simple value queriesWladimir J. van der Laan2016-09-201-69/+160
|\ | | | | | | 1586044 [Qt] RPC-Console: support nested commands and simple value queries (Jonas Schnelli)
| * [Qt] RPC-Console: support nested commands and simple value queriesJonas Schnelli2016-08-231-69/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commands can be executed with bracket syntax, example: `getwalletinfo()`. Commands can be nested, example: `sendtoaddress(getnewaddress(), 10)`. Simple queries are possible: `listunspent()[0][txid]` Object values are accessed with a non-quoted string, example: [txid]. Fully backward compatible. `generate 101` is identical to `generate(101)` Result value queries indicated with `[]` require the new brackets syntax. Comma as argument separator is now also possible: `sendtoaddress,<address>,<amount>` Space as argument separator works also with the bracket syntax, example: `sendtoaddress(getnewaddress() 10) No dept limitation, complex commands are possible: `decoderawtransaction(getrawtransaction(getblock(getbestblockhash())[tx][0]))[vout][0][value]`
* | net: Add most functions needed for vNodes to CConnmanCory Fields2016-09-081-4/+4
| |
* | net: move ban and addrman functions into CConnmanCory Fields2016-09-081-16/+13
| |
* | gui: add NodeID to the peer tableCory Fields2016-09-081-3/+3
|/
* net: narrow include scope after moving to netaddressCory Fields2016-07-311-0/+1
| | | | | Net functionality is no longer needed for CAddress/CAddrman/etc. now that CNetAddr/CService/CSubNet are dumb storage classes.
* net: Split resolving out of CSubNetCory Fields2016-07-311-1/+2
|
* net: Split resolving out of CNetAddrCory Fields2016-07-311-1/+4
|
* qt: Remove client name from debug windowWladimir J. van der Laan2016-06-281-1/+0
| | | | | Remove the client name from the debug window in the GUI. It is already part of the user agent, so adding it separately doesn't add anything.
* PR #7772 is not enough to fix the issue with QCompleter, use event filter ↵UdjinM62016-05-311-3/+9
| | | | instead of `connect`