aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Sync mining code from Namecore to resolve unit test failures (#1385)Ross Nicoll2018-09-195-225/+145
| | |
| * | Merge AuxPoW support from NamecoreRoss Nicoll2018-09-1932-226/+1884
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes are as below: Wrap CBlockHeader::nVersion into a new class (CBlockVersion). This allows to take care of interpreting the field into a base version, auxpow flag and the chain ID. Update getauxblock.py for new 'generate' RPC call. Add 'auxpow' to block JSON. Accept auxpow as PoW verification. Add unit tests for auxpow verification. Add check for memory-layout of CBlockVersion. Weaken auxpow chain ID checks for the testnet. Allow Params() to overrule when to check the auxpow chain ID and for legacy blocks. Use this to disable the checks on testnet. Introduce CPureBlockHeader. Split the block header part that is used by auxpow and the "real" block header (that uses auxpow) to resolve the cyclic dependency between the two. Differentiate between uint256 and arith_uint256. This change was done upstream, modify the auxpow code. Add missing lock in auxpow_tests. Fix REST header check for auxpow headers. Those can be longer, thus take that into account. Also perform the check actually on an auxpow header. Correctly set the coinbase for getauxblock results. Call IncrementExtraNonce in getauxblock so that the coinbase is actually initialised with the stuff it should be. (BIP30 block height and COINBASE_FLAGS.) Implement getauxblock plus regression test. Turn auxpow test into FIXTURE test. This allows using of the Params() calls. Move CMerkleTx code to auxpow.cpp. Otherwise we get linker errors when building without wallet. Fix rebase with BIP66. Update the code to handle BIP66's nVersion=3. Enforce that auxpow parent blocks have no auxpow block version. This is for compatibility with namecoind. See also https://github.com/namecoin/namecoin/pull/199. Move auxpow-related parameters to Consensus::Params.
| * | Update DB version to 5.1Ross Nicoll2018-09-192-19/+17
| | |
| * | Update dependency builder and its packages to be ready for Dogecoin specificslangerhans2018-09-194-10/+15
| | |
| * | Annotate work to be done to Dogecoin-ifyRoss Nicoll2018-09-193-3/+15
| | |
| * | Add Dogecoin difficulty calculationsRoss Nicoll2018-09-194-4/+157
| | |
| * | Litecoin: Fix zeitgeist2 attack thanks to Lolcust and ArtForz. This fixes an ↵coblee2018-09-191-1/+7
| | | | | | | | | | | | issue where a 51% attack can change difficulty at will. Go back the full period unless it's the first retarget after genesis.
| * | Litecoin: Scrypt n=1024 Pow hash based upon Colin Percival's Tarnsnap (2009) ↵Warren Togami2018-09-1912-3/+577
| | | | | | | | | | | | Modified by Artforz, coblee, pooler, wtogami, Nikolay Belikov, Adrian Gallagher
| * | Replace test data with Dogecoin valuesRoss Nicoll2018-09-1914-734/+744
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace test data with Dogecoin equivalents in the folowing tests: * base58 * bip32 * keys * miner * pow Replace RPC and deterministic signatures in unit tests with Dogecoin values. While conventionally I'd use an alternative implementation for these, as RFC 6979 compliant signature generation isn't terribly common, and there's no reason to suspect we've modified this code, I'm going to assert that it's good enough to test that the code doesn't provide different values. Disabled Bitcoin PoW tests, but left code in place to simplify later merges. These are replaced by the Dogecoin PoW tests.
| * | Add Dogecoin block subsidy calculations.Ross Nicoll2018-09-197-2/+159
| | |
| * | Replace consensus values with Dogecoin equivalentsRoss Nicoll2018-09-197-82/+93
| | | | | | | | | | | | | | | | | | | | | * Replace chain parameters with Dogecoin values * Update maximum coins to match Dogecoin * Disable version 2 block requirement * Update coinbase maturity to match Dogecoin
| * | Update DB version to 5.1Ross Nicoll2018-09-192-2/+68
| | |
| * | Fix crash bug with duplicate inputs within a transactionSuhas Daftuar2018-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Introduced by #9049 Github-Pull: #14247 Tree-SHA512: 54ccf896e4c816ba8532644affc984a091ed801d8387bb01a836953c9ec4a345359d98fb58dd5f929617afd42bce0cc40293fecf943a1584207c82dd78da0ea5
| * | Merge #11296: [0.14] travis: filter out pyenv (Cory Fields)MarcoFalke2017-09-101-0/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a4a0adbc7 travis: filter out pyenv (Cory Fields) Pull request description: This fixes the travis issues on the 0.14 branch Tree-SHA512: 302495d9d5eb554e32e6aa3a788416395d8efeaee153dc2ad9425e2762ac83e36a0a5f128d16098147e95d610dd2fbc7aae70e39a11f54ed421abd38693378d5
| | * | travis: filter out pyenvCory Fields2017-09-101-0/+1
| | | | | | | | | | | | | | | | | | | | Github-Pull: #11271 Rebased-From: aa2e0f09ec94dd0908f792ebc2249859ad174586
| * | | Merge #10516: Backports for 0.14.3Wladimir J. van der Laan2017-07-0634-264/+884
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ff274d3 [doc] Add hint about getmempoolentry to getrawmempool help. (Karl-Johan Alm) 76f9cf9 contrib: Update location of seeds.txt (Wladimir J. van der Laan) 12adedf Trivial: remove extra character from comment (CryptAxe) d2ec969 Fixed typo in documentation for merkleblock.h (Mikerah) 3612219 contrib/init/bitcoind.openrcconf: Don't disable wallet by default (Luke Dashjr) 692dbb0 [doc] Minor corrections to osx dependencies (fanquake) 87a21d5 Fix: make CCoinsViewDbCursor::Seek work for missing keys (Pieter Wuille) 28b8b8b [wallet] Securely erase potentially sensitive keys/values (Thomas Snider) ff13f59 [wallet] Make sure pindex is non-null before possibly referencing in LogPrintf call. (Karl-Johan Alm) e23cef0 Fix some empty vector references (Pieter Wuille) 6ad45b8 Re-enable upnp support in contrib/debian (Matt Corallo) e9a0d89 Build with QT5 on Debian-based systems using contrib/debian (Matt Corallo) 2ea0358 Bump minimum boost version in contrib/debian (Matt Corallo) c94e262 Update contrib/debian to latest Ubuntu PPA upload. (Matt Corallo) 96c7f2c Add CheckQueue Tests (Jeremy Rubin) e207342 Fix CCheckQueue IsIdle (potential) race condition and remove dangerous constructors. (Jeremy Rubin) ef810c4 [trivial] Fix a typo (introduced two days ago) in the default fee warning (practicalswift) 7abe7bb Qt/Send: Give fallback fee a reasonable indent (Luke Dashjr) 3e4d7bf Qt/Send: Figure a decent warning colour from theme (Luke Dashjr) c5adf8f [Qt] Show more significant warning if we fall back to the default fee (Jonas Schnelli) ee1a60d [tests] update disconnect_ban.py test case to work with listbanned (John Newbery) d289b56 [net] listbanned RPC and QT should show correct banned subnets (John Newbery) 0422693 [tests] disconnect_ban: remove dependency on urllib (John Newbery) 98bd0c3 [tests] disconnect_ban: use wait_until instead of sleep (John Newbery) bfd1cf6 [tests] disconnectban test - only use two nodes (John Newbery) 5bc75bb [tests] fix nodehandling.py flake8 warnings (John Newbery) c25d0a8 Update release notes to include RPC error code changes. (John Newbery) f5efe82 Return correct error codes in fundrawtransaction(). (John Newbery) 4943d7a Return correct error codes in setban(). (John Newbery) 18c109d Return correct error codes in removeprunedfunds(). (John Newbery) fe51c89 Return correct error codes in blockchain.cpp. (John Newbery) 3ad00b4 Return correct error codes in bumpfee(). (John Newbery) 71463a7 [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar) d28d583 Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar) Tree-SHA512: fa3628527c8e176e438de992b9c5815cc2f3c296dbe5d81b592d17a907554e9c6af7eb595e96a2c345de399ba5326c07b4791a91b7b07f89dce0787c85891206
| | * | [doc] Add hint about getmempoolentry to getrawmempool help.Karl-Johan Alm2017-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | Github-Pull: #10310 Rebased-From: 3a0a5bc2341ea6a453306f6fe1c065b937294cfb
| | * | contrib: Update location of seeds.txtWladimir J. van der Laan2017-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the steps for updating the hardcoded seed nodes to point to the new filename on @sipa's server, and add command to decompress it. Ref: #10163 Github-Pull: #10495 Rebased-From: ac9cd953d91e2448d24851b2f4973c7be8f4c3cd
| | * | Trivial: remove extra character from commentCryptAxe2017-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | Github-Pull: #10309 Rebased-From: 3503716f1e37a0cc3ab13c8f4e774061ff4ae2f8
| | * | Fixed typo in documentation for merkleblock.hMikerah2017-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | Github-Pull: #10258 Rebased-From: dd07068d6b11e738bc954c998800b5660d160959
| | * | contrib/init/bitcoind.openrcconf: Don't disable wallet by defaultLuke Dashjr2017-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It's harmless if it goes unused, and confused when a wallet is desired Github-Pull: #10451 Rebased-From: afc693dea695b75721db55d0decee3b11dcb3625
| | * | [doc] Minor corrections to osx dependenciesfanquake2017-06-051-3/+3
| | | | | | | | | | | | | | | | | | | | Github-Pull: #10260 Rebased-From: 661caf83b3dcae6376e59b6cae07f0a2a4d37fe9
| | * | Fix: make CCoinsViewDbCursor::Seek work for missing keysPieter Wuille2017-06-051-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to Suhas Daftuar for figuring this out. Github-Pull: #10445 Rebased-From: 822755a424d0abfa408dc34313f4aca4b816f54f
| | * | [wallet] Securely erase potentially sensitive keys/valuesThomas Snider2017-06-052-21/+23
| | | | | | | | | | | | | | | | | | | | Github-Pull: #10308 Rebased-From: 6c914ac176624468c66febdb1ad0e24ff2118a5f
| | * | [wallet] Make sure pindex is non-null before possibly referencing in ↵Karl-Johan Alm2017-06-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | LogPrintf call. Github-Pull: #10265 Rebased-From: c36ea693ee16611e0337aec682d1ce80b90e1bd3
| | * | Fix some empty vector referencesPieter Wuille2017-06-051-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | streams.h has some methods that can be tricked into dereferencing null pointers or end() iterators. Fix this. Github-Pull: #10250 Rebased-From: f478d98fe49d3c0c0f2c79b3f8d9dbfc1aafd407
| | * | Merge #10328 via branch 'debianppa-0.14' into 0.14.2_fixesLuke Dashjr2017-06-053-30/+154
| | |\ \
| | | * | Re-enable upnp support in contrib/debianMatt Corallo2017-06-033-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10328 Rebased-From: 91700aa1df57c1a9209284e743224119396604d5
| | | * | Build with QT5 on Debian-based systems using contrib/debianMatt Corallo2017-06-033-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10328 Rebased-From: c5071e1f03085b4025f2a33fb2c3079d823d660c
| | | * | Bump minimum boost version in contrib/debianMatt Corallo2017-06-032-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10328 Rebased-From: a8e928699a6ab612459e836ba24af143eae37b0f
| | | * | Update contrib/debian to latest Ubuntu PPA upload.Matt Corallo2017-06-033-28/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This: * Partially reverts 9f68ed6 (which fixed spelling in a changelog, though generally changelogs should be append-only). * Disables UPnP support (PPA has not had it for a while, and I still don't trust miniupnpc, plus it seems uneccessary - its been a while since we needed to care about Bitcoin-Qt home users getting their inbound ports auto-mapped). * Enables ZMQ. * Forces GUI to Qt4 to fix various issues people have been seeing on Ubuntu and elsewhere with Qt5. * Reverts 70899d70b (Bitcoin does not enable "instant payments", not is transaction management "carried out collectively by the network", for whatever "transaction management" means, finally Bitcoin Core is not the only way to use the Bitcoin currency, as seemingly implied in the description). Github-Pull: #10328 Rebased-From: 997021986e02f8e59024ffca6437857d9d17f396
| | * | | Merge #9497 via remote-tracking branch 'origin-pull/9497/head' into 0.14.2_fixesLuke Dashjr2017-06-053-10/+455
| | |\ \ \
| | | * | | Add CheckQueue TestsJeremy Rubin2017-02-162-0/+443
| | | | | |
| | | * | | Fix CCheckQueue IsIdle (potential) race condition and remove dangerous ↵Jeremy Rubin2017-01-201-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | constructors.
| | * | | | Merge #10008 via branch 'fee_warning-0.14' into 0.14.2_fixesLuke Dashjr2017-06-051-1/+1
| | |\ \ \ \
| | | * | | | [trivial] Fix a typo (introduced two days ago) in the default fee warningpracticalswift2017-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10008 Rebased-From: a3ca43bb32520fdc049bc2112a29a554188126cc
| | * | | | | Merge #9481 via remote-tracking branch 'jonas/2017/01/fee_warning' into ↵Luke Dashjr2017-06-052-0/+29
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | 0.14.2_fixes
| | | * | | | Qt/Send: Give fallback fee a reasonable indentLuke Dashjr2017-02-171-0/+2
| | | | | | |
| | | * | | | Qt/Send: Figure a decent warning colour from themeLuke Dashjr2017-02-172-3/+8
| | | | | | |
| | | * | | | [Qt] Show more significant warning if we fall back to the default feeJonas Schnelli2017-01-062-0/+22
| | | | | | |
| | * | | | | Merge #10234, #10143 (fixes only), and #9853 via branch ↵Luke Dashjr2017-06-052-50/+58
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 'disconnect_ban_fixes-0.14' into 0.14.2_fixes
| | | * | | | | [tests] update disconnect_ban.py test case to work with listbannedJohn Newbery2017-06-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10234 Rebased-From: d6732d832aa901e733e63799260d409821a2c37a
| | | * | | | | [net] listbanned RPC and QT should show correct banned subnetsJohn Newbery2017-06-051-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10234 Rebased-From: 77c54b270dd3b469d662c8f69e06f7b00fc4136d
| | | * | | | | [tests] disconnect_ban: remove dependency on urllibJohn Newbery2017-06-051-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10143 Rebased-From: 5cc3ee24d29397737f2746d78b19a2509c0dedbb
| | | * | | | | [tests] disconnect_ban: use wait_until instead of sleepJohn Newbery2017-06-051-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10143 Rebased-From: 12de2f252c8f48e05c579cb679866a68af8c660e
| | | * | | | | [tests] disconnectban test - only use two nodesJohn Newbery2017-06-051-26/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10143 Rebased-From: 395561becfa612fedec74fd841cb4f28afdc23d7
| | | * | | | | [tests] fix nodehandling.py flake8 warningsJohn Newbery2017-06-051-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #10143 Rebased-From: d6564a26f4afc28d7d1a24b94946916387c9bf24
| | * | | | | | Merge #9853 via branch 'fixerrorcodes-0.14' into 0.14.2_fixesLuke Dashjr2017-06-0512-140/+128
| | |\| | | | |
| | | * | | | | Update release notes to include RPC error code changes.John Newbery2017-06-051-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #9853 Rebased-From: adaa281da12bcc697779f97973cea6b103eec4ab
| | | * | | | | Return correct error codes in fundrawtransaction().John Newbery2017-06-053-47/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fundrawtransaction() RPC was returning misleading or incorrect error codes (for example RPC_INTERNAL_ERROR when funding the transaction failed). This commit fixes those error codes: - RPC_INTERNAL_ERROR should not be returned for application-level errors, only for genuine internal errors such as corrupted data. That error code has been replaced with RPC_WALLET_ERROR. This commit also updates the test cases to explicitly test the error code. Github-Pull: #9853 Rebased-From: dab804c18a427901684ebe936b2069a97e04a268