aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-11-26Merge pull request #5321Wladimir J. van der Laan
34559c7 Make PruneBlockIndexCandidates safer (Pieter Wuille) cca48f6 Reset setBlockIndexCandidates once block index db loaded (21E14)
2014-11-26Merge pull request #5323Wladimir J. van der Laan
a328dd6 [Qt] small changes to sendcoinsdialog (Philip Kaufmann)
2014-11-26Merge pull request #5209Wladimir J. van der Laan
9b1627d [Wallet] Reduce minTxFee for transaction creation to 1000 satoshis (Cozz Lovan)
2014-11-26Merge pull request #5361Wladimir J. van der Laan
3223179 libbitcoinconsensus: don't require any global constructors (Cory Fields)
2014-11-26Merge pull request #5340Wladimir J. van der Laan
c8ed613 Include missing config/bitcoin-config.h. (Pavel Janík) 494f6e7 Check for strnlen and provide it if it is not found. (Pavel Janík)
2014-11-26Include missing config/bitcoin-config.h.Pavel Janík
2014-11-25[Qt] small changes to sendcoinsdialogPhilip Kaufmann
- add newly added variables to the constructor init - move an already existing bool also to constructor init - move a connect call to setClientModel and add a NULL pointer check
2014-11-25Merge pull request #5351Wladimir J. van der Laan
3d0a1ce Process help and version arguments before datadir. (Pavel Janík)
2014-11-25Merge pull request #5241Wladimir J. van der Laan
a206950 Introduce separate flushing modes (Pieter Wuille) 51ce901 Improve chainstate/blockindex disk writing policy (Pieter Wuille)
2014-11-24libbitcoinconsensus: don't require any global constructorsCory Fields
These static objects are only used in once place, so declare them there instead.
2014-11-24Merge pull request #5358Wladimir J. van der Laan
3c77714 Make -proxy set all network types, avoiding a connect leak. (Gregory Maxwell)
2014-11-24Merge pull request #5154Wladimir J. van der Laan
730b1ed Check pindexBestForkBase for null (21E14)
2014-11-24[Qt, OSX] fix Qt4.8 compatibility with QProgressBar issueJonas Schnelli
Rebased-From: 7f33d2cebfde99ded12c711ef6bd77c91725cfb8 Github-Issue: #5344
2014-11-24Introduce separate flushing modesPieter Wuille
2014-11-24Improve chainstate/blockindex disk writing policyPieter Wuille
There are 3 pieces of data that are maintained on disk. The actual block and undo data, the block index (which can refer to positions on disk), and the chainstate (which refers to the best block hash). Earlier, there was no guarantee that blocks were written to disk before block index entries referring to them were written. This commit introduces dirty flags for block index data, and delays writing entries until the actual block data is flushed. With this stricter ordering in writes, it is now safe to not always flush after every block, so there is no need for the IsInitialBlockDownload() check there - instead we just write whenever enough time has passed or the cache size grows too large. Also updating the wallet's best known block is delayed until this is done, otherwise the wallet may end up referring to an unknown block. In addition, only do a write inside the block processing loop if necessary (because of cache size exceeded). Otherwise, move the writing to a point after processing is done, after relaying.
2014-11-24Merge pull request #1816Wladimir J. van der Laan
b867e40 CreateNewBlock: Stick height in coinbase so we pass template sanity check (Luke Dashjr) 60755db submitblock: Check for duplicate submissions explicitly (Luke Dashjr) bc6cb41 QA RPC tests: Add tests block block proposals (Luke Dashjr) 9765a50 Implement BIP 23 Block Proposal (Luke Dashjr) 3dcbb9b Abstract DecodeHexBlk and BIP22ValidationResult functions out of submitblock (Luke Dashjr) 132ea9b miner_tests: Disable checkpoints so they don't fail the subsidy-change test (Luke Dashjr) df08a62 TestBlockValidity function for CBlock proposals (used by CreateNewBlock) (Luke Dashjr) 4ea1be7 CreateNewBlock and miner_tests: Also check generated template is valid by CheckBlockHeader, ContextualCheckBlockHeader, CheckBlock, and ContextualCheckBlock (Luke Dashjr) a48f2d6 Abstract context-dependent block checking from acceptance (Luke Dashjr)
2014-11-24Merge pull request #5224Wladimir J. van der Laan
f321d6b Add key generation/verification to ECC sanity check (Pieter Wuille) d0c41a7 Add sanity check after key generation (Pieter Wuille)
2014-11-24Merge pull request #5309Wladimir J. van der Laan
4574248 [Qt] minor ordering cleanup after new fee selection (Philip Kaufmann) a01fa30 minor style cleanup after HTTP rest interface merge (Philip Kaufmann)
2014-11-24Check for strnlen and provide it if it is not found.Pavel Janík
2014-11-23Make -proxy set all network types, avoiding a connect leak.Gregory Maxwell
Previously -proxy was not setting the proxy for IsLimited networks, so if you set your configuration to be onlynet=tor you wouldn't get an IPv4 proxy set. The payment protocol gets its proxy configuration from the IPv4 proxy, and so it would experience a connection leak. This addresses issue #5355 and also clears up a cosmetic bug where getinfo proxy output shows nothing when onlynet=tor is set.
2014-11-23Prioritize and display -testsafemode status in UIdexX7
Like in a real world situation, a safe mode test should also be visible in the UI. A test of safe mode is furthermore mostly relevant for developers, so it should not be overwritten by a warning about a pre-release test build.
2014-11-23Add key generation/verification to ECC sanity checkPieter Wuille
2014-11-23Add sanity check after key generationPieter Wuille
Add a sanity check to prevent cosmic rays from flipping a bit in the generated public key, or bugs in the elliptic curve code. This is simply done by signing a (randomized) message, and verifying the result.
2014-11-22Remove misleading comment about testnet's message string.Pavel Janík
2014-11-22Process help and version arguments before datadir.Pavel Janík
2014-11-22Check pindexBestForkBase for null21E14
2014-11-21Change MIT/X11 to MIT in license displayed in the programPhilip Kaufmann
2014-11-21Convert remaining comments in /src to doxygen formatMichael Ford
- Update comments in checkpoints to be doxygen compatible - Update comments in checkqueue to be doxygen compatible - Update coins to be doxygen compatible - Fix comment typo in crypter.h - Update licenses/copyright dates Closes #5325 #5184 #5183 #5182
2014-11-21Merge pull request #5170Wladimir J. van der Laan
092b58d CBlockIndex::GetBlockWork() + GetProofIncrement(nBits) -> GetBlockProof(CBlockIndex) (jtimon) 22c4272 MOVEONLY: Move void UpdateTime() from pow.o to miner.o (plus fix include main.h -> chain.h) (jtimon)
2014-11-21Merge pull request #5247Wladimir J. van der Laan
ca81587 Test the exact order of CHECKMULTISIG sig/pubkey evaluation (Peter Todd) 98b135f Make STRICTENC invalid pubkeys fail the script rather than the opcode. (Pieter Wuille)
2014-11-21Merge pull request #5318Wladimir J. van der Laan
77c38bb Truthier error message when rpcpassword is missing (Glenn Willen)
2014-11-21qt: English translation updateWladimir J. van der Laan
2014-11-21Merge pull request #5322Wladimir J. van der Laan
aabe61c [Qt] explicitly call proxy in GUI settings SOCKS5 proxy (Philip Kaufmann)
2014-11-20build: fix link error on some platforms. Fixes #5235Cory Fields
Some users may have libtool libs (.la) installed in their linker search paths. In this case, using -static-libtool-libs would try to link in .a's instead of shared libs. That would be harmless unless the .a was built in a way that would break linking, like non-fpic. What we really want is "-static" here. Despite its name, it's actually less aggressive than -static-libtool-libs. It causes only internal libs to be linked statically (libbitcoinconsensus is the one were'a after).
2014-11-20CreateNewBlock: Stick height in coinbase so we pass template sanity checkLuke Dashjr
2014-11-20Merge pull request #5270Wladimir J. van der Laan
57425a2 Check block header before accepting it. (Daniel Kraft)
2014-11-20Test the exact order of CHECKMULTISIG sig/pubkey evaluationPeter Todd
Possible with STRICTENC
2014-11-20Make STRICTENC invalid pubkeys fail the script rather than the opcode.Pieter Wuille
This turns STRICTENC turn into a softforking-safe change (even though it is not intended as a consensus rule), and as a result guarantee that using it for mempool validation only results in consensus-valid transactions in the mempool.
2014-11-20Merge pull request #5000Pieter Wuille
0391423 Discourage NOPs reserved for soft-fork upgrades (Peter Todd)
2014-11-20Merge pull request #5324Wladimir J. van der Laan
72fb3d2 Update comments in src/rpc* to be doxygen compatible (Michael Ford)
2014-11-20Merge pull request #5320Wladimir J. van der Laan
e0a25c5 qt: Make askpassphrase dialog behave more sanely (Wladimir J. van der Laan)
2014-11-20[Qt] explicitly call proxy in GUI settings SOCKS5 proxyPhilip Kaufmann
- to ensure a consistent wording between core and GUI
2014-11-20Make PruneBlockIndexCandidates saferPieter Wuille
2014-11-20[Qt] minor ordering cleanup after new fee selectionPhilip Kaufmann
2014-11-20minor style cleanup after HTTP rest interface mergePhilip Kaufmann
- no code changes
2014-11-20qt: Make askpassphrase dialog behave more sanelyWladimir J. van der Laan
Set minimum sizes appropriately, and make sure that they are enforced. Replaces #5226.
2014-11-20Check block header before accepting it.Daniel Kraft
Previously, AcceptBlockHeader did not check the header (in particular PoW). This made the client accept invalid-PoW-headers from peers in headers-first sync.
2014-11-19build: add quick consensus lib testsCory Fields
They should be hooked up in other places as well, but this is a start.
2014-11-19build: add --with-libs so that libs are optionalCory Fields
2014-11-19build: add libbitcoinconsensus files and hook up the lib buildCory Fields
Credit BlueMatt for libbitcoinsonsensus.h/cpp