aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/node.h
Commit message (Collapse)AuthorAgeFilesLines
* BlockTip struct created and connected to notifyHeaderTip and notifyBlockTip ↵furszy2020-05-231-2/+10
| | | | signals.
* Added best block hash to the NotifyHeaderTip and NotifyBlockTip signals.furszy2020-05-231-2/+5
| | | | [ClientModel] best header/block hash cached.
* refactor: Pass SynchronizationState enum to GUIHennadii Stepanov2020-05-191-2/+3
| | | | Co-authored-by: Russell Yanofsky <[email protected]>
* Make ThreadSafe{MessageBox|Question} bilingualHennadii Stepanov2020-05-051-2/+2
|
* wallet: Avoid translating RPC errors when loading walletsMarcoFalke2020-05-011-3/+4
| | | | | | | Common errors and warnings should be translated when displayed in the GUI, but not translated when displayed elsewhere. The wallet method CreateWalletFromFile does not know its caller, so this commit changes it to return a bilingual_str to the caller.
* refactor: Change createWallet, fillPSBT argument orderRussell Yanofsky2020-03-191-1/+1
| | | | | Move output arguments after input arguments for consistency with other methods, and to work more easily with IPC framework in #10102
* refactor: Rename Node::disconnect methodsRussell Yanofsky2020-03-191-2/+2
| | | | Avoid overloading method name to work more easily with IPC framework
* scripted-diff: Bump copyright of files changed in 2019MarcoFalke2019-12-301-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
* [qt] remove unused parameter from getWarnings()John Newbery2019-12-151-1/+1
|
* Merge #17297: refactor: Remove addrdb.h dependency from node.hWladimir J. van der Laan2019-11-041-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f44abe4bed25a40145ab168adc1589f5df4146f3 refactor: Remove addrdb.h dependency from node.h (Hennadii Stepanov) Pull request description: `node.h` includes `addrdb.h` just for the sake of `banmap_t` type. This PR makes dependencies simpler and explicit. ~Also needless `typedef` has been removed from `enum BanReason`.~ ACKs for top commit: laanwj: ACK f44abe4bed25a40145ab168adc1589f5df4146f3 practicalswift: ACK f44abe4bed25a40145ab168adc1589f5df4146f3 Tree-SHA512: 33a1be20e5c629daf4a61ebbf93ea6494b9256887cebd4974de4782f6d324404b6cc84909533d9502b2cc19902083f1f9307d4fb7231e67db5b412b842d13072
| * refactor: Remove addrdb.h dependency from node.hHennadii Stepanov2019-10-291-1/+1
| |
* | Pass NodeContext, ConnMan, BanMan references more placesRussell Yanofsky2019-10-281-0/+4
|/ | | | So g_connman and g_banman globals can be removed next commit.
* wallet: Avoid showing GUI popups on RPC errorsMarcoFalke2019-10-081-2/+2
|
* Revert "gui: Generate bech32 addresses by default (take 2, fixup)"Gregory Sanders2019-09-261-3/+0
| | | | This reverts commit fa5a4cd813c2f0225dcbc05cd16ae2d1c0d13234.
* Merge #16714: gui: add prune to intro screen with smart defaultJonas Schnelli2019-09-121-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9924bce317b96ab0c57efb99330abd11b6f16b9a [gui] intro: enable pruning by default unless disk is big (Sjors Provoost) c8de347a9d6c88fe67d77aba6fcce1b7fd66791c [gui] intro: add prune preference (Sjors Provoost) 1bbc49d2078ee53488e214d00eb47462687b05c5 [gui] intro: inform caller if intro was shown (Sjors Provoost) 1957103786f97135f35ababc97efa1b481865eb0 [gui] add explicit prune setter (Sjors Provoost) 1bccf6a52d7fc08d8f605cfb2edc3277ec299c72 [node] add forceSetArg to interface (Sjors Provoost) Pull request description: This adds a checkbox to the intro screen to enable pruning from the get go. If the user has plenty of space, it's unchecked by default: <img width="671" alt="big" src="https://user-images.githubusercontent.com/10217/63641289-10339000-c6ac-11e9-98d7-caf64dff0da6.png"> If the user has insufficient space it's checked by default: <img width="897" alt="low" src="https://user-images.githubusercontent.com/10217/63641276-d4002f80-c6ab-11e9-9f5b-a53472f814ff.png"> When the user has barely enough space and is likely to need pruning in the near future, this is shown in yellow and we also check the prune box: <img width="662" alt="medium" src="https://user-images.githubusercontent.com/10217/63641294-1c1f5200-c6ac-11e9-8ecb-6b69e42b1ece.png"> The cut-off for this 10 GB above `m_assumed_blockchain_size` (`=240` in `chainparams.cpp`). If the user launches the first time with `-prune=...` then we disable the check box and display the correct size (rounded to GB): <img width="658" alt="Schermafbeelding 2019-08-24 om 20 23 14" src="https://user-images.githubusercontent.com/10217/63641351-09594d00-c6ad-11e9-94fe-fe5ed562e109.png"> The 2 GB default matches the settings default. The user can't change it in the intro screen, but can change it later. I'm tempted to increase that default to 10 GB, and then have the intro screen reduce it if space is really tight. Tips for testing: * move your existing data dir elsewhere * wipe data dir at every restart (behavior is different if it exists) * launch with `bitcoin-qt -resetguisettings -lang=en` (there's some space issues in different languages) * fake your free space by changing `intro.cpp` line 90: `freeBytesAvailable = 5000000000; // 5 GB` * try both testnet and mainnet, because settings are seperate. In particular note how step 7 in `GuiMain` switches where `QTSettings settings` points to; this had me thoroughly confused on testnet, because I was setting them too early. ACKs for top commit: jonasschnelli: Tested ACK 9924bce317b96ab0c57efb99330abd11b6f16b9a ryanofsky: utACK 9924bce317b96ab0c57efb99330abd11b6f16b9a. The changes are very logical, and implement the feature in a clean that way that doesn't add a lot of complication and shouldn't interfere with future improvements. I looked at Luke's branch too, and I think there's also a lot of great stuff there that seems fully compatible with this change. Tree-SHA512: 9523961451c53aebd347716976bc3a4a398f989dc21e9bbbd357060bd11a8f46c435f068bd421bb31ccb08e55445ef67bc347d8d19a4fb8fde9d6d3f9a3bcbb0
| * [node] add forceSetArg to interfaceSjors Provoost2019-08-241-0/+3
| |
* | Expose wallet creation to the GUI via WalletControllerAndrew Chow2019-09-051-0/+5
|/ | | | Co-authored-by: João Barbosa <[email protected]>
* gui: Generate bech32 addresses by default (take 2, fixup)MarcoFalke2019-07-301-0/+3
|
* Call node->initError instead of InitError from GUI codeRussell Yanofsky2019-07-111-0/+3
| | | | | Avoids GUI code calling a node function, and having to live in the same process as g_ui_signals and uiInterface global variables.
* [wallet] Move maxTxFee to walletJohn Newbery2019-04-181-3/+0
| | | | | | | | This commit moves the maxtxfee setting to the wallet. There is only one minor behavior change: - an error message in feebumper now refers to -maxtxfee instead of maxTxFee.
* interfaces: Add loadWallet to NodeJoão Barbosa2019-02-041-0/+5
|
* net: move BanMan to its own filesCory Fields2019-01-161-0/+1
|
* net: Break disconnecting out of Ban()Cory Fields2019-01-161-1/+4
| | | | | | | | | These are separate events which need to be carried out by separate subsystems. This also cleans up some whitespace and tabs in qt to avoid getting flagged by the linter. Current behavior is preserved.
* Merge #13216: [Qt] implements concept for different disk sizes on introJonas Schnelli2019-01-111-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9d0e52834 implements different disk sizes for different networks on intro (marcoagner) Pull request description: Fixes https://github.com/bitcoin/bitcoin/issues/13213. Mostly, I layed out the concept to open the PR for refinement and getting feedback if the approach is okay. Changes are expected. Two points: - The values for both new consts `TESTNET_BLOCK_CHAIN_SIZE` and `TESTNET_CHAIN_STATE_SIZE` is certainly not optimal; I just checked the size of my testnet3 related dirs and set them to little bit higher values. Which values should be used? - Should we do something like this to regtest? Or these "niceties" do not matter when on regtest? Thanks! Tree-SHA512: 8ae87a29fa8356b899e7a823c76cde793d9126b4ee59554d7a2a8edb088fe42a19976b34c06c2fd4a98a727e1e4971dd983f42b6093ea6caa255b45004e22bb4
| * implements different disk sizes for different networks on intromarcoagner2018-10-071-0/+6
| | | | | | | | | | | | | | - Creates m_assumed_blockchain_size and m_assumed_chain_state_size on CChainParams. - Implements access to CChainParams' m_assumed_blockchain_size and m_assumed_chain_state_size on node interface. - Implements m_assumed_blockchain_size and m_assumed_chain_state_size on qt/intro via node interface. - Updates release process document with the new CChainParam's values.
* | interfaces: Add getWalletDir and listWalletDir to NodeJoão Barbosa2018-10-181-0/+6
|/
* Give an error and exit if there are unknown parametersAndrew Chow2018-05-301-2/+2
| | | | | | | | | | | If an unknown option is given via either the command line args or the conf file, throw an error and exit Update tests for ArgsManager knowing args Ignore unknown options in the config file for bitcoin-cli Fix tests and bitcoin-cli to match actual options used
* Make gArgs aware of the argumentsAndrew Chow2018-05-091-3/+2
| | | | | gArgs knows what the available arguments are and their help. Getting the help message is moved to gArgs and HelpMessage() is removed
* -includeconf=<path> support in config handler, for including external ↵Karl-Johan Alm2018-04-261-1/+1
| | | | configuration files
* wallet: Make fee settings non-static membersMarcoFalke2018-04-231-14/+0
|
* node: Removed unused wallet-related methods from the Node interface.Thomas Snider2018-04-181-9/+0
|
* scripted-diff: Avoid `interface` keyword to fix windows gitian buildRussell Yanofsky2018-04-071-0/+259
Rename `interface` to `interfaces` Build failure reported by Chun Kuan Lee <[email protected]> https://github.com/bitcoin/bitcoin/pull/10244#issuecomment-379434756 -BEGIN VERIFY SCRIPT- git mv src/interface src/interfaces ren() { git grep -l "$1" | xargs sed -i "s,$1,$2,g"; } ren interface/ interfaces/ ren interface:: interfaces:: ren BITCOIN_INTERFACE_ BITCOIN_INTERFACES_ ren "namespace interface" "namespace interfaces" -END VERIFY SCRIPT-