8533 Commits

Author SHA1 Message Date
Max K.
2bb124df3f Merge pull request #1207 from rnicoll/1.10-bitcoin
Bring client up to date with Bitcoin Core 0.11.0
2015-07-30 20:37:58 +02:00
Max K.
11b10408d0 Merge pull request #1206 from rnicoll/1.10-txdb
Add Scrypt hash and AuxPoW header to index database
2015-07-30 20:33:39 +02:00
Wladimir J. van der Laan
fd90719d88 doc: add important information about tx flood to release notes 2015-07-29 18:29:30 +01:00
spin
b4c061f3e2 Fix typo in release notes. 2015-07-29 18:29:30 +01:00
Alex Morcos
06a5d499f1 release notes for fee estimation changes 2015-07-29 18:29:30 +01:00
Luke Dashjr
ef5fc79562 assets-attribution: Update typicons to MIT license
stephenhutchings commented 3 Jul 2015, 6:35 GMT:
> Hi Luke, happy for these to be distributed under the terms of the MIT licence.
> Let me know if you need anything further from me.
2015-07-29 18:29:30 +01:00
Wladimir J. van der Laan
3f9eedf119 update release notes for 0.11.0rc3 2015-07-29 18:29:30 +01:00
Micha
2ed2cd36bb Ideal release process for Windows detached signing
This is an ideal version of what the release process should look like,
making it more consistent with the OS X process. Some of the changes
described here would need to be made in the descriptors, which is somewhat
beyond what I would feel comfortable doing, not really understanding the signature process in depth.

[skip ci]

Github-Pull: #6354
Rebased-From: 6e849b8309558ec83710d86c0f784566996da58b
2015-07-29 18:29:30 +01:00
Cory Fields
2ca709a635 gitian: make the windows signing process match OSX
Github-Pull: #6354
Rebased-From: a3ba9a553acefd567ccb304b8600d2149ffab9aa
2015-07-29 18:29:30 +01:00
Suhas Daftuar
fc1f115ee5 Advance pindexLastCommonBlock for blocks in chainActive
This prevents an edge case where a block downloaded and pruned
in-between successive calls to FindNextBlocksToDownload could
cause the block to be unnecessarily re-requested.

Github-Pull: #6233
Rebased-From: 3e9143386a90e508c8d41719294db11264f5f0a0
2015-07-29 18:29:30 +01:00
Wladimir J. van der Laan
c257476410 doc: mention bitcoin-submittx example in release notes 2015-07-29 18:29:30 +01:00
Philip Kaufmann
a46370f791 fix crash on shutdown when e.g. changing -txindex and abort action
- fixes #3136
- the problem is related to Boost path and a static initialized internal
  pointer
- using a std::string in CDBEnv::EnvShutdown() prevents the problem
- this removes the boost::filesystem::path path field from CDBEnv

Github-Pull: #6282
Rebased-From: 0ce30eaa36295447c6e7f8d16a05798c746fe28a
2015-07-29 18:29:30 +01:00
Andriy Voskoboinyk
e44aaef534 Add an alternate location of endian.h header
Github-Pull: #6246
Rebased-From: 0640a5eb60b06de61f873fd88ae0252f5a11c339
2015-07-29 18:29:30 +01:00
Cory Fields
0c9d49d65c gitian: add a gitian-win-signer descriptor
This is exactly like the current OSX signing process.

osslsigncode has been patched to detach and re-attach Windows signatures.
The changes can be seen here: https://github.com/theuni/osslsigncode/commits/attach-signature

There's a pull-request open upstream for the changes:
https://sourceforge.net/p/osslsigncode/osslsigncode/merge-requests/3/

This work has been back-ported to the stable 1.7.1 release of osslsigncode, so
that a smaller patch can be reviewed.

Github-Pull: #6303
Rebased-From: d08cfc2bd752fdb1e8547f957f1c38275540df7a
2015-07-29 18:29:30 +01:00
Wladimir J. van der Laan
7eb476e55c doc: update mailing list address
Move from sourceforge to linux foundation.

Also get rid of some other stale mentions of sourceforge.

Github-Pull: #6319
Rebased-From: 88d8525ca2ff2afc171cd0f625a098371f3a6af5
2015-07-29 18:29:30 +01:00
Wladimir J. van der Laan
c09dfd06fc Revert "Disable partition check for now, it triggers too often (issue #6251)"
Re-enable partition check, it should be safe again after #6256.

