7816 Commits

Author SHA1 Message Date
Cory Fields
f2d2dffad9 osx: bump build sdk to 10.9
Conflicts:
	.travis.yml
2015-10-21 20:43:09 +11:00
Adrian Gallagher
4edf63fbe9 Litecoin: Update NSBundle identifier for OSX notifications 2015-10-21 20:43:06 +11:00
Adrian Gallagher
6c09388121 Litecoin: Bump Gitian build time to a more recent date. 2015-10-21 20:43:03 +11:00
Pavel Janík
d48da05049 Do not store more than 200 timedata samples.
Github-Pull: #6797
Rebased-From: 8be371db340b03dc03142c1bb3390fdfc84f56b4
2015-10-21 20:43:01 +11:00
Wladimir J. van der Laan
ab3a8ad7c1 net: Disable upnp by default
Common sentiment is that the miniupnpc codebase likely contains further
vulnerabilities.

I'd prefer to get rid of the dependency completely, but a compromise for
now is to at least disable it by default.

Rebased-From: 21d27ebad5721bc61c62bc72dc3ab3197f9da268
Github-Pull: #6795
2015-10-21 20:42:58 +11:00
Adrian Gallagher
09da4b1cd6 Litecoin: Cosmetic translation string changes. 2015-10-21 20:42:55 +11:00
Adrian Gallagher
a20b2ea6a0 Merge remote-tracking branch 'bitcoin/0.10' into master-0.10
Conflicts:
	README.md
	configure.ac
	src/clientversion.h
	src/qt/locale/bitcoin_be_BY.ts
	src/qt/locale/bitcoin_ca@valencia.ts
	src/qt/locale/bitcoin_cs.ts
	src/qt/locale/bitcoin_el_GR.ts
	src/qt/locale/bitcoin_eo.ts
	src/qt/locale/bitcoin_fa.ts
	src/qt/locale/bitcoin_fi.ts
	src/qt/locale/bitcoin_hr.ts
	src/qt/locale/bitcoin_hu.ts
	src/qt/locale/bitcoin_lt.ts
	src/qt/locale/bitcoin_pl.ts
	src/qt/locale/bitcoin_pt_BR.ts
	src/qt/locale/bitcoin_pt_PT.ts
	src/qt/locale/bitcoin_ru.ts
	src/qt/locale/bitcoin_sk.ts
	src/qt/locale/bitcoin_sl_SI.ts
	src/qt/locale/bitcoin_uk.ts
	src/test/alert_tests.cpp
2015-10-10 13:37:46 +11:00
Wladimir J. van der Laan
cf5bf5542a
Bump version to 0.10.3 2015-10-09 18:13:18 +02:00
Wladimir J. van der Laan
44d6bc8528
qt: Translations update before 0.10.3 2015-10-09 15:29:02 +02:00
Wladimir J. van der Laan
1bf6ac62ab
doc: Update release notes for 0.10.3 2015-10-09 15:27:16 +02:00
Wladimir J. van der Laan
093d7b5895
Update miniupnpc to 1.9.20151008
This version of miniupnpc fixes a buffer overflow in the XML (ugh)
parser during initial network discovery.

http://talosintel.com/reports/TALOS-2015-0035/

The commit fixing the vulnerability is:
79cca974a4

Reported by timothy on IRC.

Github-Pull: #6789
Rebased-From: 0cca0248f030ea32bd8de778b5a2782e0d191978
2015-10-09 14:54:20 +02:00
Gregory Maxwell
1cea6b0dee
Test LowS in standardness, removes nuisance malleability vector.
This adds SCRIPT_VERIFY_LOW_S to STANDARD_SCRIPT_VERIFY_FLAGS which
 will make the node require the canonical 'low-s' encoding for
 ECDSA signatures when relaying or mining.

Consensus behavior is unchanged.

The rational is explained in a81cd96805ce6b65cca3a40ebbd3b2eb428abb7b:
 Absent this kind of test ECDSA is not a strong signature as given
 a valid signature {r, s} both that value and {r, -s mod n} are valid.
 These two encodings have different hashes allowing third parties a
 vector to change users txids.  These attacks are avoided by picking
 a particular form as canonical and rejecting the other form(s); in
 the of the LOW_S rule, the smaller of the two possible S values is
 used.

If widely deployed this change would eliminate the last remaining
 known vector for nuisance malleability on boring SIGHASH_ALL
 p2pkh transactions.  On the down-side it will block most
 transactions made by sufficiently out of date software.

Unlike the other avenues to change txids on boring transactions this
 one was randomly violated by all deployed bitcoin software prior to
 its discovery.  So, while other malleability vectors where made
 non-standard as soon as they were discovered, this one has remained
 permitted.  Even BIP62 did not propose applying this rule to
 old version transactions, but conforming implementations have become
 much more common since BIP62 was initially written.

Bitcoin Core has produced compatible signatures since a28fb70e in
 September 2013, but this didn't make it into a release until 0.9
 in March 2014; Bitcoinj has done so for a similar span of time.
 Bitcoinjs and electrum have been more recently updated.

