aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-08-14Fix masking of irrelevant bits in address groups.Alex Morcos
2015-08-14Merge pull request #6415Wladimir J. van der Laan
d042854 SQUASH "Implement watchonly support in fundrawtransaction" (Matt Corallo) 428a898 SQUASH "Add have-pubkey distinction to ISMINE flags" (Matt Corallo) 6bdb474 Implement watchonly support in fundrawtransaction (Matt Corallo) f5813bd Add logic to track pubkeys as watch-only, not just scripts (Matt Corallo) d3354c5 Add have-pubkey distinction to ISMINE flags (Matt Corallo) 5c17059 Update importaddress help to push its use to script-only (Matt Corallo) a1d7df3 Add importpubkey method to import a watch-only pubkey (Matt Corallo) 907a425 Add p2sh option to importaddress to import redeemScripts (Matt Corallo) 983d2d9 Split up importaddress into helper functions (Matt Corallo) cfc3dd3 Also remove pay-2-pubkey from watch when adding a priv key (Matt Corallo)
2015-08-11Merge pull request #6519Wladimir J. van der Laan
7f1f8f5 Move mempool rejections to new debug category (Wladimir J. van der Laan) 66daed5 Add information to errors in ConnectBlock, CheckBlock (Wladimir J. van der Laan) 6cab808 Remove most logging from transaction validation (Wladimir J. van der Laan) 9003c7c Add function to convert CValidationState to a human-readable message (Wladimir J. van der Laan) dc58258 Introduce REJECT_INTERNAL codes for local AcceptToMempool errors (Wladimir J. van der Laan) fbf44e6 Add debug message to CValidationState for optional extra information (Wladimir J. van der Laan)
2015-08-11Move mempool rejections to new debug categoryWladimir J. van der Laan
Move mempool rejections to debug category `mempoolrej`, to make it possible to show them without enabling the entire category `mempool` which is high volume.
2015-08-11Add information to errors in ConnectBlock, CheckBlockWladimir J. van der Laan
Add detailed state information to the errors, as it is no longer being logged downstream. Also add the state information to mempool rejection debug message in ProcessMessages.
2015-08-11Remove most logging from transaction validationWladimir J. van der Laan
Remove unnecessary direct logging in CheckTransaction, AcceptToMemoryPool, CheckTxInputs, CScriptCheck::operator() All status information should be returned in the CValidationState. Relevant debug information is also added to the CValidationState using the recently introduced debug message. Do keep the "BUG! PLEASE REPORT THIS! ConnectInputs failed against MANDATORY but not STANDARD flags" error as it is meant to appear as bug in the log.
2015-08-11Add function to convert CValidationState to a human-readable messageWladimir J. van der Laan
It is necessary to be able to concisely log a validation state. Convert CValidationState to a human-readable message for logging.
2015-08-11Introduce REJECT_INTERNAL codes for local AcceptToMempool errorsWladimir J. van der Laan
Add status codes specific to AcceptToMempool procession of transactions. These can never happen due to block validation, and must never be sent over the P2P network. Add assertions where appropriate.
2015-08-10Merge pull request #6346Wladimir J. van der Laan
627468d Add support for data-based outputs (OP_RETURN) to bitcoin-tx. (Pavel Janík) d707853 Add OP_RETURN support in createrawtransaction RPC call, add tests. (Pavel Janík)
2015-08-10Merge pull request #6534Wladimir J. van der Laan
9493803 Revert "Revert "Assert on probable deadlocks if the second lock isnt try_lock"" (Cory Fields) 605433f locks: don't lock cs_wallet before making rpc calls (Cory Fields)
2015-08-08SQUASH "Implement watchonly support in fundrawtransaction"Matt Corallo
2015-08-08SQUASH "Add have-pubkey distinction to ISMINE flags"Matt Corallo
2015-08-08Add some const declarations where they are appropriate.Daniel Kraft
Declare some arguments of functions as "const" pointers where they are not meant to be modified.
2015-08-07Revert "Revert "Assert on probable deadlocks if the second lock isnt try_lock""Cory Fields
This reverts commit a4fe57da6207c1e5691a1e843d22db571f3f0186. The issue here should be fixed by the previous commit.
2015-08-07locks: don't lock cs_wallet before making rpc callsCory Fields
2015-08-07[Qt] show client user agent in debug windowPhilip Kaufmann
2015-08-07Merge pull request #4587Wladimir J. van der Laan
ed166df [Qt] allow users to set -onion via GUI (Philip Kaufmann)
2015-08-07Merge pull request #6505Wladimir J. van der Laan
df9c2ee [Qt] replace wifi icon with network symbol (Marco) 9142867 [QT] cleanup icons (Marco)
2015-08-07Merge pull request #6377Wladimir J. van der Laan
c433828 Handle no chain tip available in InvalidChainFound() (Ross Nicoll)
2015-08-07Merge pull request #6527Wladimir J. van der Laan
231c560 Use unique name for AlertNotify tempfile (Casey Rodarmor)
2015-08-06Add support for data-based outputs (OP_RETURN) to bitcoin-tx.Pavel Janík
2015-08-06Add OP_RETURN support in createrawtransaction RPC call, add tests.Pavel Janík
2015-08-06Revert "Assert on probable deadlocks if the second lock isnt try_lock"Wladimir J. van der Laan
Disabling this for now - too many intermittent Travis issues. This reverts commit 0fcc4e1e04082daf6e97e05bfb26e4b94e54ea53 (pull #5515).
2015-08-06Merge pull request #6177Wladimir J. van der Laan
ef8dfe4 Prevent block.nTime from decreasing (Mark Friedenbach)
2015-08-06Add debug message to CValidationState for optional extra informationWladimir J. van der Laan
Add a field `strDebugMessage` which can be passed to DoS or Invalid, and queried using GetDebugMessage() to add extra troubleshooting information to the validation state.
2015-08-05Use unique name for AlertNotify tempfileCasey Rodarmor
2015-08-05Merge pull request #5913Wladimir J. van der Laan
5922b67 Add assertion and cast before sending reject code (Wladimir J. van der Laan) a651403 Add absurdly high fee message to validation state (for RPC propagation) (Shaul Kfir)
2015-08-05Add assertion and cast before sending reject codeWladimir J. van der Laan
This gets rid of a warning. Add an assertion to make sure that the reject code is in the correct range for the network protocol (if it is outside the range it must be a bug)
2015-08-05Merge pull request #6462Wladimir J. van der Laan
7b79cbd limit total length of user agent comments (Pavol Rusnak) 557f8ea implement uacomment config parameter which can add comments to user agent as per BIP-0014 (Pavol Rusnak)
2015-08-05Merge pull request #6489Wladimir J. van der Laan
f261f19 Give a better error message if system clock is bad (Casey Rodarmor)
2015-08-05limit total length of user agent commentsPavol Rusnak
Reworked-By: Wladimir J. van der Laan <laanwj@gmail.com>
2015-08-04Merge pull request #6503Pieter Wuille
19dd40a Consolidate individual references to the current maximum peer connection value of 125 into a single constant declaration. (Matt Quinn)
2015-08-04[Qt] replace wifi icon with network symbolMarco
2015-08-04[QT] cleanup iconsMarco
* Cleanup SVG code * Unify design ("Typicons" seem to have round edges) * Fix transparency issue with clock5.png
2015-08-04Merge pull request #6504Wladimir J. van der Laan
9ca7857 Rationalize currency unit to "BTC" (Ross Nicoll)
2015-08-03Rationalize currency unit to "BTC"Ross Nicoll
Previously various user-facing strings have used inconsistent currency units "BTC", "btc" and "bitcoins". This adds a single constant and uses it for each reference to the currency unit. Also adds a description of the unit for --maxtxfee, and adds the missing "amount" field description to the (deprecated) move RPC command.
2015-08-03Consolidate individual references to the current maximum peer connectionMatt Quinn
value of 125 into a single constant declaration.
2015-08-03Give a better error message if system clock is badCasey Rodarmor
Fixes #2007 This checks to see if the system clock appears to be bad and gives a helpful error message. If the user's clock is set incorrectly, hopefully they'll abort, fix it, and then save themselves a fruitless resync.
2015-08-03Merge pull request #6498Wladimir J. van der Laan
a8d0407 Move recentRejects initialization to top of InitBlockIndex (Wladimir J. van der Laan) 0847d9c Keep track of recently rejected transactions (Peter Todd) d741371 Only use randomly created nonces in CRollingBloomFilter. (Pieter Wuille) d2d7ee0 Make CRollingBloomFilter set nTweak for you (Peter Todd) a3d65fe Reuse vector hashing code for uint256 (Pieter Wuille) bbe4108 Add uint256 support to CRollingBloomFilter (Peter Todd)
2015-08-03Merge pull request #6284Wladimir J. van der Laan
c6455c7 doc: mention change to option parsing behavior in release notes (Wladimir J. van der Laan) c38c49d Fix argument parsing oddity with -noX (Wladimir J. van der Laan)
2015-08-03Merge pull request #6356Wladimir J. van der Laan
f0cba6f Delay initial pruning until after wallet init (Adam Weiss)
2015-08-03Make sure LogPrintf strings are line-terminatedWladimir J. van der Laan
Fix the cases where LogPrint[f] was accidentally called without line terminator, which resulted in concatenated log lines. (see e.g. #6492)
2015-07-31Move recentRejects initialization to top of InitBlockIndexWladimir J. van der Laan
This avoids that premature return in the condition that a new chain is initialized results in NULL pointer errors due to recentReject not being constructed. Also add assertions where it is used.
2015-07-31implement uacomment config parameterPavol Rusnak
which can add comments to user agent as per BIP-0014
2015-07-31Merge pull request #6473Wladimir J. van der Laan
5fb5c9b Clean up chainparams some more. (Daniel Kraft)
2015-07-31Merge pull request #6487Wladimir J. van der Laan
eec7757 qt: Introduce PlatformStyle (Wladimir J. van der Laan)
2015-07-31qt: Introduce PlatformStyleWladimir J. van der Laan
Introduce a PlatformStyle to handle platform-specific customization of the UI. This replaces 'scicon', as well as #ifdefs to determine whether to place icons on buttons. The selected PlatformStyle defaults to the platform that the application was compiled on, but can be overridden from the command line with `-uiplatform=<x>`. Also fixes the warning from #6328.
2015-07-29Clean up chainparams some more.Daniel Kraft
Clean up the code in chainparams a bit more after the recent refactorings. In particular, make sure the structure of the "RegTest" params matches the structure of the other classes. This makes the code clearer to read. Also remove redundant values of the genesis block in always-specified optional arguments and mark variable/argument as "const".
2015-07-29Merge pull request #6224Wladimir J. van der Laan
59b49cd Eliminate signed/unsigned comparison warning (Suhas Daftuar) 04b5d23 Replace sleep with syncing using pings (Suhas Daftuar) 6b1066f Ignore whitelisting during IBD for unrequested blocks. (Suhas Daftuar) bfc30b3 Ignore unrequested blocks too far ahead of tip (Suhas Daftuar)
2015-07-29Delay initial pruning until after wallet initAdam Weiss
Don't prune until any wallet rescanning has taken place to avoid potentially pruning blocks that the wallet rescan may need.