16479 Commits

Author SHA1 Message Date
e0
f60e84dba4 Limit the number of IPs we use from each DNS seeder
A risk exists where a malicious DNS seeder eclipses a node by returning an enormous number of IP addresses. In this commit we mitigate this risk by limiting the number of IP addresses addrman learns to 256 per DNS seeder.

GitHub-Pull: #12626
Rebased-From: 46e7f80
2018-04-26 23:43:54 +08:00
MarcoFalke
9ea62a3dc4
Merge #13049: [0.16] qa: Backports
41c29f6d1d qa: Fix python TypeError in script.py (MarcoFalke)
7460945e0b [qa] Delete cookie file before starting node (Suhas Daftuar)
0a76ed232a qa: Cache only chain and wallet for regtest datadir (MarcoFalke)
6c26df06ad [qa] Ensure bitcoind processes are cleaned up when tests end (Suhas Daftuar)
df38b130d9 [tests] Test starting bitcoind with -h and -version (John Newbery)
4bdb0ce517 [tests] Fix intermittent rpc_net.py failure. (John Newbery)
0e98f96e42 test: Use wait_until in tests where time was used for polling (Ben Woosley)
1286f3e49a test: Use wait_until to ensure ping goes out (Ben Woosley)
cfebd400ef [test] Round target fee to 8 decimals in assert_fee_amount (Karl-Johan Alm)

Pull request description:

  Similar to #12967 this contains all relevant bugfixes and improvements to the functional test suite.

  I didn't include fixes to make the tests run on Windows, since that is still an ongoing effort and doesn't seem worth to backport.

  As all of these are clean cherry-picks, I suggest reviewers redo the cherry-picks to get the same branch and then run the extended test suite.

Tree-SHA512: 70e1bc28d5572f93796f1ac4d97d77e8146869c15dcc1e3b65a730fa2641283050f769cefd9791d800c758e0a92f11fd55ed0797ccec87b897c7e701d0187f34
2018-04-24 10:02:56 -04:00
MarcoFalke
41c29f6d1d qa: Fix python TypeError in script.py
Github-Pull: #12475
Rebased-From: fa41d68a2e3f2148c3539a11b61ff835e3141c0d
2018-04-20 18:38:41 -04:00
Suhas Daftuar
7460945e0b [qa] Delete cookie file before starting node
If a cookie file exists in a datadir prior to node startup, it must have
been leftover from a prior unclean shutdown. As bitcoind will overwrite
it anyway, delete it before starting up to prevent the test framework
from inadvertently trying to connect using stale credentials.

Github-Pull: #12902
Rebased-From: 75d0e4c5444249f0cf81ed0494e2c2717170b695
2018-04-20 18:38:41 -04:00
MarcoFalke
0a76ed232a qa: Cache only chain and wallet for regtest datadir
Github-Pull: #12638
Rebased-From: fa2310572f4cfcd3322409ce7e37dde155fc4bc9
2018-04-20 18:38:41 -04:00
Suhas Daftuar
6c26df06ad [qa] Ensure bitcoind processes are cleaned up when tests end
Github-Pull: #12904
Rebased-From: e36a0c08529bccc695ec71a7ec1df89367cc1628
2018-04-20 18:38:41 -04:00
John Newbery
df38b130d9 [tests] Test starting bitcoind with -h and -version
Github-Pull: #12843
Rebased-From: 63048ec73d790ecbcfe3186f2520dac4460f56e3
2018-04-20 18:38:41 -04:00
John Newbery
4bdb0ce517 [tests] Fix intermittent rpc_net.py failure.
rpc_net.py would intermittently fail on Travis, probably
due to assuming that two consecutive RPC calls were atomic.
Fix this by only testing that amounts are bounded above and
below rather than equal.

Github-Pull: #12804
Rebased-From: 5a67c0524e5dc98d0e387f189545bc99863916d4
2018-04-20 18:38:41 -04:00
Ben Woosley
0e98f96e42 test: Use wait_until in tests where time was used for polling
Github-Pull: #12553
Rebased-From: 81b0822772169cb697b5994f49398e619d61a12d
2018-04-20 18:38:41 -04:00
Ben Woosley
1286f3e49a test: Use wait_until to ensure ping goes out
Intermittent failure evident here:
https://travis-ci.org/bitcoin/bitcoin/jobs/344021180