This does not replace the need for BIP62 or similar, as miners can
 still cooperate to break transactions.  Nor does it replace the
 need for wallet software to handle malleability sanely[1]. This
 only eliminates the cheap and irritating DOS attack.

[1] On the Malleability of Bitcoin Transactions
Marcin Andrychowicz, Stefan Dziembowski, Daniel Malinowski, Łukasz Mazurek
http://fc15.ifca.ai/preproceedings/bitcoin/paper_9.pdf

Conflicts:
	src/policy/policy.h

Rebased-From: b196b685c9089b74fd4ff3d9a28ea847ab36179b
Github-Pull: #6769
2015-10-07 11:17:08 +02:00
Wladimir J. van der Laan
9bd0b4a633
qt: periodic translations update 2015-09-29 12:35:34 +02:00
Wladimir J. van der Laan
743cc9e08b
Merge pull request #6704
5e6d893 travis: for travis generating an extra build (Cory Fields)
ceba0f8 PARTIAL: typofixes (found by misspell_fixer) (Veres Lajos)
2ede6b7 add support for miniupnpc api version 14 (Pavel Vasin)
0dfcdd4 rpc-tests: re-enable rpc-tests for Windows (Cory Fields)
c9ad65e net: Set SO_REUSEADDR for Windows too (Cory Fields)
0194bdd add unit test for CNetAddr::GetGroup. (Alex Morcos)
bdf2542 Fix masking of irrelevant bits in address groups. (Alex Morcos)
65426ac Add missing files to files.md (fanquake)
28d76d2 Handle leveldb::DestroyDB() errors on wipe failure (Adam Weiss)
843469e Use unique name for AlertNotify tempfile (Casey Rodarmor)
4e5ea71 Make sure LogPrint strings are line-terminated (J Ross Nicoll)
3861f0f build: fix libressl detection (Cory Fields)
04507de Avoid leaking file descriptors in RegisterLoad (Casey Rodarmor)
8b59079 Add autogen.sh to source tarball. (randy-waterhouse)
2015-09-22 18:06:57 +02:00
Jonas Schnelli
f696ea12e1
[QT] fix thin space word wrap line brake issue
The thin space QT html hack results in cut-off chars/nums after a line break.

Avoid word wrap line breaks by using a smaller font and a line break before each alternative value)

Rebased-From: 24cb7c7bbba224dcb73fcf69296f5ef4734f745f
Github-Pull: #6694
2015-09-22 10:49:45 +02:00
Cory Fields
5e6d893650 travis: for travis generating an extra build 2015-09-21 16:01:24 +00:00
Veres Lajos
ceba0f8c7e PARTIAL: typofixes (found by misspell_fixer)
Upstream: 9f68ed6b6d1a9c6436ce37913666165f2b180ee3 (PR #6539)
2015-09-21 05:21:32 +00:00
Pavel Vasin
2ede6b7142 add support for miniupnpc api version 14
The value of new arg ttl is set to 2 as it's recommended default.
2015-09-21 05:21:32 +00:00
Cory Fields
0dfcdd41eb rpc-tests: re-enable rpc-tests for Windows 2015-09-21 05:21:32 +00:00
Cory Fields
c9ad65e5fa net: Set SO_REUSEADDR for Windows too
When running the rpc tests in Wine, nodes often fail to listen on localhost
due to a stale socket from a previous run. This aligns the behavior with other
platforms.
2015-09-21 05:21:31 +00:00
Alex Morcos
0194bddde4 add unit test for CNetAddr::GetGroup. 2015-09-21 05:21:31 +00:00
Alex Morcos
bdf2542787 Fix masking of irrelevant bits in address groups. 2015-09-21 05:21:31 +00:00
fanquake
65426acb4d Add missing files to files.md
typo
2015-09-21 05:21:31 +00:00
Adam Weiss
28d76d2aea Handle leveldb::DestroyDB() errors on wipe failure
Add error checking to CLevelDBWrapper for errors from
leveldb::DestroyDB().  Without it, if unlink() or DeleteFileW() fail to
delete files, they will fail silent.  If they fail to delete any files,
CLevelDBWrapper will silently open and read the existing database.

Typically any permissions issues would be caught by leveldb as it churns
through many files as part of its compaction process, but it is
conceivable that this could cause problems on Windows with anti-virus
and indexing software.
2015-09-21 05:21:30 +00:00
Casey Rodarmor
843469ee15 Use unique name for AlertNotify tempfile 2015-09-21 05:21:30 +00:00
J Ross Nicoll
4e5ea71bd5 Make sure LogPrint strings are line-terminated 2015-09-21 05:21:30 +00:00
Cory Fields
3861f0fa21 build: fix libressl detection
Checking libcrypto for a function after we've already found a (possibly
different) libcrypto is not what we want to do here.

pkg-config might've found a cross lib while AC_CHECK_LIB may find a different
or native one.

