aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | | Move ui_interface to bitcoin_server.aWladimir J. van der Laan2014-07-075-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no need for it in the utility libraries or tools. Put it in init.cpp, and in the tests separately (as they can't link init).
* | | | | | | | | | | | | qt: Pick translation messages only from necessary filesWladimir J. van der Laan2014-07-072-35/+43
| |/ / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Utility libraries (common, util) as well as extra tools shouldn't be parsed for translation messages, only the server and wallet part qualify here.
* | | | | | | | | | | | Merge pull request #4457Wladimir J. van der Laan2014-07-071-13/+7
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 834e46e CBlockIndex()::SetNull() method to avoid code repetition (jtimon)
| * | | | | | | | | | | | CBlockIndex()::SetNull() method to avoid code repetitionjtimon2014-07-021-13/+7
| | |_|/ / / / / / / / / | |/| | | | | | | | | |
* | | | | | | | | | | | Merge pull request #4472Wladimir J. van der Laan2014-07-073-3/+9
|\ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | 9f4da19 Use pong receive time rather than processing time (Pieter Wuille)
| * | | | | | | | | | | Use pong receive time rather than processing timePieter Wuille2014-07-063-3/+9
| |/ / / / / / / / / /
* | | | | | | | | | | Merge pull request #4421Wladimir J. van der Laan2014-07-041-1/+59
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | caf6150 Use async name resolving to improve net thread responsiveness (Huang Le)
| * | | | | | | | | | | Use async name resolving to improve net thread responsivenessHuang Le2014-06-271-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the LookupIntern(), things changed are: 1. Call getaddrinfo_a() instead of getaddrinfo() if available, the former is a sync version of the latter; 2. Try using inet_pton()/inet_addr() to convert the input text to a network addr structure at first, if success the extra name resolving thread inside getaddrinfo_a() could be avoided; 3. An interruption point added in the waiting loop for return from getaddrinfo_a(), which completes the improve for thread responsiveness. A easy way to see the effect is to kick off a 'bitcoind stop' immediately after 'bitcoind -daemon', before the change it would take several, or even tens of, minutes on a bad network situation to wait for the running bitcoind to exit, now it costs only seconds. Signed-off-by: Huang Le <[email protected]>
* | | | | | | | | | | | Merge pull request #3764Wladimir J. van der Laan2014-07-046-25/+35
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2e36866 Show nodeid instead of addresses (for anonymity) unless otherwise requested. (R E Broadley)
| * | | | | | | | | | | | Show nodeid instead of addresses (for anonymity) unless otherwise requested.R E Broadley2014-07-046-25/+35
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #4450Wladimir J. van der Laan2014-07-043-66/+64
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0da6b3f Remove signal DoubleSpendDetected, use function (Tom Harding) 88dd359 Check signatures before respend relay (Tom Harding)
| * | | | | | | | | | | | | Remove signal DoubleSpendDetected, use functionTom Harding2014-07-023-59/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also removes the need for forward reference to RelayableRespend.
| * | | | | | | | | | | | | Check signatures before respend relayTom Harding2014-07-011-15/+22
| |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check that all inputs are completely valid before actually relaying a double-spend.
* | | | | | | | | | | | | Merge branch 'smartfee_wallet'Gavin Andresen2014-07-0317-107/+159
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Move fee policy out of coreGavin Andresen2014-07-0316-61/+70
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Sanity checks for estimatesGavin Andresen2014-07-033-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Require at least 11 samples before giving fee/priority estimates. And have wallet-created transactions go throught the fee-sanity-check code path.
| * | | | | | | | | | | | | Use fee/priority estimates in wallet CreateTransactionGavin Andresen2014-07-038-47/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The wallet now uses the mempool fee estimator with a new command-line option: -txconfirmtarget (default: 1) instead of using hard-coded fees or priorities. A new bitcoind that hasn't seen enough transactions to estimate will fall back to the old hard-coded minimum priority or transaction fee. -paytxfee option overrides -txconfirmtarget. Relaying and mining code isn't changed. For Qt, the coin control dialog now uses priority estimates to label transaction priority (instead of hard-coded constants); unspent outputs were consistently labeled with a much higher priority than is justified by the free transactions actually being accepted into blocks. I did not implement any GUI for setting -txconfirmtarget; I would suggest getting rid of the "Pay transaction fee" GUI and replace it with either "target number of confirmations" or maybe a "faster confirmation <--> lower fee" slider or select box.
* | | | | | | | | | | | | | Merge pull request #4302Wladimir J. van der Laan2014-07-0311-7/+187
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 8969828 [Qt] New status bar Unit Display Control and related changes. (gubatron)
| * | | | | | | | | | | | | [Qt] New status bar Unit Display Control and related changes.gubatron2014-06-2511-7/+187
| | |_|_|/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New status bar control shows the current Unit of Display. When clicked (left,or right button) it shows a context menu that allows the user to switch the current Unit of Display (BTC, mBTC, uBTC) - Recent Requests and Transaction Table headers are now updated when unit of display is changed, because their "Amount" column now displays the current unit of display. - Takes care of issue #3970 Units in transaction export csv file. - Small refactors for reusability. - Demo Video https://www.youtube.com/watch?v=wwcr0Yh68go&list=UUG3jF2hgofmLWP0tRPisQAQ - changes after Diapolo's feedback. Have not been able to build after last pool, issues with boost on MacOSX, will test on Ubuntu these changes. - removed return statement on switch - renamed onDisplayUnitsChanged(int) to updateDisplayUnit(int) - now getAmountColumnTitle(int unit) takes a simple unit parameter. moved to BitcoinUnits.
* | | | | | | | | | | | | Clarify error message when invalid -rpcallowipWladimir J. van der Laan2014-07-032-2/+2
| |_|_|/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add to HelpMessage() what specifications are valid.
* | | | | | | | | | | | qt: fix 'opens in testnet mode when presented with a BIP-72 link with no ↵Julian Haight2014-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fallback' Passes tests: ``` $ ./bitcoin-qt 'bitcoin:?r=http://www.example.com/' .. fixed the original problem - this launches mainnet. $ ./bitcoin-qt 'bitcoin:mngeNQbTKnmaMbx8EXCYdwUbnt9JJD52cC' .. launches testnet $ ./bitcoin-qt -testnet 'bitcoin:1NXXeQRyMFFFRfyUix2o7mk1vhvk2Nxp78' .. sanity check - launches mainnet. ``` Fixes #4355. Closes #4411.
* | | | | | | | | | | | Merge pull request #4312Wladimir J. van der Laan2014-07-026-12/+149
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fda3fed libsecp256k1 integration (Pieter Wuille) 5566826 secp256k1: Add build-side changes for libsecp256k1 (Cory Fields) b150b09 secp256k1: add libtool as a dependency (Cory Fields)
| * | | | | | | | | | | | libsecp256k1 integrationPieter Wuille2014-07-011-11/+119
| | | | | | | | | | | | |
| * | | | | | | | | | | | secp256k1: Add build-side changes for libsecp256k1Cory Fields2014-07-015-1/+30
| | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: This is added to our existing automake targets rather than as a libtool-style lib. The switch to libtool-style targets can come later if it proves to not add any complications.
* / | | | | | | | | | | Fix the Qt5 build after d95ba75Wladimir J. van der Laan2014-07-021-1/+1
|/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sorry, my own fault this time.
* | | | | | | | | | | qt: Change serious messages from qDebug to qWarningWladimir J. van der Laan2014-07-015-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By changing the logging stream for warnings from qDebug to qWarning, these will always be logged to debug.log.
* | | | | | | | | | | qt: Log messages with type>QtDebugMsg as non-debugWladimir J. van der Laan2014-07-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More important messages should end up in the log no matter if -debug=qt is set.
* | | | | | | | | | | Merge pull request #4325Wladimir J. van der Laan2014-07-011-3/+3
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4aaa017 rework help messages for fee-related options (Philip Kaufmann)
| * | | | | | | | | | | rework help messages for fee-related optionsPhilip Kaufmann2014-06-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - mention the units and show the default for -paytxfee
* | | | | | | | | | | | typedef std::map<uint256, CCoins> to CCoinsMapWladimir J. van der Laan2014-07-014-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to switch to a more efficient map type without changing all occurences manually. Merges half of #4413.
* | | | | | | | | | | | fix copyright string in two of our *.rc filesPhilip Kaufmann2014-07-014-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - also make comment about rc-files in clientversion.h generic Merges #4429.
* | | | | | | | | | | | Merge pull request #4397Wladimir J. van der Laan2014-07-011-48/+56
|\ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5d59921 add missing BOOST_FOREACH indentation in ThreadSocketHandler() (Philip Kaufmann) 9e9ca2b small cleanup of #ifdefs in BindListenPort() (Philip Kaufmann)
| * | | | | | | | | | | add missing BOOST_FOREACH indentation in ThreadSocketHandler()Philip Kaufmann2014-06-261-40/+41
| | | | | | | | | | | |
| * | | | | | | | | | | small cleanup of #ifdefs in BindListenPort()Philip Kaufmann2014-06-261-8/+15
| | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - SO_NOSIGPIPE isn't available on WIN32 so merge the 2 non-WIN32 blocks - use predefined names from header for IPV6_PROTECTION_LEVEL and PROTECTION_LEVEL_UNRESTRICTED
* | | | | | | | | | | test: Fix warning about integer signedness in P2SH testsWladimir J. van der Laan2014-06-301-1/+1
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #4415Wladimir J. van der Laan2014-06-301-79/+104
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e35b37b RPC client: Simplify command line string-to-JSON-value conversion code (Jeff Garzik)
| * | | | | | | | | | | RPC client: Simplify command line string-to-JSON-value conversion codeJeff Garzik2014-06-261-79/+104
| | |_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, all command line parameters are converted into JSON string values. There is no need to manually specify the incoming type. A binary decision "parse as string or JSON?" is all that's necessary. Convert to a simple class, initialized at runtime startup, which offers a quick lookup to answer "parse as JSON?" conversion question. Future parameter conversions need only to indicate the method name and zero-based index of the parameter needing JSON parsing.
* | | | | | | | | | | Fix the build for Qt5Wladimir J. van der Laan2014-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merging #3883 broke the Qt5 build, define the color in the standard way.
* | | | | | | | | | | Merge pull request #3883 from dgenr8/first_double_spendGavin Andresen2014-06-3019-38/+247
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Relay and alert user to double spends
| * | | | | | | | | | | Formatting, spelling, comment fixes.Tom Harding2014-06-275-17/+22
| | | | | | | | | | | |
| * | | | | | | | | | | Add -respendnotify option and new RPC dataTom Harding2014-06-273-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -respendnotify=<cmd> Execute command when a network tx respends wallet tx input (%s=respend TxID, %t=wallet TxID) Add respendsobserved array to gettransaction, listtransactions, and listsinceblock RPCs. This omits the malleated clones that are included in the walletconflicts array. Add RPC help for respendsobserved and walletconflicts (help was missing for the latter).
| * | | | | | | | | | | UI to alert of respend attempt affecting wallet.Tom Harding2014-06-279-21/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Respend transactions that conflict with transactions already in the wallet are added to it. They are not displayed unless they also involve the wallet, or get into a block. If they do not involve the wallet, they continue not to affect balance. Transactions that involve the wallet, and have conflicting non-equivalent transactions, are highlighted in red. When the conflict first occurs, a modal dialog is thrown. CWallet::SyncMetaData is changed to sync only to equivalent transactions. When a conflict is added to the wallet, counter nConflictsReceived is incremented. This acts like a change in active block height for the purpose of triggering UI updates.
| * | | | | | | | | | | Relay double-spends, subject to anti-DOSTom Harding2014-06-276-15/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows network wallets and other clients to see transactions that respend a prevout already spent in an unconfirmed transaction in this node's mempool. Knowledge of an attempted double-spend is of interest to recipients of the first spend. In some cases, it will allow these recipients to withhold goods or services upon being alerted of a double-spend that deprives them of payment. As before, respends are not added to the mempool. Anti-Denial-of-Service-Attack provisions: - Use a bloom filter to relay only one respend per mempool prevout - Rate-limit respend relays to a default of 100 thousand bytes/minute - Define tx2.IsEquivalentTo(tx1): equality when scriptSigs are not considered - Do not relay these equivalent transactions Remove an unused variable declaration in txmempool.cpp.
| * | | | | | | | | | | CBloomFilter::clear() methodTom Harding2014-06-273-0/+13
| | | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #4420 from sipa/skiplistGavin Andresen2014-06-305-2/+163
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Add a skiplist to the CBlockIndex structure.
| * | | | | | | | | | | | Add skiplist unit testsPieter Wuille2014-06-292-0/+46
| | | | | | | | | | | | |
| * | | | | | | | | | | | Add a skiplist to the CBlockIndex structure.Pieter Wuille2014-06-292-2/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows fast (O(log n)) access to far predecessor blocks. Use it to speed up CChain::FindFork and CChain::GetLocator.
| * | | | | | | | | | | | Track peers' available blocksPieter Wuille2014-06-293-0/+48
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #4437Wladimir J. van der Laan2014-06-305-245/+316
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | de79aaa Move non-trivial uint256.h methods to uint256.cpp (Pieter Wuille)
| * | | | | | | | | | | | | Move non-trivial uint256.h methods to uint256.cppPieter Wuille2014-06-285-245/+316
| | |_|/ / / / / / / / / / | |/| | | | | | | | | | |