Github-Pull: #12545
Rebased-From: 0eb84f30d80847b7392ad42b2d916eaf5923a63c
2018-04-20 18:38:41 -04:00
Karl-Johan Alm
cfebd400ef [test] Round target fee to 8 decimals in assert_fee_amount
The output would produce arbitrary number of decimal points, sometimes resulting in 9 decimals:
AssertionError: Fee of 0.00000415 BTC too low! (Should be 0.000006175 BTC)
The above looks like the expected fee is 6175 sats when in reality it's 618.

Github-Pull: #12486
Rebased-From: 42e1b5d9797b65d3ce13a7cbace15fbedbcd4018
2018-04-20 14:58:48 -04:00
Adrian Gallagher
3567effe20
Litecoin: v0.16.0 release notes v0.16.0rc1 2018-03-15 16:47:14 -07:00
Xinxi Wang
3f8b8a6c5f
Litecoin: M prefix added for script addresses 2018-03-15 16:47:12 -07:00
Adrian Gallagher
5480ad8e0c
Litecoin: Add 0.15.1 to historic release notes 2018-03-15 16:47:10 -07:00
Adrian Gallagher
dd392b9acc
Litecoin: Update Qt translations 2018-03-15 16:47:04 -07:00
Adrian Gallagher
b741130553
Litecoin: Update man pages 2018-03-15 15:57:28 -07:00
Adrian Gallagher
32ee7c79ae
Litecoin: Fix tests 2018-03-15 15:57:27 -07:00
Adrian Gallagher
f1e1ab4ebc
Litecoin: Update bech32 HRP's 2018-03-15 15:57:25 -07:00
Adrian Gallagher
c080338943
Litecoin: Update windeploy cert and timestamping server 2018-03-15 15:57:24 -07:00
Adrian Gallagher
f117e96e0f
Litecoin: Adjust fee system 2018-03-15 15:57:22 -07:00
Adrian Gallagher
9ceb94dcff
Litecoin: Release notes for v0.15.1 2018-03-15 15:57:21 -07:00
Adrian Gallagher
7925bde077
Litecoin: Update trusted keys
GPG keys for coblee, shaolinfry, thrasher and xinxi
2018-03-15 15:57:19 -07:00
Adrian Gallagher
a4d46721b1
Litecoin: Adjust Travis 2018-03-15 15:57:10 -07:00
Romano
08f2538862
Litecoin: Enable support for SSE2 instructions in scrypt via configure --enable-sse2 (#362) 2018-03-15 15:25:42 -07:00
Adrian Gallagher
020b92fb75
Litecoin: Update chainparams and blockchain size 2018-03-15 15:25:40 -07:00
Adrian Gallagher
e4aa272478
Litecoin: Update hardcoded seeds 2018-03-15 15:25:39 -07:00
Adrian Gallagher
5dab5e6757
Litecoin: Adjust splashscreen for testnet/regtest 2018-03-15 15:25:37 -07:00
Adrian Gallagher
a74a01e617
Litecoin: Branding 2018-03-15 15:25:31 -07:00
Wladimir J. van der Laan
845838c445
Merge #12636: backport: #11995 Fix Qt build with Xcode 9
f3b8d85 devtools: Exclude patches from lint-whitespace GitHub-Pull: #12442 Rebased-From: fafbf7f (MarcoFalke)
686cb86 [Depends] Fix Qt build with Xcode 9.2 (fanquake)

Pull request description:

  GitHub-Pull: #11995
  Rebased-From: 2b1f794

Tree-SHA512: 73d1c0a87fd135f3ad8bb737b97037ef047e582c41a7473833e82776957caf372fcd0caa764fc4eed792e9998e214ae829bad5535db6d589827085a74b0fa6f4
2018-03-14 16:16:59 +01:00
MarcoFalke
f3b8d85b4b devtools: Exclude patches from lint-whitespace
GitHub-Pull: #12442
Rebased-From: fafbf7f
2018-03-14 21:46:45 +08:00
Wladimir J. van der Laan
46ca8f383e
Merge #12648: [0.16] test: Update trusted git root
faf316a43 test: Update trust git root (Wladimir J. van der Laan)

Pull request description:

  Marco Falke's old key expired, causing a travis error while verifying
  commits 36afd4db4442c45d4078b1a7ad16a1872b5bee0d and before:

      gpg: Good signature from "Marco Falke <marco.falke@tum.de>" [unknown]
      gpg:                 aka "Marco Falke <falke.marco@gmail.com>" [unknown]
      gpg: Note: This key has expired!
      Primary key fingerprint: B8B3 F1C0 E58C 15DB 6A81  D30C 3648 A882 F431 6B9B
        Subkey fingerprint: FE09 B823 E6D8 3A3B C798  3EAA 2D7F 2372 E50F E137

  Update the trusted root commit to the commit after that, to fix
  this issue.

  (cherry picked from commit 7deba93bdc76616011a9f493cbc203d60084416f)

Tree-SHA512: c86cc23d087af54a1448545c122fc67a0c556b5eac8ac7d16eeec8c42d8d0d81b7b5041f9a175787604aa47883b68403cfa01c10a52db64e35be52e559b20ec8
2018-03-13 16:18:15 +01:00
fanquake
686cb86002 [Depends] Fix Qt build with Xcode 9.2
GitHub-Pull: #11995
Rebased-From: 2b1f794
2018-03-12 06:59:48 +08:00
Wladimir J. van der Laan
faf316a43f
test: Update trust git root
Marco Falke's old key expired, causing a travis error while verifying
commits 36afd4db4442c45d4078b1a7ad16a1872b5bee0d and before:

    gpg: Good signature from "Marco Falke <marco.falke@tum.de>" [unknown]
    gpg:                 aka "Marco Falke <falke.marco@gmail.com>" [unknown]
    gpg: Note: This key has expired!
    Primary key fingerprint: B8B3 F1C0 E58C 15DB 6A81  D30C 3648 A882 F431 6B9B
      Subkey fingerprint: FE09 B823 E6D8 3A3B C798  3EAA 2D7F 2372 E50F E137

Update the trusted root commit to the commit after that, to fix
this issue.

(cherry picked from commit 7deba93bdc76616011a9f493cbc203d60084416f)
2018-03-08 10:53:38 -05:00
MarcoFalke
60086ddc34
Merge #12637: backport: #12556 fix version typo in getpeerinfo RPC call help
e730b82b07 fix version typo (Tamas Blummer)

Pull request description:

  GitHub-Pull: #12556
  Rebased-From: d16bfaa

Tree-SHA512: b6626fabdd5f493016334ada0182565c7f834a22dc08dc846c71a190e61193dd4e28754e67b20086d9afeab9a58e38c3621c614eadf368b2d35b9c08a843356a
2018-03-07 16:14:40 -05:00
Tamas Blummer
e730b82b07 fix version typo
GitHub-Pull: #12556
Rebased-From: d16bfaa
2018-03-07 11:40:14 -05:00
MarcoFalke
72a3290c90
Merge #12585: [0.16] depends: Switch to downloading expat from GitHub
25afebc2ba depends: Switch expat download to GitHub (fanquake)

Pull request description:

  @droark [mentioned](https://github.com/bitcoin/bitcoin/pull/12402#issuecomment-370098383) the expat download was failing when trying to gitian build 0.16.
  I tried locally and also saw issues:
  ```
  make download
  Checksum missing or mismatched for expat source. Forcing re-download.
  Fetching expat-2.2.1.tar.bz2 from https://downloads.sourceforge.net/project/expat/expat/2.2.1
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
    0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  100   652  100   652    0     0    361      0  0:00:01  0:00:01 --:--:--     0
  /Users/xxx/Github/bitcoin/depends/work/download/expat-2.2.1/expat-2.2.1.tar.bz2.temp: FAILED
  shasum: WARNING: 1 computed checksum did NOT match
  Fetching expat-2.2.1.tar.bz2 from https://bitcoincore.org/depends-sources
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
    0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  curl: (22) The requested URL returned error: 404 Not Found
  make[1]: *** [/Users/xxx/Github/bitcoin/depends/sources/download-stamps/.stamp_fetched-expat-expat-2.2.1.tar.bz2.hash] Error 22
  make: *** [download-linux] Error 2
  ```
  This switches to downloading from GitHub, as we are doing in master.

Tree-SHA512: 0e3072ce4d8fee3e2bc434afc7469968c21e01ca35aa2ccbffc25f8e9b00af2e4a5f3f9e4cd5c0cd8e72a10b16205236eb0536380849109a739c09358dbc1394
2018-03-05 08:01:18 -05:00
Adrian Gallagher
fee6799b12
Litecoin: Protocol and default settings
0) Adjust BIP30 enforcement values

1) Reduce amount that peers can adjust our time to eliminate an attack vector. Thanks to
coblee for this fix.