Run a link-test against the lib that's already been found instead.
2015-09-21 05:21:30 +00:00
Casey Rodarmor
04507de3b7 Avoid leaking file descriptors in RegisterLoad
This is pretty trivial, but if there's an error here we'll leak a file
descriptor. Changed it to always close the file.
2015-09-21 05:21:29 +00:00
randy-waterhouse
8b59079b8d Add autogen.sh to source tarball. 2015-09-21 05:21:29 +00:00
Adrian Gallagher
90c884bffe Merge pull request #212 from kaykurokawa/master-0.10
changing default confirm target for fee estimation to 2
2015-08-15 18:20:02 +10:00
kaykurokawa
3119f5802e Litecoin: changing default confirm target for fee estimation to 2 2015-08-13 23:49:44 -04:00
Wladimir J. van der Laan
ae52a7ffd1
Fix warning introduced by #6412
SOCKET are defined as unsigned integers, thus always >=0.

Rebased-From: 89289d875da108c42ca013f33597eda46cb6eb53
2015-07-20 17:30:17 +02:00
Pieter Wuille
0739e6e57a
Test whether created sockets are select()able
Conflicts:
	src/net.cpp

Github-Pull: #6412
Rebased-From: d422f9b1fdb42a51aadaa1bbc157542dca2feb17
2015-07-20 17:29:44 +02:00
฿tcDrak
255eced936 Updated URL location of netinstall for Debian
Conflicts:
	doc/gitian-building.md

Github-Pull: #6439
Rebased-From: 09d4ddf1c5841b757c2676d508a68baa2dbdc4c7
2015-07-17 09:27:48 +02:00
Cory Fields
7e66e9c97b
openssl: avoid config file load/race
Rebased-From: d4b1d5a8baf18e4c8d62846360c0c1c0c9331d70
Github-Pull: #6438
2015-07-17 09:16:57 +02:00
Adrian Gallagher
cae9e5cd50 Merge pull request #210 from CohibAA/patch-1
fix typo (Liteocin -> Litecoin)
2015-07-12 18:47:43 +10:00
CohibAA
abb7bced34 fix typo (Liteocin -> Litecoin)
fix typo (Liteocin -> Litecoin)
2015-07-11 23:47:10 -06:00
Adrian Gallagher
c99dac5571 Merge pull request #208 from thrasher-/master-0.10
Litecoin: Fix 'make check' testing suite.
2015-07-04 20:17:16 +10:00
Adrian Gallagher
3bd8cc3f23 Litecoin: Update Quality Assurance procedure in README.md file. 2015-07-04 18:28:27 +10:00
Adrian Gallagher
e5bd36ab23 Litecoin: Fix 'make check' testing suite. 2015-07-04 18:10:11 +10:00
Wladimir J. van der Laan
3f5563877a
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-06-22 13:40:20 +02:00
Adrian Gallagher
228abe433a Litecoin: Update build instructions for OSX and Unix. 2015-06-21 10:29:13 +10:00
Adrian Gallagher
72ece8bf54 Merge remote-tracking branch 'bitcoin/0.10' into master-0.10
Conflicts:
	src/main.h
2015-06-15 18:51:30 +10:00
Wladimir J. van der Laan
be6420407b
Add option -alerts to opt out of alert system
Make it possible to opt-out of the centralized alert system by providing
an option `-noalerts` or `-alerts=0`. The default remains unchanged.

This is a gentler form of #6260, in which I went a bit overboard by
removing the alert system completely.

I intend to add this to the GUI options in another pull after this.

Conflicts:
	src/init.cpp
	src/main.cpp

Github-Pull: #6274
Rebased-From: 02a6702a82a5b00e0e0351041dd3267308b7f319
2015-06-15 10:17:56 +02:00
Tom Harding
0fd8464458
Fix getbalance *
Chance "getbalance *" not to use IsTrusted.  The method and result
now match the "getbalance <specific-account>" behavior. In
particular, "getbalance * 0" now works.

Also fixed a comment -- GetGalance has required 1 confirmation
for many years, and the default "getbalance *" behavior matches
that.

Github-Pull: #6276
Rebased-From: 7d6a85ab5b1dc96e0f3f6f835f27bb81ba2af919
Rebased-By: @trasher-
2015-06-15 10:13:13 +02:00
Adrian Gallagher
8d99544165 Litecoin: Updated testnet alert key (Coblee's) 2015-06-11 19:02:18 +10:00
Adrian Gallagher
e8d394ab97 Litecoin: v0.10.2.2 release notes 2015-06-11 17:10:20 +10:00
Adrian Gallagher
a15c50e653 Litecoin Core v0.10.2.2 2015-06-11 17:05:03 +10:00
Adrian Gallagher
2f2d3f6ea2 Merge remote-tracking branch 'bitcoin/0.10' into master-0.10 2015-06-11 16:57:45 +10:00
Adrian Gallagher
f607d55aff Merge pull request #198 from Gitju/patch-2
Litecoin: String update s/Bitcoin/Litecoin/
2015-06-11 14:42:40 +10:00