aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
AgeCommit message (Collapse)Author
2017-04-14net: define NodeId as an int64_tCory Fields
This should make occurances of NodeId wrapping essentially impossible for real-world usage. Github-Pull: #10176 Rebased-From: c851be4b25905977ca471c42435dc590fd2ff2f5
2017-03-27Ensure an item exists on the rpcconsole stack before addingAndrew Chow
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
2017-01-25net: Consistently use GetTimeMicros() for inactivity checksSuhas Daftuar
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.
2017-01-09Rename lambda argument name to prevent shadowing.Pavel Janík
2017-01-04Merge #9450: Increment MIT licence copyright header year on files modified ↵Wladimir J. van der Laan
in 2016 27765b6 Increment MIT Licence copyright header year on files modified in 2016 (isle2983)
2016-12-31Increment MIT Licence copyright header year on files modified in 2016isle2983
Edited via: $ contrib/devtools/copyright_header.py update .
2016-12-29GUI/RPCConsole: Include importmulti in history sensitive-command filterLuke Dashjr
2016-12-29Qt/RPCConsole: Use RPCParseCommandLine to perform command filteringLuke Dashjr
2016-12-29Qt/RPCConsole: Teach RPCParseCommandLine how to filter out arguments to ↵Luke Dashjr
sensitive commands
2016-12-29Qt/RPCConsole: Make it possible to parse a command without executing itLuke Dashjr
2016-12-29Qt/RPCConsole: Truncate filtered commands to just the command name, rather ↵Luke Dashjr
than skip it entirely in history
2016-12-29Qt/RPCConsole: Add signmessagewithprivkey to list of commands filtered from ↵Luke Dashjr
history
2016-12-29Qt/RPCConsole: Refactor command_may_contain_sensitive_data function out of ↵Luke Dashjr
RPCConsole::on_lineEdit_returnPressed
2016-12-29Bugfix: Do not add sensitive information to history for realLuke Dashjr
Original code was missing braces, and short-circuited before checking everything after importprivkey
2016-12-29Qt/RPCConsole: Don't store commands with potentially sensitive information ↵Jonas Schnelli
in the history Filters importprivkey, signrawtransaction, walletpassphrase, walletpassphrasechange, and encryptwallet
2016-12-29Qt/RPCConsole: Save current command entry when browsing historyJonas Schnelli
Shell-like, but doesn't store changed history commands until executing it.
2016-12-19Merge #9329: [Qt] Console: allow empty argumentsWladimir J. van der Laan
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)
2016-12-14[Qt] Console: don't allow empty arguments when using the comma-syntaxJonas Schnelli
2016-12-13[Qt] Console: allow empty argumentsJonas Schnelli
2016-12-12[Qt] Console: add security warningJonas Schnelli
2016-12-08Merge #9255: qt: layoutAboutToChange signal is called layoutAboutToBeChangedWladimir J. van der Laan
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)
2016-12-08Merge #9266: Bugfix: Qt/RPCConsole: Put column enum in the right placesWladimir J. van der Laan
df17fe0 Bugfix: Qt/RPCConsole: Put column enum in the right places (Luke Dashjr)
2016-12-07qt: Remove on_toggleNetworkActiveButton_clicked from RPCConsoleWladimir J. van der Laan
There is no network toggle button (anymore?) in the RPC console. Removes another warning (#9250).
2016-12-02Bugfix: Qt/RPCConsole: Put column enum in the right placesLuke Dashjr
QModelIndex::data argument is a role, not a column
2016-12-01qt: layoutAboutToChange signal is called layoutAboutToBeChangedWladimir J. van der Laan
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')
2016-11-23qt: Prevent thread/memory leak on exiting RPCConsoleWladimir J. van der Laan
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.
2016-11-23qt: Plug many memory leaksWladimir J. van der Laan
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.
2016-11-11Merge #8996: Network activity toggleJonas Schnelli
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)
2016-11-08Fix auto-deselection of peersAndrew Chow
2016-11-08Multiple Selection for peer and ban tablesAndrew Chow
Allows multiple selection and action for the nodes in the peer and ban tables in the Debug Window.
2016-10-24Qt: Add GUI feedback and control of network activity state.Jon Lund Steffensen
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.
2016-10-19[RPC] Give RPC commands more information about the RPC requestJonas Schnelli
2016-10-15Display minimum ping in debug window.R E Broadley
2016-10-04gui: fix ban from qt consoleCory Fields
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.
2016-09-23Do not shadow in src/qtPavel Janík
2016-09-20Merge #7783: [Qt] RPC-Console: support nested commands and simple value queriesWladimir J. van der Laan
1586044 [Qt] RPC-Console: support nested commands and simple value queries (Jonas Schnelli)
2016-09-08net: Add most functions needed for vNodes to CConnmanCory Fields
2016-09-08net: move ban and addrman functions into CConnmanCory Fields
2016-09-08gui: add NodeID to the peer tableCory Fields
2016-08-23[Qt] RPC-Console: support nested commands and simple value queriesJonas Schnelli
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]`
2016-07-31net: narrow include scope after moving to netaddressCory Fields
Net functionality is no longer needed for CAddress/CAddrman/etc. now that CNetAddr/CService/CSubNet are dumb storage classes.
2016-07-31net: Split resolving out of CSubNetCory Fields
2016-07-31net: Split resolving out of CNetAddrCory Fields
2016-06-28qt: Remove client name from debug windowWladimir J. van der Laan
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.
2016-05-31PR #7772 is not enough to fix the issue with QCompleter, use event filter ↵UdjinM6
instead of `connect`
2016-05-18Merge #7917: Optimize reindexWladimir J. van der Laan
b4d24e1 Report reindexing progress in GUI (Pieter Wuille) d3d7547 Add -reindex-chainstate that does not rebuild block index (Pieter Wuille) fb8fad1 Optimize ActivateBestChain for long chains (Pieter Wuille) 316623f Switch reindexing to AcceptBlock in-loop and ActivateBestChain afterwards (Pieter Wuille) d253ec4 Make ProcessNewBlock dbp const and update comment (Pieter Wuille)
2016-05-17Report reindexing progress in GUIPieter Wuille
2016-05-10net: make Ban/Unban/ClearBan functionality consistentCory Fields
- Ban/Unban/ClearBan call uiInterface.BannedListChanged() as necessary - Ban/Unban/ClearBan sync to disk if the operation is user-invoked - Mark node for disconnection automatically when banning - Lock cs_vNodes while setting disconnected - Don't spin in a tight loop while setting disconnected
2016-03-30Clear the input line after activating autocompletePavel Janík
2016-03-22[Qt] Debug window: replace "Build date" with "Datadir"Jonas Schnelli
The build date does only makes sense for custom/self-compiled bitcoin-core versions because we are using static build-dates for our deterministic release builds. Having a quick option to get the current datadir is much more valuable for debug purposes.