2) Zeitgeist2 patch - 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.

3) Avoid overflow in CalculateNextWorkRequired(). Thanks to pooler for the overflow fix.

4) Zeitgeist2 bool fshift bnNew.bits(). Thanks to romanornr for this path.

5) SegWit ContextualCheckBlockHeader adjustment and extra coverage.

6) Reject peer proto version below 70002. Thanks to wtogami for this patch.

7) Send final alert message to nodes warning about removal of the alert system. Thanks to coblee for this patch.

8) Adjust default settings for Litecoin.
2018-03-04 18:13:23 -08:00
fanquake
25afebc2ba
depends: Switch expat download to GitHub 2018-03-03 11:58:25 +08:00
Wladimir J. van der Laan
a17fecfdf0
Merge #12518: [0.16] Bump leveldb subtree
835a21b Squashed 'src/leveldb/' changes from c521b3ac65..64052c76c5 (MarcoFalke)

Pull request description:

  The leveldb bump is the same branch/commit as in #12451

Tree-SHA512: 585a55747c75e990c9fd73399e98e548c01bef8b960c0a99844326de43663d004d2211b4689518f2d3e51cc48a732e9c92082939c356793143db411224fa75fa
2018-03-01 19:42:33 +01:00
Wladimir J. van der Laan
ea2e39fd20
qt: Remove faulty and unnecessary en_US translation
This faulty translation contained Chinese messages, and as en_US is our
source language, having a separate translation for it is pointless, remove it.

