aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Enforce minRelayTxFee on wallet created tx and add a maxtxfee option.Gregory Maxwell2014-12-193-19/+48
| | | | | | | | | | | | | | | | Previously the minRelayTxFee was only enforced on user specified values. It was possible for smartfee to produce a fee below minRelayTxFee which would just result in the transaction getting stuck because it can't be relayed. This also introduces a maxtxfee option which sets an absolute maximum for any fee created by the wallet, with an intention of increasing user confidence that the automatic fees won't burn them. This was frequently a concern even before smartfees. If the configured fee policy won't even allow the wallet to meet the relay fee the transaction creation may be aborted.
* minor fix on script test data docsManuel Araoz2014-12-162-2/+2
|
* Merge pull request #5357Pieter Wuille2014-12-143-61/+59
|\ | | | | | | | | 5ea3bc0 Move remaining CBlockIndex methods to chain.cpp (Pieter Wuille) 9dcd524 Make IsSuperMajority a standalone function (Pieter Wuille)
| * Move remaining CBlockIndex methods to chain.cppPieter Wuille2014-12-112-48/+49
| |
| * Make IsSuperMajority a standalone functionPieter Wuille2014-12-112-13/+10
| |
* | Merge pull request #5461Wladimir J. van der Laan2014-12-121-0/+2
|\ \ | | | | | | | | | aa768f1 signrawtransaction: validate private key. (Pavel Janík)
| * | signrawtransaction: validate private key.Pavel Janík2014-12-111-0/+2
| | |
* | | Merge pull request #5457Wladimir J. van der Laan2014-12-1231-849/+1202
|\ \ \ | |_|/ |/| | | | | | | | 830ee48 Update Bitcoin for libsecp256k1 API change (Pieter Wuille) ecae2ac Squashed 'src/secp256k1/' changes from b0210a9..bccaf86 (Pieter Wuille)
| * | Update Bitcoin for libsecp256k1 API changePieter Wuille2014-12-112-4/+4
| | |
| * | Update libsecp256k1Pieter Wuille2014-12-1129-845/+1198
| |\ \
| | * | Squashed 'src/secp256k1/' changes from b0210a9..bccaf86Pieter Wuille2014-12-1123-705/+1138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bccaf86 Merge pull request #150 2a53a47 Merge pull request #151 5f5a31f Merge pull request #149 3907277 Merge pull request #142 a3e0611 Enable tests in x86 travis builds 45da235 x86 builder 8bb0e93 Merge pull request #155 971fe81 build: fix openssl detection for cross builds f22d73e Explicitly access %0..%2 as 64-bit so we use the right registers for x32 ABI e66d4d6 Avoid the stack in assembly and use explicit registers cf7b2b4 Fix ECDSA message hashes to 32 bytes 056ad31 Really compile with -O3 by default 74ad63a Merge pull request #146 9000458 Merge pull request #145 1f46b00 build: fix __builtin_expect detection for clang aaba2e0 Merge pull request #136 8a0775c Merge pull request #144 ee1eaa7 Merge pull request #141 c88e2b8 Compile with -O3 by default 6558a26 Make the benchmarks print out stats 000bdf6 Rename bench_verify to bench_recovery 7c6fed2 Add a few more additional tests. 992e03b travis: add clang to the test matrix b43b79a Merge pull request #143 e06a924 Include time.h header for time(). 8d11164 Add some additional tests. 3545627 Merge pull request #118 6a9901e Merge pull request #137 376b28b Merge pull request #128 1728806 Merge pull request #138 a5759c5 Check return value of malloc 39bd94d Variable time normalize ad86bdf Merge pull request #140 54b768c Another redundant secp256k1_fe_normalize 69dcaab Merge pull request #139 1c29f2e Remove redundant secp256k1_fe_normalize from secp256k1_gej_add_ge_var. 2b9388b Remove unused secp256k1_fe_inv_all f461b76 Allocate precomputation arrays on the heap b2c9681 Make {mul,sqr}_inner use the same argument order as {mul,sqr} 6793505 Convert YASM code into inline assembly f048615 Rewrite field assembly to match the C version 3ce74b1 Tweak precomputed table size for G git-subtree-dir: src/secp256k1 git-subtree-split: bccaf86caa9c44166e5a66600b742c516e03c3f0
* | | | Merge pull request #5367Wladimir J. van der Laan2014-12-114-33/+29
|\ \ \ \ | | | | | | | | | | | | | | | 63d1ae5 Do all block index writes in a batch (Pieter Wuille)
| * | | | Do all block index writes in a batchPieter Wuille2014-11-254-33/+29
| | | | |
* | | | | Now that 0.10 has been branched, master is 0.10.99Wladimir J. van der Laan2014-12-111-1/+1
| |_|_|/ |/| | |
* | | | Merge pull request #5267Wladimir J. van der Laan2014-12-113-15/+76
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 34318d7 RPC-test based on invalidateblock for mempool coinbase spends (Gavin Andresen) 7fd6219 Make CTxMemPool::remove more effecient by avoiding recursion (Matt Corallo) b7b4318 Make CTxMemPool::check more thourough by using CheckInputs (Matt Corallo) 723d12c Remove txn which are invalidated by coinbase maturity during reorg (Matt Corallo) 868d041 Remove coinbase-dependant transactions during reorg. (Matt Corallo)
| * | | | Make CTxMemPool::remove more effecient by avoiding recursionMatt Corallo2014-12-081-12/+18
| | | | |
| * | | | Make CTxMemPool::check more thourough by using CheckInputsMatt Corallo2014-12-081-1/+29
| | | | |
| * | | | Remove txn which are invalidated by coinbase maturity during reorgMatt Corallo2014-12-083-0/+28
| | | | |
| * | | | Remove coinbase-dependant transactions during reorg.Matt Corallo2014-12-081-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This still leaves transactions in mempool that are potentially invalid if the maturity period has been reorged out of, but at least they're not missing inputs entirely.
* | | | | qt: translations pull from transifexWladimir J. van der Laan2014-12-1112-26/+1871
| | | | |
* | | | | Merge pull request #5391Wladimir J. van der Laan2014-12-112-6/+34
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | 932ef50 [REST] JSON output: remove block infos from tx details if it is nested in block (Jonas Schnelli) cae5486 [REST] added /rest/block/notxdetails/<hash> into REST-interface.md documentation (Jonas Schnelli) 73351c3 [REST] /rest/block response with full tx details (Jonas Schnelli)
| * | | | [REST] JSON output: remove block infos from tx details if it is nested in blockJonas Schnelli2014-12-091-1/+1
| | | | |
| * | | | [REST] /rest/block response with full tx detailsJonas Schnelli2014-12-092-6/+34
| | | | | | | | | | | | | | | | | | | | | | | | | - rest block request returns full unfolded tx details - /rest/block/notxdetails/<HASH> returns block where transactions are only represented by its hash
* | | | | Merge pull request #5399Wladimir J. van der Laan2014-12-103-48/+37
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | 4be639e Use RPC_INVALID_PARAMETER instead of RPC_WALLET_ERROR for invalid amount. No return at the end of void function. (Pavel Janík) b93173d Move SendMoney() to rpcwallet.cpp. (Pavel Janík)
| * | | | Use RPC_INVALID_PARAMETER instead of RPC_WALLET_ERROR for invalid amount.Pavel Janík2014-12-051-3/+1
| | | | | | | | | | | | | | | | | | | | No return at the end of void function.
| * | | | Move SendMoney() to rpcwallet.cpp.Pavel Janík2014-12-023-48/+39
| | | | |
* | | | | Merge pull request #5216Wladimir J. van der Laan2014-12-097-43/+88
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5ec654b [Qt] update paymentserver license and cleanup ordering (Philip Kaufmann) 4333e26 [Qt] add BIP70 DoS protection test (Philip Kaufmann) 31f8494 [Qt] add BIP70 payment request size DoS protection for URIs (Philip Kaufmann) 2284ccb [Qt] remove dup lock that is done in SetAddressBook() (Philip Kaufmann) 1ec753f [Qt] ensure socket is set to NULL in PaymentServer::ipcSendCommandLine (Philip Kaufmann) 814429d [Qt] add BIP70/BIP71 constants for all messages and mime types (Philip Kaufmann) b82695b [Qt] make PaymentServer::ipcParseCommandLine void (Philip Kaufmann)
| * | | | | [Qt] update paymentserver license and cleanup orderingPhilip Kaufmann2014-12-084-10/+10
| | | | | |
| * | | | | [Qt] add BIP70 DoS protection testPhilip Kaufmann2014-12-082-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - this test required to make readPaymentRequestFromFile() public in order to be able to is it in paymentservertests.cpp
| * | | | | [Qt] add BIP70 payment request size DoS protection for URIsPhilip Kaufmann2014-12-082-13/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - current code only does this for payment request files, which are used on Mac - also rename readPaymentRequest to readPaymentRequestFromFile, so it's obvious that function only handles payment request files and not URIs - small logging changes in readPaymentRequestFromFile
| * | | | | [Qt] remove dup lock that is done in SetAddressBook()Philip Kaufmann2014-12-081-1/+0
| | | | | |
| * | | | | [Qt] ensure socket is set to NULL in PaymentServer::ipcSendCommandLinePhilip Kaufmann2014-12-081-1/+4
| | | | | |
| * | | | | [Qt] add BIP70/BIP71 constants for all messages and mime typesPhilip Kaufmann2014-12-082-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - also rename current ones to match the new ones - remove constant from guiconstant.h and add it to paymentserver.cpp
| * | | | | [Qt] make PaymentServer::ipcParseCommandLine voidPhilip Kaufmann2014-12-083-5/+8
| | |/ / / | |/| | | | | | | | | | | | | | | | | | - the function only returned true, so make it void - add a comment about payment request network detection
* | | | | Merge pull request #5409Wladimir J. van der Laan2014-12-092-31/+23
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | 65b0328 newlines in strings are invalid JSON (Ryan X. Charles)
| * | | | newlines in strings are invalid JSONRyan X. Charles2014-12-022-31/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although script_valid.json and script_invalid.json are loaded correctly by the JSON interpreter used by bitcoin core, these same files are often used by other libraries and do not necessarily load correctly due to the fact that newlines contained inside strings are not valid and must instead use the escape character \n. The files tx_valid.json and tx_invalid.json handle this correctly, so I've changed the formatting in script_valid.json and script_invalid.json to mirror those files.
* | | | | Merge pull request #5434Wladimir J. van der Laan2014-12-082-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 683dc40 Disable SSLv3 (in favor of TLS) for the RPC client and server. (Gregory Maxwell)
| * | | | | Disable SSLv3 (in favor of TLS) for the RPC client and server.Gregory Maxwell2014-12-062-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TLS is subject to downgrade attacks when SSLv3 is available, and SSLv3 has vulnerabilities. The popular solution is to disable SSLv3. On the web this breaks some tiny number of very old clients. While Bitcoin RPC shouldn't be exposed to the open Internet, it also shouldn't be exposed to really old SSL implementations, so it shouldn't be a major issue for us to disable SSLv3. There is more information on the downgrade attacks and disabling SSLv3 at https://disablessl3.com/ .
* | | | | | Add a new test for FormatParagraph (string longer than the default width).Pavel Janík2014-12-061-0/+1
| | | | | |
* | | | | | Format paragraphs properly - count the space between words.Pavel Janík2014-12-061-1/+1
|/ / / / /
* | | | | Merge pull request #5181Wladimir J. van der Laan2014-12-059-294/+318
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | afd4b94 Move CMerkleBlock and CPartialMerkleTree to their own file (Matt Corallo)
| * | | | | Move CMerkleBlock and CPartialMerkleTree to their own fileMatt Corallo2014-12-059-294/+318
| | | | | |
* | | | | | Normalize header guard of script_error.hPavel Janík2014-12-051-3/+3
| | | | | |
* | | | | | Merge pull request #5398Wladimir J. van der Laan2014-12-051-6/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | 8a20cd3 prioritisetransaction RPC: Restore compatibility with existing implementations by using satoshis for fee offset rather than BTC (Luke Dashjr)
| * | | | | | prioritisetransaction RPC: Restore compatibility with existing ↵Luke Dashjr2014-12-011-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | implementations by using satoshis for fee offset rather than BTC
* | | | | | | Merge pull request #5408Wladimir J. van der Laan2014-12-053-7/+25
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 35e408f Regard connection failures as attempt for addrman (Wladimir J. van der Laan)
| * | | | | | | Regard connection failures as attempt for addrmanWladimir J. van der Laan2014-12-023-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids connecting to them again too soon in ThreadOpenConnections. Make an exception for connection failures to the proxy as these shouldn't affect the status of specific nodes.
* | | | | | | | Merge pull request #5425Wladimir J. van der Laan2014-12-0530-773/+1241
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87bddb7 Squashed 'src/secp256k1/' changes from ad2028f..b0210a9 (Pieter Wuille) ffe3291 Remove gmp dependency and doc mentions (Pieter Wuille)
| * \ \ \ \ \ \ \ Update libsecp256k1Pieter Wuille2014-12-0430-773/+1241
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ | | |/| | | | | |
| | * | | | | | | Squashed 'src/secp256k1/' changes from ad2028f..b0210a9Pieter Wuille2014-12-0425-747/+1181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b0210a9 Merge pull request #135 ee3eb4b Fix a memory leak and add a number of small tests. 4d879a3 Merge pull request #134 d5e8362 Merge pull request #127 7b92cf6 Merge pull request #132 0bf70a5 Merge pull request #133 29ae131 Make scalar_add_bit test's overflow detection exact 9048def Avoid undefined shift behaviour efb7d4b Use constant-time conditional moves instead of byte slicing d220062 Merge pull request #131 82f9254 Fix typo 601ca04 Merge pull request #129 35399e0 Bugfix: b is restricted, not r c35ff1e Convert lambda splitter to pure scalar code. cc604e9 Avoid division when decomposing scalars ff8746d Add secp256k1_scalar_mul_shift_var bd313f7 Merge pull request #119 276f987 Merge pull request #124 25d125e Merge pull request #126 24b3c65 Add a test case for ECDSA recomputing infinity 32600e5 Add a test for r >= order signature handling 4d4eeea Make secp256k1_fe_mul_inner use the r != property be82e92 Require that r and b are different for field multiplication. 597128d Make num optional 659b554 Make constant initializers independent from num 0af5b47 Merge pull request #120 e2e8a36 Merge pull request #117 c76be9e Remove unused num functions 4285a98 Move lambda-splitting code to scalar. f24041d Switch all EC/ECDSA logic from num to scalar 6794be6 Add scalar splitting functions d1502eb Add secp256k1_scalar_inverse_var which delegates to GMP b5c9ee7 Make test_point_times_order test meaningful again 0b73059 Switch wnaf splitting from num-based to scalar-based 1e6c77c Generalize secp256k1_scalar_get_bits 5213207 Add secp256k1_scalar_add_bit 3c0ae43 Merge pull request #122 6e05287 Do signature recovery/verification with 4 possible recid case e3d692f Explain why no y=0 check is necessary for doubling f7dc1c6 Optimize doubling: secp256k1 has no y=0 point 666d3b5 Merge pull request #121 2a54f9b Correct typo in comment 9d64145 Merge pull request #114 99f0728 Fix secp256k1_num_set_bin handling of 0 d907ebc Add bounds checking to field element setters bb2cd94 Merge pull request #116 665775b Don't split the g factor when not using endomorphism 9431d6b Merge pull request #115 e2274c5 build: osx: attempt to work with homebrew keg-only packages git-subtree-dir: src/secp256k1 git-subtree-split: b0210a95da433e048a11d298efbcc14eb423c95f