aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Refactor: Remove using namespace <xxx> from util*Karl-Johan Alm2017-03-084-52/+46
|
* Refactor: Remove using namespace <xxx> from wallet/Karl-Johan Alm2017-03-086-316/+303
|
* Merge #9936: [trivial] Fix three typos introduced into walletdb.h in commit ↵MarcoFalke2017-03-081-2/+2
|\ | | | | | | | | | | | | | | 7184e25 fdab309 [trivial] Fix typos introduced in 7184e25c80aa8b1629a700bb7a7e290ad0bb2792 (practicalswift) Tree-SHA512: 091666f996267fc5d9f911e6ff25051df5c198851a9c2a6cae73692ffacc64f4275932260487aa48a224ca7f80c58f79933065c72d42aeccae540293c67bcee9
| * [trivial] Fix typos introduced in 7184e25c80aa8b1629a700bb7a7e290ad0bb2792practicalswift2017-03-071-2/+2
| |
* | Improve logging in bctest.py if there is a formatting mismatchJohn Newbery2017-03-071-3/+9
| |
* | Merge #9548: Remove min reasonable feeWladimir J. van der Laan2017-03-079-22/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | ad82cb0 Remove unnecessary min fee argument in CTxMemPool constructor (Alex Morcos) 2a7b56c CBlockPolicyEstimator now uses hard coded minimum bucket feerate (Alex Morcos) ac9d3d2 Change fee estimation bucket limit variable names (Alex Morcos) Tree-SHA512: 6e3bc7df3497ed60c7620845d222063e33a0238020f5c3316e61e0eff758078588ea8dd51196ceb59aa561ba106f8cdae62cebe521adb3247108bb49f15252d6
| * | Remove unnecessary min fee argument in CTxMemPool constructorAlex Morcos2017-01-177-13/+13
| | |
| * | CBlockPolicyEstimator now uses hard coded minimum bucket feerateAlex Morcos2017-01-173-5/+10
| | |
| * | Change fee estimation bucket limit variable namesAlex Morcos2017-01-172-6/+6
| | |
* | | Merge #9602: Remove coin age priority and free transactions - implementationWladimir J. van der Laan2017-03-0730-592/+88
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b421e6d Update example bitcoin.conf (Alex Morcos) 7d4e950 Allow setting minrelaytxfee to 0 (Alex Morcos) 359e8a0 [cleanup] Remove coin age priority completely. (Alex Morcos) f9b9371 [rpc] Remove priorityDelta from prioritisetransaction (Alex Morcos) 49be7e1 [rpc] Remove priority information from mempool RPC calls (Alex Morcos) 0315888 [test] Remove priority from tests (Alex Morcos) f838005 No longer allow "free" transactions (Alex Morcos) ad727f4 [rpc] sendrawtransaction no longer bypasses minRelayTxFee (Alex Morcos) fe282ac [cleanup] Remove estimatePriority and estimateSmartPriority (Alex Morcos) 400b151 [debug] Change -printpriority option (Alex Morcos) 272b25a [mining] Remove -blockprioritysize. (Alex Morcos) 12839cd [rpc] Remove estimatepriority and estimatesmartpriority. (Alex Morcos) ddf58c7 wallet: Remove sendfree (MarcoFalke) Tree-SHA512: a9a4499405923ce794ef18f9e334dbbd59dfc73a3dc2df6f85cc9c62af6f353ec2eed9c2d5e58e904f918d0d7ab738f403dd4939d9bc2276136864fe63710782
| * | | Allow setting minrelaytxfee to 0Alex Morcos2017-03-031-2/+3
| | | | | | | | | | | | | | | | Setting minrelaytxfee to 0 will allow all transactions regardless of fee to enter your mempool until it reaches its size limit. However now that mempool limiting is governed by a separate incrementalrelay fee, it is an unnecessary restriction to prevent a minrelaytxfee of 0.
| * | | [cleanup] Remove coin age priority completely.Alex Morcos2017-03-0311-97/+11
| | | | | | | | | | | | | | | | Remove GetPriority and ComputePriority. Remove internal machinery for tracking priority in CTxMemPoolEntry.
| * | | [rpc] Remove priorityDelta from prioritisetransactionAlex Morcos2017-03-035-37/+29
| | | | | | | | | | | | | | | | This a breaking API change to the prioritisetransaction RPC call which previously required exactly three arguments and now requires exactly two (hash and feeDelta). The function prioritiseTransaction is also updated.
| * | | [rpc] Remove priority information from mempool RPC callsAlex Morcos2017-03-031-4/+0
| | | | | | | | | | | | | | | | "startingpriority" and "currentpriority" are no longer returned in the JSON information about a mempool entry. This affects getmempoolancestors, getmempooldescendants, getmempooolentry, and getrawmempool.
| * | | [test] Remove priority from testsAlex Morcos2017-03-035-42/+33
| | | | | | | | | | | | | | | | Remove all coin age priority functionality from unit tests and RPC tests.
| * | | No longer allow "free" transactionsAlex Morcos2017-03-038-50/+9
| | | | | | | | | | | | | | | | | | | | | | | | Remove -limitfreerelay and always enforce minRelayTxFee in the mempool (except from disconnected blocks) Remove -relaypriority, the option was only used for the ability to allow free transactions to be relayed regardless of their priority. Both notions no longer apply.
| * | | [rpc] sendrawtransaction no longer bypasses minRelayTxFeeAlex Morcos2017-02-271-1/+1
| | | | | | | | | | | | | | | | The prioritisetransaction API can always be used if a transaction needs to be submitted that bypasses minRelayTxFee.
| * | | [cleanup] Remove estimatePriority and estimateSmartPriorityAlex Morcos2017-02-275-54/+0
| | | | | | | | | | | | | | | | Unused everywhere now except one test.
| * | | [debug] Change -printpriority optionAlex Morcos2017-02-272-6/+2
| | | | | | | | | | | | | | | | -printpriority output is now changed to only show the fee rate and hash of transactions included in a block by the mining code.
| * | | [mining] Remove -blockprioritysize.Alex Morcos2017-02-276-180/+2
| | | | | | | | | | | | | | | | Remove ability of mining code to fill part of a block with transactions sorted by coin age.
| * | | [rpc] Remove estimatepriority and estimatesmartpriority.Alex Morcos2017-02-272-67/+0
| | | | | | | | | | | | | | | | The RPC calls were already deprecated.
| * | | wallet: Remove sendfreeMarcoFalke2017-02-273-56/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the option from the wallet to not pay a fee on "small" transactions which spend "old" inputs. This code is no longer worth keeping around, as almost all miners prefer not to include transactions which pay no fee at all.
* | | | Merge #9369: Factor out CWallet::nTimeSmart computation into a method.Wladimir J. van der Laan2017-03-073-45/+129
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 630fc54 Clean up braces in CWallet::ComputeTimeSmart (Russell Yanofsky) 6c996c2 Add documentation describing CWallet::nTimeSmart. (Russell Yanofsky) 1f98abe Factor out CWallet::nTimeSmart computation into a method. (Russell Yanofsky) c6b82d1 Add tests for CWalletTx::nTimeSmart (Russell Yanofsky) Tree-SHA512: 457a30251e572cf20dac0198af1a94128d269b1e0ce6605a213d56fc14d85c84a0a494e3dcbb18c201c4f39e6f7b000bd9cb6f283930d8452e4bb93ba406f8d4
| * | | | Clean up braces in CWallet::ComputeTimeSmartRussell Yanofsky2017-03-031-32/+27
| | | | |
| * | | | Add documentation describing CWallet::nTimeSmart.Russell Yanofsky2017-03-032-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | Most of the text comes from the 2012 Luke Dashjr <[email protected]> c3f95ef commit message.
| * | | | Factor out CWallet::nTimeSmart computation into a method.Russell Yanofsky2017-03-032-45/+51
| | | | | | | | | | | | | | | | | | | | | | | | | No change in behavior, this change just pulls some code out of CWallet::AddToWallet that was making it very long into a separate method.
| * | | | Add tests for CWalletTx::nTimeSmartRussell Yanofsky2017-03-031-0/+53
| | | | |
* | | | | Merge #9912: Optimize GetWitnessHash() for non-segwit transactionsWladimir J. van der Laan2017-03-071-0/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 02c57b5 Optimize GetWitnessHash() for non-segwit transactions (Suhas Daftuar) Tree-SHA512: 405d07c11930f3432ae25b11232466a30ba2339be98e0fb5149934d792e014f504fedbe62b9c8e5febbbdad459bd1573ea896e527b9aa591926bbc774b895e6a
| * | | | | Optimize GetWitnessHash() for non-segwit transactionsSuhas Daftuar2017-03-031-0/+3
| | | | | |
* | | | | | Merge #9605: Use CScheduler for wallet flushing, remove ThreadFlushWalletDBWladimir J. van der Laan2017-03-078-46/+42
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0235be1 Rename FlushWalletDB -> CompactWalletDB, add function description (Matt Corallo) 735d9b5 Use CScheduler for wallet flushing, remove ThreadFlushWalletDB (Matt Corallo) 73296f5 CScheduler boost->std::function, use millisecs for times, not secs (Matt Corallo) Tree-SHA512: c04f97beab65706c444c126be229d02887df9b0972d8fb15ca1f779ef0e628cf7ecef2bf533c650d9b44645b63e01de22f17266a05907e778938d64cc6e19de6
| * | | | | Rename FlushWalletDB -> CompactWalletDB, add function descriptionMatt Corallo2017-03-063-3/+4
| | | | | |
| * | | | | Use CScheduler for wallet flushing, remove ThreadFlushWalletDBMatt Corallo2017-03-065-34/+30
| | | | | |
| * | | | | CScheduler boost->std::function, use millisecs for times, not secsMatt Corallo2017-03-063-12/+11
| | | | | |
* | | | | | Merge #9555: [test] Avoid reading a potentially uninitialized variable in ↵MarcoFalke2017-03-071-1/+3
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tx_invalid-test (transaction_tests.cpp) 8455e36 [test] Avoid reading a potentially uninitialized variable in tx_invalid-test (practicalswift) Tree-SHA512: 1064cdd5c9e4612a05397a5880535d93dbb18dec4897b4bbda9e6ad78d30f4c72303e4d23159398f1b33545ff5819e739e374d7cde757e402b26c355268a2319
| * | | | | [test] Avoid reading a potentially uninitialized variable in tx_invalid-testpracticalswift2017-01-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit the err variable was not guaranteed to be set before the check ... BOOST_CHECK_MESSAGE(err != SCRIPT_ERR_OK, ScriptErrorString(err));
* | | | | | Merge #9906: Disallow copy constructor CReserveKeysWladimir J. van der Laan2017-03-061-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 188f89c Disallow copy of CReserveKeys (Gregory Sanders) Tree-SHA512: e55ce10bf7f2dc91de9797e60ab7767fb51f25255995d62ddf358c52b7aaa23c26fbfb522e1610ff950b86804ddbc38dc0d7708bfab2c4d33ad99a275d8c77db
| * | | | | | Disallow copy of CReserveKeysGregory Sanders2017-03-061-0/+4
| | | | | | |
* | | | | | | [Wallet] refactor CWallet/CWalletDB/CDBJonas Schnelli2017-03-065-152/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Try to hide CDB/bitdb behinde CWalletDB. Prepare for full wallet database abstraction.
* | | | | | | Merge #9333: Document CWalletTx::mapValue entries and remove erase of ↵Wladimir J. van der Laan2017-03-061-1/+25
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nonexistent "version" entry. 87ed396 [trivial] Add comment documenting bumpfee mapValues (Russell Yanofsky) a1fe944 Remove reference to nonexistent "version" wallet transaction mapvalue field (Russell Yanofsky) 654e044 [trivial] Add comment documenting CWalletTx::mapValue (Russell Yanofsky) Tree-SHA512: 1fd1860e345c59b13634db2007fff4ba30aaf1f177fdd765f47bf9257fac117cdcd5d491424416da304c08e85effbb27f3424f072f7c9587ef39cb98531b932a
| * | | | | | | [trivial] Add comment documenting bumpfee mapValuesRussell Yanofsky2017-01-251-0/+4
| | | | | | | |
| * | | | | | | Remove reference to nonexistent "version" wallet transaction mapvalue fieldRussell Yanofsky2016-12-141-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change removes a mapValue.erase("version") statement which deletes a mapValue entry that never existed. The statement was mistakenly added in commit 865c3a23832e36d50cb873d38c976032b027b5d3 in 2010 and is harmless but confusing.
| * | | | | | | [trivial] Add comment documenting CWalletTx::mapValueRussell Yanofsky2016-12-121-0/+25
| | | | | | | |
* | | | | | | | Merge #9547: bench: Assert that division by zero is unreachableWladimir J. van der Laan2017-03-061-0/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | db07f91 Assert that what might look like a possible division by zero is actually unreachable (practicalswift) Tree-SHA512: f1652eb37196a5b72f356503a1fbb44fb98aa8a94954ad1765f86d81ebf41a2337d4eb58c4f19937fda3752f5d2d642756e44afdbd438015b87ac20801246bff
| * | | | | | | | Assert that what might look like a possible division by zero is actually ↵practicalswift2017-02-021-0/+2
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | unreachable
* | | | | | | | Merge #9908: Define 7200 second timestamp window constantWladimir J. van der Laan2017-03-066-8/+22
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e57a1fd Define 7200 second timestamp window constant (Russell Yanofsky) Tree-SHA512: 449d20e4fd23905cd96be36f717c55a0a2360aba1002aaf55a3699cce4a41f6e94acc2fbe511a93c5cbe8f8e68386995a76cad67620ebb66ba9283e6080ab567
| * | | | | | | | Define 7200 second timestamp window constantRussell Yanofsky2017-03-036-8/+22
| | | | | | | | |
* | | | | | | | | Merge #9576: [wallet] Remove redundant initializationWladimir J. van der Laan2017-03-061-6/+2
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 343ba8f [wallet] Remove redundant initialization (practicalswift) Tree-SHA512: 54b94d7703b1735cb1ae0bd7eba61ca9d2f18e20b70e46c94aa3b0653495dce4fdea00cf953ec08215b96b5792eabb8b38c3f9b3cd36e52b82fcb2f1fd8a3540
| * | | | | | | | [wallet] Remove redundant initializationpracticalswift2017-02-281-6/+2
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit pindexRescan was initialized to a chainActive.Tip(). However, the value of pindexRescan set at time of initialization was never read before pindexRescan was being set to either chainActive.Genesis() (case 1), FindForkInGlobalIndex(chainActive, locator) (case 2) or chainActive.Genesis() (case 3). Thus, the initialization was redundant. This commit a.) removes the redundant initialization and b.) simplifies this logic so that pindexRescan is initialized to chainActive.Genesis() (case 1 and 3), and set to FindForkInGlobalIndex(chainActive, locator) (case 2) as needed.
* | | | | | | | Merge #9910: Docs: correct and elaborate -rpcbind docWladimir J. van der Laan2017-03-031-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e5b449c Docs: correct and elaborate -rpcbind doc (Ian Kelling) Tree-SHA512: e1cdaa32f7248f304d463e3f37d7d5da23ee0e506bd453420b87f4cc9c704cc30214e41c9266294890d65f2ee270f9355f38b542e8c01452637bdbba8273c755
| * | | | | | | | Docs: correct and elaborate -rpcbind docIan Kelling2017-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default was incorrect unless -rpcallowip was also specified.