Tree-SHA512: 8493876926355890aa3b713851ed53d37ffe601280f7e0f45461abfe9671af10dc5c6ce966adb89b663486a46df43b0a36b797da7e1cd719597a7e15914bd4a2
2018-02-27 15:51:22 +01:00
Wladimir J. van der Laan
01f931b928
test: Add missing signal.h header
util_tests.cpp needs to include the signal.h header on FreeBSD.

Reported by denis2342 on IRC.

Github-Pull: #12447
Rebased-From: dd7e42cbb4390788705031ffa0bc893d26f0597e
Tree-SHA512: 10ead029bb59f5d69e37b5679c710f22d64051de26e1ec8342eec4e4dec4d76249e16dff78d192972bcb8d139d99c7555a7cb2fe43b2b911103eab6d6f943b79
2018-02-27 10:49:44 +01:00
Wladimir J. van der Laan
5d41110c74
doc: Clear out release notes post-0.16.0
Moved to: https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.16.0.md

Tree-SHA512: 6619521357a1baa5df2d4deb9e75784f6f48711a7b5d5120cf02b47a80e242e41dcf34dadfd1b257bbdcd883c7dd216d36fbfff24abcf03c590bbf0f6bbec520
2018-02-27 10:48:39 +01:00
Adrian Gallagher
ecf6fd0aab
Litecoin: Fix copyright year value 2018-02-26 18:57:17 -08:00
shaolinfry
bedc323373
Litecoin: Update gitian descriptors 2018-02-26 18:57:17 -08:00
Adrian Gallagher
e838c27971
Litecoin: Fix various tests 2018-02-26 18:57:17 -08:00
shaolinfry
d429c192ab
Litecoin: Developer gpg keys 2018-02-26 18:57:17 -08:00
Martin Smith
029707c6ee
Litecoin: Add Litecoin logos and icons
# Conflicts:
#	share/pixmaps/nsis-header.bmp
#	share/pixmaps/nsis-wizard.bmp
2018-02-26 18:57:17 -08:00
shaolinfry
4b588c670c
Litecoin: Add scrypt N=1024 PoW 2018-02-26 18:57:17 -08:00
shaolinfry
cbf7b9c79d
Litecoin: Adjust chain parameters 2018-02-26 18:57:17 -08:00
shaolinfry
f0e0dcaaaa
Litecoin: Add historical release notes 2018-02-26 18:57:17 -08:00