aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | | Merge pull request #4504Wladimir J. van der Laan2014-07-175-47/+45
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 43f510d Convert closesocket 'compat wrapper' to function in netbase (Wladimir J. van der Laan)
| * | | | | | | | | | | | | Convert closesocket 'compat wrapper' to function in netbaseWladimir J. van der Laan2014-07-175-47/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simpler alternative to #4348. The current setup with closesocket() is strange. It poses as a compatibility wrapper but adds functionality. Rename it and make it a documented utility function in netbase. Code movement only, zero effect on the functionality.
* | | | | | | | | | | | | | Merge pull request #4508Pieter Wuille2014-07-172-129/+160
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | b069750 Break up CAddrMan's IMPLEMENT_SERIALIZE (Pieter Wuille)
| * | | | | | | | | | | | | Break up CAddrMan's IMPLEMENT_SERIALIZEPieter Wuille2014-07-162-129/+160
| | |_|_|_|_|_|_|_|/ / / / | |/| | | | | | | | | | |
* | | | | | | | | | | | | fix help message for RPC getpeerinfoPhilip Kaufmann2014-07-171-2/+1
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #4533Wladimir J. van der Laan2014-07-171-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 43005cf Fix semantic typo in state.CorruptionPossible check (kazcw)
| * | | | | | | | | | | | | Fix semantic typo in state.CorruptionPossible checkkazcw2014-07-141-1/+1
| | |_|_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | state.Invalid() is always false, check should be IsInvalid() Broken since 942b33a
* | | | | | | | | | | | | Merge pull request #4534Wladimir J. van der Laan2014-07-174-13/+30
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 33357b2 qt: Start core thread only when needed (Wladimir J. van der Laan) c715ff5 ui: Replace some LogPrintfs with qDebug() (Wladimir J. van der Laan) 96ff9d6 Can't log to debug log before chain params initialized (Wladimir J. van der Laan)
| * | | | | | | | | | | | | qt: Start core thread only when neededWladimir J. van der Laan2014-07-151-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Start the core thread only when needed for initialization or shutdown. Avoids a bit of overhead, and also avoids spamming two log messages before logging is properly initialized.
| * | | | | | | | | | | | | ui: Replace some LogPrintfs with qDebug()Wladimir J. van der Laan2014-07-151-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are relatively unimportant messages, so don't need to be logged without -debug=ui.
| * | | | | | | | | | | | | Can't log to debug log before chain params initializedWladimir J. van der Laan2014-07-153-1/+11
| | |_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a function `AreBaseParamsConfigured` and use this to check before writing to the debug log. This avoids assertions when the application happens to log too early, which happens in the GUI. Messages logged before the base parameters are configured can be shown using `-printtoconsole`.
* | | | | | | | | | | | | Make sure CAutoFile for fees estimate goes out of scopePieter Wuille2014-07-161-6/+8
| |_|/ / / / / / / / / / |/| | | | | | | | | | |
* | | | | | | | | | | | Add peerid to getpeerinfo to allow correlation with the logs.Gregory Maxwell2014-07-151-0/+2
|/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This seems to have been missed in 3764.
* | | | | | | | | | | Merge pull request #4505Wladimir J. van der Laan2014-07-152-2/+7
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d4d3fbd Do not flush the cache after every block outside of IBD (Pieter Wuille)
| * | | | | | | | | | | Do not flush the cache after every block outside of IBDPieter Wuille2014-07-112-2/+7
| | | | | | | | | | | |
* | | | | | | | | | | | Use unordered_map for CCoinsViewCache with salted hashPieter Wuille2014-07-144-4/+66
| |/ / / / / / / / / / |/| | | | | | | | | |
* | | | | | | | | | | Add option to disable 077 umask (create new files with system default umask)Rune K. Svendsen2014-07-141-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The option is only effective for either wallet-less builds or if -disablewallet is specified as well. Rebased-By: Wladimir J. van der Laan <[email protected]> Rebased-From: 34d5fc0 4e1a196 bd4307b d53a33b 7e09b36 Github-Pull: #4286
* | | | | | | | | | | Fixed error in 'getbalance' when using watchonly addresses.JaSK2014-07-141-1/+1
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #4400Wladimir J. van der Laan2014-07-1421-198/+233
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4eedf4f make RandAddSeed() use OPENSSL_cleanse() (Philip Kaufmann) 6354935 move rand functions from util to new random.h/.cpp (Philip Kaufmann) 001a53d add GetRandBytes() as wrapper for RAND_bytes() (Philip Kaufmann)
| * | | | | | | | | | | make RandAddSeed() use OPENSSL_cleanse()Philip Kaufmann2014-07-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - removes the cstring include and is also used in RandAddSeedPerfmon()
| * | | | | | | | | | | move rand functions from util to new random.h/.cppPhilip Kaufmann2014-07-0916-185/+220
| | | | | | | | | | | |
| * | | | | | | | | | | add GetRandBytes() as wrapper for RAND_bytes()Philip Kaufmann2014-07-098-30/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add a small wrapper in util around RAND_bytes() and replace with GetRandBytes() in the code to log errors from calling RAND_bytes() - remove OpenSSL header rand.h where no longer needed
* | | | | | | | | | | | Merge pull request #4524Wladimir J. van der Laan2014-07-143-9/+5
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 49d5712 qt: Ignore showNormalIfMinimized in initialization or shutdown (Wladimir J. van der Laan)
| * | | | | | | | | | | | qt: Ignore showNormalIfMinimized in initialization or shutdownWladimir J. van der Laan2014-07-143-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also get rid of ui_interface flag NOSHOWGUI. It's up to the GUI to decide this. Fixes #4360.
* | | | | | | | | | | | | Merge pull request #4513Wladimir J. van der Laan2014-07-141-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6265ecc Clarify that redeemScript is often optional (Zak Wilcox)
| * | | | | | | | | | | | | Clarify that redeemScript is often optionalZak Wilcox2014-07-121-1/+1
| | |_|/ / / / / / / / / / | |/| | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #4518Wladimir J. van der Laan2014-07-143-9/+33
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | 76fd7b8 [Qt] Fix segfault when launched with -disablewallet (Cozz Lovan)
| * | | | | | | | | | | | [Qt] Fix segfault when launched with -disablewalletCozz Lovan2014-07-133-9/+33
| | |_|_|_|_|_|_|/ / / / | |/| | | | | | | | | |
* | | | | | | | | | | | Merge pull request #4378Wladimir J. van der Laan2014-07-145-27/+98
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dc942e6 Introduce whitelisted peers. (Pieter Wuille)
| * | | | | | | | | | | | Introduce whitelisted peers.Pieter Wuille2014-07-095-27/+98
| | |_|_|_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a -whitelist option to specify subnet ranges from which peers that connect are whitelisted. In addition, there is a -whitebind option which works like -bind, except peers connecting to it are also whitelisted (allowing a separate listen port for trusted connections). Being whitelisted has two effects (for now): * They are immune to DoS disconnection/banning. * Transactions they broadcast (which are valid) are always relayed, even if they were already in the mempool. This means that a node can function as a gateway for a local network, and that rebroadcasts from the local network will work as expected. Whitelisting replaces the magic exemption localhost had for DoS disconnection (local addresses are still never banned, though), which implied hidden service connects (from a localhost Tor node) were incorrectly immune to DoS disconnection as well. This old behaviour is removed for that reason, but can be restored using -whitelist=127.0.0.1 or -whitelist=::1 can be specified. -whitebind is safer to use in case non-trusted localhost connections are expected (like hidden services).
* | | | | | | | | | | | Merge pull request #4520Wladimir J. van der Laan2014-07-141-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 39cc492 Fix Watchonly: cs_main lock not held (Cozz Lovan)
| * | | | | | | | | | | | Fix Watchonly: cs_main lock not heldCozz Lovan2014-07-131-3/+3
| | |/ / / / / / / / / / | |/| | | | | | | | | |
* | | | | | | | | | | | Merge pull request #4503Wladimir J. van der Laan2014-07-146-1/+82
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b45a6e8 Add test for getblocktemplate longpolling (Wladimir J. van der Laan) ff6a7af getblocktemplate: longpolling support (Luke Dashjr)
| * | | | | | | | | | | | getblocktemplate: longpolling supportLuke Dashjr2014-07-116-1/+82
| | | | | | | | | | | | |
* | | | | | | | | | | | | [Qt] Fix No such slot UnitDisplayStatusBarControl::onDisplayUnitsClickedCozz Lovan2014-07-131-5/+1
| |/ / / / / / / / / / / |/| | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #4511Pieter Wuille2014-07-131-1/+3
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a7e1d50 In -? output: -keypool, -gen, -genproclimit depend on ENABLE_WALLET (Zak Wilcox)
| * | | | | | | | | | | | In -? output: -keypool, -gen, -genproclimit depend on ENABLE_WALLETZak Wilcox2014-07-121-1/+3
| | |_|/ / / / / / / / / | |/| | | | | | | | | |
* | | | | | | | | | | | Merge pull request #4177Pieter Wuille2014-07-121-0/+5
|\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | cd01a5e Enable paranoid corruption checks in LevelDB >= 1.16 (Pieter Wuille)
| * | | | | | | | | | | Enable paranoid corruption checks in LevelDB >= 1.16Pieter Wuille2014-05-121-0/+5
| | | | | | | | | | | |
* | | | | | | | | | | | `getrawchangeaddress` should fail when keypool exhaustedWladimir J. van der Laan2014-07-113-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An user on IRC reported an issue where `getrawchangeaddress` keeps returning a single address when the keypool is exhausted. In my opinion this is strange behaviour. - Change CReserveKey to fail when running out of keys in the keypool. - Make `getrawchangeaddress` return RPC_WALLET_KEYPOOL_RAN_OUT when unable to create an address. - Add a Python RPC test for checking the keypool behaviour in combination with encrypted wallets.
* | | | | | | | | | | | Merge pull request #4507Wladimir J. van der Laan2014-07-111-19/+19
|\ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | b60be6b Clean up RPCs that are disabled in safe-mode. (Gregory Maxwell)
| * | | | | | | | | | | Clean up RPCs that are disabled in safe-mode.Gregory Maxwell2014-07-101-19/+19
| | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes some inconsistencies in what worked and didn't work in safemode. Now only RPCs involved in getting balances or sending funds are disabled. Previously you could mine but not submit blocks— but we may need more blocks to resolve a fork that triggered safe mode in the first place, and the non-submission was not reliable since some miners submit blocks via multiple means. There were also a number of random commands disabled that had nothing to do with the blockchain like verifymessage. Thanks to earlz for pointing out that there were some moderately cheap ways to maliciously trigger safe mode, which brought attention to the fact that safemode wasn't used in a very intelligent way.
* / | | | | | | | | | Avoid a segfault on getblock if it can't read a block from disk.Ruben Dario Ponticelli2014-07-101-1/+3
|/ / / / / / / / / /
* | | | | | | | | | Merge pull request #4428Wladimir J. van der Laan2014-07-091-10/+16
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | 00d1980 init.cpp: log fee estimates filename on error (Philip Kaufmann)
| * | | | | | | | | init.cpp: log fee estimates filename on errorPhilip Kaufmann2014-07-091-10/+16
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - small changes to Shutdown(), buffer __func__, which is now used in all LogPrintf() calls and format for better readability - order using namespace alpabetically
* | | | | | | | | Merge pull request #4340Wladimir J. van der Laan2014-07-091-0/+1
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | | | | | | | | | | 33cc907 Add DNS seed of open-nodes.org (kevin)
| * | | | | | | | Add DNS seed of open-nodes.orgkevin2014-06-151-0/+1
| | | | | | | | |
* | | | | | | | | Merge pull request #4275Wladimir J. van der Laan2014-07-091-1/+5
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 509f926 Payment request parsing on startup now only changes network if a valid network name is specified. (Ross Nicoll)
| * | | | | | | | | Payment request parsing on startup now only changes network if a valid ↵Ross Nicoll2014-07-081-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | network name is specified.
* | | | | | | | | | build: fix win32 static linking after libtool mergeCory Fields2014-07-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Libtool eats the -static flag rather than passing it along to the compiler. To get the same effect, -all-static is used instead.