aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | | | | | | | | | setban: rewrite to UniValue, allow absolute bantimeJonas Schnelli2015-06-176-25/+46
| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | rename json field "bannedtill" to "banned_until"Jonas Schnelli2015-06-171-1/+1
| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | [RPC] extend setban to allow subnetsJonas Schnelli2015-06-176-29/+119
| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | [net] remove unused return type bool from CNode::Ban()Jonas Schnelli2015-06-172-4/+2
| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | [QA] add setban/listbanned/clearbanned testsJonas Schnelli2015-06-171-0/+9
| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | [RPC] add setban/listbanned/clearbanned RPC commandsJonas Schnelli2015-06-174-0/+96
| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | [net] extend core functionallity for ban/unban/listbanJonas Schnelli2015-06-172-7/+25
| | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | fix crash on shutdown when e.g. changing -txindex and abort actionPhilip Kaufmann2015-06-162-7/+9
|/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fixes #3136 - the problem is related to Boost path and a static initialized internal pointer - using a std::string in CDBEnv::EnvShutdown() prevents the problem - this removes the boost::filesystem::path path field from CDBEnv
* | | | | | | | | | | | | | | | | | New RPC command disconnectnodeAlex van der Peet2015-06-164-0/+25
| | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | Merge pull request #6283Wladimir J. van der Laan2015-06-162-6/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 26a639e remove using namespace std from addrman.cpp (Philip Kaufmann) 40c592a make CAddrMan::size() return the correct type of size_t (Philip Kaufmann)
| * | | | | | | | | | | | | | | | | | remove using namespace std from addrman.cppPhilip Kaufmann2015-06-151-5/+3
| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | make CAddrMan::size() return the correct type of size_tPhilip Kaufmann2015-06-151-1/+1
| | |/ / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | |
* / | | | | | | | | | | | | | | | | Fix scheduler build with some boost versions.Cory Fields2015-06-151-1/+3
|/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some boost versions have a conflicting overload of wait_until that returns void. Explicitly use a template here to avoid hitting that overload.
* | | | | | | | | | | | | | | | | Merge pull request #6274Wladimir J. van der Laan2015-06-153-1/+8
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 02a6702 Add option `-alerts` to opt out of alert system (Wladimir J. van der Laan)
| * | | | | | | | | | | | | | | | | Add option `-alerts` to opt out of alert systemWladimir J. van der Laan2015-06-153-1/+8
| |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it possible to opt-out of the centralized alert system by providing an option `-noalerts` or `-alerts=0`. The default remains unchanged. This is a gentler form of #6260, in which I went a bit overboard by removing the alert system completely. I intend to add this to the GUI options in another pull after this.
* | | | | | | | | | | | | | | | | Merge pull request #6257Wladimir J. van der Laan2015-06-152-0/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ef2a3de Add paytxfee to getwalletinfo, warnings to getnetworkinfo (Stephen)
| * | | | | | | | | | | | | | | | | Add paytxfee to getwalletinfo, warnings to getnetworkinfoStephen2015-06-112-0/+4
| | |/ / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Fix getbalance *Tom Harding2015-06-121-2/+2
| |_|_|_|_|_|_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chance "getbalance *" not to use IsTrusted. The method and result now match the "getbalance <specific-account>" behavior. In particular, "getbalance * 0" now works. Also fixed a comment -- GetGalance has required 1 confirmation for many years, and the default "getbalance *" behavior matches that.
* | | | | | | | | | | | | | | | Merge pull request #6209Wladimir J. van der Laan2015-06-124-49/+132
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e059726 [Qt] deselect peer when switching away from peers tab in RPC console (Philip Kaufmann) 7211ada [Qt] replace Boost foreach with Qt version peertablemodel.cpp (Philip Kaufmann) 1b0db7b [Qt] extend rpc console peers tab (Philip Kaufmann)
| * | | | | | | | | | | | | | | | [Qt] deselect peer when switching away from peers tab in RPC consolePhilip Kaufmann2015-06-112-16/+20
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | [Qt] replace Boost foreach with Qt version peertablemodel.cppPhilip Kaufmann2015-06-111-2/+2
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | [Qt] extend rpc console peers tabPhilip Kaufmann2015-06-113-31/+110
| | |_|/ / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add node id, ping wait, whitelisted and common height - rephrase some labels to make them easier to understand for users
* | | | | | | | | | | | | | | | Merge pull request #6256Wladimir J. van der Laan2015-06-124-14/+16
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 65b9454 Use best header chain timestamps to detect partitioning (Gavin Andresen)
| * | | | | | | | | | | | | | | Use best header chain timestamps to detect partitioningGavin Andresen2015-06-084-14/+16
| | |/ / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The partition checking code was using chainActive timestamps to detect partitioning; with headers-first syncing, it should use (and with this pull request, does use) pIndexBestHeader timestamps. Fixes issue #6251
* | | | | | | | | | | | | | | Merge pull request #6266Wladimir J. van der Laan2015-06-122-11/+10
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0cc7b23 Fix univalue handling of \u0000 characters. (Daniel Kraft)
| * | | | | | | | | | | | | | | Fix univalue handling of \u0000 characters.Daniel Kraft2015-06-112-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Univalue's parsing of \u escape sequences did not handle NUL characters correctly. They were, effectively, dropped. The extended test-case fails with the old code, and is fixed with this patch.
* | | | | | | | | | | | | | | | Merge pull request #6221Wladimir J. van der Laan2015-06-112-19/+38
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c257a8c Prune: Support noncontiguous block files (Adam Weiss)
| * | | | | | | | | | | | | | | Prune: Support noncontiguous block filesAdam Weiss2015-06-032-19/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some corner cases, it may be possible for recent blocks to end up in the same block file as much older blocks. Previously, the pruning code would stop looking for files to remove upon first encountering a file containing a block that cannot be pruned, now it will keep looking for candidate files until the target is met and all other criteria are satisfied. This can result in a noncontiguous set of block files (by number) on disk, which is fine except for during some reindex corner cases, so make reindex preparation smarter such that we keep the data we can actually use and throw away the rest. This allows pruning to work correctly while downloading any blocks needed during the reindex.
* | | | | | | | | | | | | | | | Merge pull request #6264Wladimir J. van der Laan2015-06-111-25/+26
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / / / / / |/| | | | | | | | / / / / / / / | | |_|_|_|_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | 9b5659d Remove translation for -help-debug options (Wladimir J. van der Laan)
| * | | | | | | | | | | | | | Remove translation for -help-debug optionsWladimir J. van der Laan2015-06-101-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not translate -help-debug options, Many technical terms, and only a very small audience, so is unnecessary stress to translators. Brings the code up to date with translation string policy in `doc/translation_strings_policy.md`. Also remove no-longer-relevant "In this mode -genproclimit controls how many blocks are generated immediately." (as of #5957) from regtest help.
* | | | | | | | | | | | | | | Merge pull request #6061Wladimir J. van der Laan2015-06-102-9/+28
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eb83719 Consensus: Refactor: Separate Consensus::CheckTxInputs and GetSpendHeight in CheckInputs (Jorge Timón)
| * | | | | | | | | | | | | | | Consensus: Refactor: Separate Consensus::CheckTxInputs and GetSpendHeight in ↵Jorge Timón2015-06-102-9/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CheckInputs
* | | | | | | | | | | | | | | | Consensus: Separate CheckIndexAgainstCheckpoint() from ↵Jorge Timón2015-06-101-16/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ContextualCheckBlockHeader
* | | | | | | | | | | | | | | | Merge pull request #6057Wladimir J. van der Laan2015-06-102-6/+24
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7e6569e [squashme] improve/corrects prune mode detection test for required wallet rescans (Jonas Schnelli) 7a12119 [RPC] disable import functions in pruned mode (Jonas Schnelli) 3201035 [autoprune] allow wallet in pruned mode (Jonas Schnelli)
| * | | | | | | | | | | | | | | | [squashme] improve/corrects prune mode detection test for required wallet ↵Jonas Schnelli2015-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rescans
| * | | | | | | | | | | | | | | | [RPC] disable import functions in pruned modeJonas Schnelli2015-05-281-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | import functions could lead to a rescan beyond prune level
| * | | | | | | | | | | | | | | | [autoprune] allow wallet in pruned modeJonas Schnelli2015-05-281-6/+15
| | |_|_|_|_|_|_|_|_|_|/ / / / / | |/| | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Merge pull request #5985Wladimir J. van der Laan2015-06-101-3/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 14d4eef Fix removing of orphan transactions (Alex Morcos)
| * | | | | | | | | | | | | | | Fix removing of orphan transactionsAlex Morcos2015-05-121-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't want to erase orphans that still have missing inputs, they should still be tracked as orphans. Also, the transaction thats being accepted can't be an orphan otherwise it would have previously been accepted, so doesn't need to be added to the erase queue.
* | | | | | | | | | | | | | | | Merge pull request #6213Wladimir J. van der Laan2015-06-101-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eebd4cc [init] add -blockversion help and extend -upnp help (Philip Kaufmann)
| * | | | | | | | | | | | | | | | [init] add -blockversion help and extend -upnp helpPhilip Kaufmann2015-06-011-3/+3
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Merge pull request #5927Wladimir J. van der Laan2015-06-106-38/+15
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dce8360 Reduce checkpoints' effect on consensus. (Pieter Wuille)
| * | | | | | | | | | | | | | | | | Reduce checkpoints' effect on consensus.Pieter Wuille2015-05-136-38/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of only checking height to decide whether to disable script checks, actually check whether a block is an ancestor of a checkpoint, up to which headers have been validated. This means that we don't have to prevent accepting a side branch anymore - it will be safe, just less fast to do. We still need to prevent being fed a multitude of low-difficulty headers filling up our memory. The mechanism for that is unchanged for now: once a checkpoint is reached with headers, no headers chain branching off before that point are allowed anymore.
* | | | | | | | | | | | | | | | | | Merge pull request #6222Wladimir J. van der Laan2015-06-102-0/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | efd4444 Explicitly set tx.nVersion for the genesis block and mining tests (Mark Friedenbach)
| * | | | | | | | | | | | | | | | | | Explicitly set tx.nVersion for the genesis block and mining testsMark Friedenbach2015-06-022-0/+2
| | |_|_|_|_|/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If/when CTransaction::CURRENT_VERSION is incremented, this will break CChainParams and the miner tests. This fix sets the transaction version explicitly where we depend on the hash value (genesis block, proof of work checks).
* | | | | | | | | | | | | | | | | | Merge pull request #6239Wladimir J. van der Laan2015-06-096-43/+45
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7d8ffac Changes necessary now that zero values accepted in AmountFromValue (Wladimir J. van der Laan) a04bdef Get rid of fPlus argument to FormatMoney (Wladimir J. van der Laan) 4b4b9a8 Don't go through double in AmountFromValue and ValueFromAmount (Wladimir J. van der Laan)
| * | | | | | | | | | | | | | | | | | Changes necessary now that zero values accepted in AmountFromValueWladimir J. van der Laan2015-06-062-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add an accept test for zero amounts, and a reject test for negative amounts - Remove ugly hack in `settxfee` that is no longer necessary - Do explicit zero checks in wallet RPC functions - Don't add a check for zero amounts in `createrawtransaction` - this could be seen as a feature
| * | | | | | | | | | | | | | | | | | Get rid of fPlus argument to FormatMoneyWladimir J. van der Laan2015-06-064-28/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's never used with any other value than false, the default.
| * | | | | | | | | | | | | | | | | | Don't go through double in AmountFromValue and ValueFromAmountWladimir J. van der Laan2015-06-061-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My prime gripe with JSON spirit was that monetary values still had to be converted from and to floating point which can cause deviations (see #3759 and https://bitcoin.stackexchange.com/questions/22716/bitcoind-sendfrom-round-amount-error). As UniValue stores internal values as strings, this is no longer necessary. This avoids risky double-to-integer and integer-to-double conversions completely, and results in more elegant code to boot.
* | | | | | | | | | | | | | | | | | | Merge pull request #6246Wladimir J. van der Laan2015-06-091-0/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0640a5e Add an alternate location of endian.h header (Andriy Voskoboinyk)