aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-12-27Fix CScriptID(const CScript& in) in empty script casePeter Todd
Previously an empty script wouldn't be hashed, and CScriptID would be assigned the incorrect value of 0 instead. This bug can be seen in the RPC decodescript command: $ btc decodescript "" { "asm" : "", "type" : "nonstandard", "p2sh" : "31h1vYVSYuKP6AhS86fbRdMw9XHieotbST" } Correct output: $ btc decodescript "" { "asm" : "", "type" : "nonstandard", "p2sh" : "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy" } Rebased-From: d78f0dafd520f481f909cca7e361a4e482cbea72 Github-Pull: #5541
2014-12-23doc: add bitcoin-tx section to release notesv0.10.0rc1Jeff Garzik
2014-12-23doc: mention P2SH IsStandard relaxation in release notesPeter Todd
2014-12-23doc: mention consensus library in release notesWladimir J. van der Laan
2014-12-23doc: add section about watch-only addresses to release notesPieter Wuille
2014-12-23CLIENT_VERSION_IS_RELEASE → trueWladimir J. van der Laan
2014-12-23Preliminary release notes for 0.10Wladimir J. van der Laan
2014-12-23Merge pull request #5531Wladimir J. van der Laan
2014-12-23Do not use libgmp automatically in libsecp256k1Pieter Wuille
2014-12-23docs: update gitian building docsCory Fields
Github-Pull: #5512 Rebased-From: dd14a0e799b6552ae85aaab2b0b48f788c578aea
2014-12-23qt: periodic language updateWladimir J. van der Laan
2014-12-23DOS: Respect max per-peer blocks in flight limitAdam Weiss
Don't allow immediate inv driven block downloads if a peer already has MAX_BLOCKS_IN_TRANSIT_PER_PEER active downloads. Prevents bogus inv spam from blowing up block transfer tracking data structures. Rebased-From: c90770430d7c1eb7ece2d4ddb987b0f2210fd86f Github-Pull: #5507
2014-12-23Apply AreSane() checks to the fees from the network.Gregory Maxwell
'Sane' was already defined by this code as: fee.GetFeePerK() > minRelayFee.GetFeePerK() * 10000 But sanity was only enforced for data loaded from disk. Note that this is a pretty expansive definition of 'sane': A 10 BTC fee is still passes the test if its on a 100kb transaction. This prevents a single insane fee on the network from making us reject our stored fee data at start. We still may reject valid saved fee state if minRelayFee is changed between executions. This also reduces the risk and limits the damage from a cascading failure where one party pays a bunch of insane fees which cases others to pay insane fees. Rebased-From: 64849306905e625fd44d297e8d58c3e1dd98cb90 Github-Pull: #5481
2014-12-23Enforce minRelayTxFee on wallet created tx and add a maxtxfee option.Gregory Maxwell
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. Rebased-From: aa279d613152e87ea25edfdf76c86779c0632f18 Github-Pull: #5485
2014-12-23Reject headers that build on an invalid parentPieter Wuille
Rebased-From: 34970223472c9e83689a1c710eebc7c16f152b02 Github-Pull: #5459
2014-12-22remove max orphan blocks config parameter since it is no longer functionalJameson Lopp
Rebased-From: 4bc95c43871645c1d69a0d719c13b38151a3a13f
2014-12-22Check against MANDATORY flags prior to accepting to mempoolPeter Todd
Previously transactions were only tested again the STANDARD_SCRIPT_VERIFY_FLAGS prior to mempool acceptance, so any bugs in those flags that allowed actually-invalid transactions to pass would result in allowing invalid transactions into the mempool. Fortunately there is a second check in CreateNewBlock() that would prevent those transactions from being mined, resulting in an invalid block, however this could still be exploited as a DoS attack. Rebased-From: 7c041b3b91aa08a8f5863382b865a5174281ad03
2014-12-19add missing CAutoFile::IsNull() check in mainPhilip Kaufmann
Rebased-From: 84857e87e42e412336ea60d0f8544c1679bab827 Github-Pull: #5437
2014-12-16version 0.9.99 -> 0.10.0Wladimir J. van der Laan
Bump version but keep CLIENT_VERSION_IS_RELEASE at false as this is not a release yet.
2014-12-15Fix download link for gitian buildsBtcDrak
Rebased-From: 164a45f57a8a7367e67a5e65b9e938844730cd87 Github-Pull: #5471
2014-12-12signrawtransaction: validate private key.Pavel Janík
Github-Pull: #5461 Rebased-From: aa768f1848b00e0fd615016598d3fb1f1da240ed
2014-12-12depends: Gitian 0.10 fixesCory Fields
Github-Pull: #5465 Rebased-From: 422f873ef3d62f7dff9c00dc0f221912ce28f130 d546191dc28fac0e365c8f2aba47ac69a8920d6c d7db4b6317fd9c79bd6fd7c7455d7186b306411f e27d7cb24835c6ce16c12eb758c2d75806103c4a
2014-12-11Merge pull request #5267Wladimir J. van der Laan
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)
2014-12-11qt: translations pull from transifexWladimir J. van der Laan
2014-12-11Merge pull request #5391Wladimir J. van der Laan
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)
2014-12-10Merge pull request #5399Wladimir J. van der Laan
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)
2014-12-10Merge pull request #5395Wladimir J. van der Laan
4c69ebe Add /opt/local/include/db48 only if it exists. (Pavel Janík)
2014-12-09[REST] JSON output: remove block infos from tx details if it is nested in blockJonas Schnelli
2014-12-09[REST] added /rest/block/notxdetails/<hash> into REST-interface.md documentationJonas Schnelli
2014-12-09[REST] /rest/block response with full tx detailsJonas Schnelli
- rest block request returns full unfolded tx details - /rest/block/notxdetails/<HASH> returns block where transactions are only represented by its hash
2014-12-09Merge pull request #5449Wladimir J. van der Laan
6e6a36c contrib: show pull # in prompt for github-merge script (Wladimir J. van der Laan)
2014-12-09Merge pull request #5427Wladimir J. van der Laan
1577df9 Port of walletbackup.sh to Python. (mrbandrews)
2014-12-09Port of walletbackup.sh to Python.mrbandrews
2014-12-09contrib: show pull # in prompt for github-merge scriptWladimir J. van der Laan
2014-12-09Merge pull request #5216Wladimir J. van der Laan
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)
2014-12-09Merge pull request #5409Wladimir J. van der Laan
65b0328 newlines in strings are invalid JSON (Ryan X. Charles)
2014-12-08RPC-test based on invalidateblock for mempool coinbase spendsGavin Andresen
2014-12-08Make CTxMemPool::remove more effecient by avoiding recursionMatt Corallo
2014-12-08Make CTxMemPool::check more thourough by using CheckInputsMatt Corallo
2014-12-08Remove txn which are invalidated by coinbase maturity during reorgMatt Corallo
2014-12-08Remove coinbase-dependant transactions during reorg.Matt Corallo
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.
2014-12-08[Qt] update paymentserver license and cleanup orderingPhilip Kaufmann
2014-12-08[Qt] add BIP70 DoS protection testPhilip Kaufmann
- this test required to make readPaymentRequestFromFile() public in order to be able to is it in paymentservertests.cpp
2014-12-08[Qt] add BIP70 payment request size DoS protection for URIsPhilip Kaufmann
- 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
2014-12-08[Qt] remove dup lock that is done in SetAddressBook()Philip Kaufmann
2014-12-08[Qt] ensure socket is set to NULL in PaymentServer::ipcSendCommandLinePhilip Kaufmann
2014-12-08[Qt] add BIP70/BIP71 constants for all messages and mime typesPhilip Kaufmann
- also rename current ones to match the new ones - remove constant from guiconstant.h and add it to paymentserver.cpp
2014-12-08[Qt] make PaymentServer::ipcParseCommandLine voidPhilip Kaufmann
- the function only returned true, so make it void - add a comment about payment request network detection
2014-12-08Merge pull request #5434Wladimir J. van der Laan
683dc40 Disable SSLv3 (in favor of TLS) for the RPC client and server. (Gregory Maxwell)
2014-12-08Merge pull request #5436Wladimir J. van der Laan
11d7a7d [RPC] add rpc-test for http keep-alive (persistent connections) (Jonas Schnelli)