This reverts commit 3eada74d6f4720e650c67461c04c3aafdeaff21e.
2015-07-29 18:29:30 +01:00
Max K.
433f0fd670 Merge pull request #1208 from rnicoll/1.10-simplified-rewards
Remove hard coded switch on whether simplified rewards are used.
2015-07-29 19:29:24 +02:00
Ross Nicoll
a06da268ff Merge pull request #1212 from langerhans/1.10-dev-travis-caching
Update .travis.yml to make use of the new container based infrastructure
2015-07-29 18:21:48 +01:00
Max K.
ac34ac987a Merge pull request #1210 from rnicoll/1.10-auxpow-fixes
Minor AuxPoW fixes
2015-07-29 19:19:27 +02:00
Ross Nicoll
20278f5f5f Minor AuxPoW fixes
Replaced references to Namecoin with Dogecoin
Set chain ID when constructing a new block to be mined
Added assignment overload so that assigning one BlockVersion to another does a full copy.
2015-07-28 18:24:27 +00:00
Max K.
3ba610bc41 Merge pull request #1205 from rnicoll/1.10-genesis-checks
Use block height 0 when checking for genesis block
2015-07-28 00:30:28 +02:00
Ross Nicoll
5224edba34
Remove hard coded switch on whether simplified rewards are used. 2015-07-27 23:07:40 +01:00
Ross Nicoll
35ed1cfce1 Add Scrypt hash and AuxPoW header to index database
Add Scrypt hash and AuxPoW header to index database so that index can be validated
(a check that both Litecoin and Namecoin disable for simplicity). The index format
is incompatible with 1.8, as a result, however, and guidelines on performing the
upgrade will need to be prepared.

Given scope of the change, it may be advisable for services to prepare bootstrap files and destroy existing index databases entirely before reindexing. To discuss.
2015-07-26 20:07:48 +00:00
Ross Nicoll
d97a37f4a9 Use block height 0 when checking for genesis block
There is no previous block when validating the genesis block as part of contextual checks,
so block height cannot be used. Consensus parameters are now taken from height 0 for
the genesis check, and from block height only if the it's not the genesis block.
2015-07-26 12:25:03 +00:00
langerhans
1ea402fa14 Update .travis.yml to make use of the new container based infrastructure. 2015-07-25 18:58:25 +02:00
Patrick Lodder
8cd835cddb Merge pull request #1201 from rnicoll/1.10-sync
Consensus fixes
2015-07-20 15:03:02 +02:00
Ross Nicoll
77ec26804d Update Python test address and key values to match Dogecoin format. 2015-07-19 16:42:23 +00:00
Ross Nicoll
f94966f41a Disable payment protocol very large value test, as it's impossible to exceed maximum Dogecoin in a payment request. 2015-07-19 16:42:23 +00:00
coblee
106ecab0e0 Litecoin: Fix zeitgeist2 attack thanks to Lolcust and ArtForz. This fixes an issue where a 51% attack can change difficulty at will. Go back the full period unless it's the first retarget after genesis. 2015-07-19 16:42:23 +00:00
Ross Nicoll
8d52844229 Minor Dogecoin consensus fixes
Updated maximum coins to match Dogecoin.
Updated protocol version to disable connections to pre-AuxPoW clients.
Disable version 2 block requirement
Update coinbase maturity to match Dogecoin
2015-07-19 16:42:23 +00:00
Ross Nicoll
949b1ccd88 Modify chain consensus parameters to be height aware 2015-07-19 16:42:22 +00:00
Patrick Lodder
b66e509800 Merge pull request #1200 from rnicoll/1.10-auxpow-clean
Add AuxPoW support
2015-07-11 14:41:33 +02:00
Ross Nicoll
c453bcc9e5 Adapt AuxPoW to Dogecoin
Changed AuxPoW parent block hashing to use Scrypt rather than SHA256 hash.
Update chain parameters to match Dogecoin
Move CheckProofOfWork into dogecoin.cpp and rename it to CheckAuxPowProofOfWork.
Add operator overrides to CBlockVersion so that naive usage operates on the underlying version without chain ID or flags.
Modify RPC mining to more closely match existing submitblock() structure
2015-07-10 20:23:14 +01:00
Daniel Kraft
eabf633f13 Merge AuxPoW support from Namecore
Includes the following commits:

commit 2ea1b5cd8cf2bdd08e43ae39fb76352eebe14895
commit f2a8220c34275f022f02d81e9e84d4cec33bd51c
commit 84b8b56113e6057b0253475b83e797dc1fed2eed
commit 8471d5db221f145f5a40022ed1897c1b996b628e
commit 2f125ad0a67e1b8f71b18a14a3b41d7e577391d1
commit e01dbc3608703b4cb4e9882738125f2b7816cdb8
commit f0421312631cd44669f9f84d339a0c470b4423b9
commit 1fd522db5dfddfd0e1b0c794b82fae2cc7bdb099
commit 71f63ad99f70ff6461c795fd728aea16aa1008f8
commit a7c44d98a8ded4df0e8455c4c5629b1a5b303bbf
commit e1d7b4fc15addf3dfeb3853fa66230a8bdacd75f
commit d016f2fa02572fd340129176b942b3f19bd5260b
commit f4716e5a168a697afce854a37350fdae0988bdd8
commit 03a575e3b13bf06cbb0a007d6672b05d2085c26e
commit d7ea37444bd9e9ac461a3dda0b16afefd160b062
commit db22affa01e050ff847a12e20c83b88952d80b59
commit 9b7e14986655f914b2d0903ca1d79367c92c6c7e
commit e21034f9c124893d5b9631e9ca231b0b9ede3d52

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.
2015-07-05 18:45:24 +01:00
Ross Nicoll
548aaaf39f Merge pull request #1199 from patricklodder/1.10-partition-alert
[tests] fix partition alerts for Dogecoin
2015-07-05 16:56:59 +01:00
Patrick Lodder
8733540186 [tests] fix partition alerts for Dogecoin
Partitioning is tested over 4h and 100 blocks are insufficient
to test this for Dogecoin. We need 640 blocks in 4h for the
"abnormally high" alert test, I've found a set of 800 blocks to
test over providing sufficient margin.
2015-07-05 16:37:11 +02:00
Patrick Lodder
60e0da333c Merge pull request #1198 from rnicoll/1.10-rpc-tests
Further unit test corrections
2015-07-05 12:46:24 +02:00
Ross Nicoll
3de28f1f9d
Further unit test corrections
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.

Correct BIP32 key headers for Dogecoin, also by repacking the data.

Disabled Bitcoin PoW tests, but left code in place to simplify later merges. These are
replaced by the Dogecoin PoW tests.
2015-07-05 09:06:51 +01:00
Ross Nicoll
a6ef16e66c Merge pull request #1194 from patricklodder/1.10-unit-tests
[tests] use dogecoin fixtures, pt1
2015-07-04 00:02:58 +01:00
Patrick Lodder
dcea4af668 [tests] use dogecoin fixtures pt1
uses our test fixtures for:
- alerts
- base58
- keys
- main
- miner
2015-07-03 23:17:31 +02:00
Patrick Lodder
5dc7a35f8d Merge pull request #1189 from rnicoll/1.10-digishield
Added Digishield support and unit tests
2015-06-29 11:02:24 +02:00
Ross Nicoll
8da45ed40b
Added Digishield support and unit tests 2015-06-28 22:10:58 +01:00
Max K.
e0ca377684 Merge pull request #1188 from rnicoll/1.10-reward
Add Dogecoin block subsidy calculations
2015-06-28 20:42:03 +02:00
Ross Nicoll
2468489d4e Add Dogecoin block subsidy calculations. 2015-06-28 18:04:45 +01:00
Patrick Lodder
a87d6f1004 Merge pull request #1187 from rnicoll/1.10-scrypt
Scrypt PoW
2015-06-28 18:59:58 +02:00
Ross Nicoll
a99e717ed6 Added Scrypt mining support based on Dogecoin 1.9 work. 2015-06-28 16:21:09 +00:00
Warren Togami
8a7d5338c2 Litecoin: Scrypt n=1024 Pow hash based upon Colin Percival's Tarnsnap (2009)
Modified by Artforz, coblee, pooler, wtogami, Nikolay Belikov, Adrian Gallagher

miner.cpp changes stripped during merge to Dogecoin
2015-06-28 16:21:02 +00:00
Ross Nicoll
9b70a1f0b3 Merge pull request #1184 from patricklodder/1.10-chainparams
Port Dogecoin base chainparams. Merging with less testing than normal, as this is a pre-requisite for most other tests
2015-06-28 12:37:31 +01:00
Patrick Lodder
1aaa174eb1 Merge pull request #1182 from langerhans/1.10-dev-depends
Update dependencies and BDB
2015-06-28 12:10:03 +02:00
Patrick Lodder
5f769e00cf port dogecoin base chainparams 2015-06-27 22:18:25 +02:00