7851 Commits

Author SHA1 Message Date
Eric Lombrozo
9fc33c2abb Clarification of unit test build instructions. 2015-12-02 21:35:38 +11:00
Matt Corallo
ce23ae8a44 Update bluematt-key, the old one is long-since revoked 2015-12-02 21:35:29 +11:00
Wladimir J. van der Laan
3c5b5b54e5 build: disable -Wself-assign
Prevent these warnings in clang 3.6:

    ./serialize.h:96:9: warning: explicitly assigning value of variable of type 'uint64_t' (aka 'unsigned long') to itself [-Wself-assign]
        obj = (obj);
        ~~~ ^  ~~~
2015-12-02 21:35:19 +11:00
Luke Dashjr
3979267180 Bugfix: Allow mining on top of old tip blocks for testnet (fixes testnet-in-a-box use case) 2015-12-02 21:33:14 +11:00
Zak Wilcox
6e3871b096 Drop "with minimal dependencies" from description
Five boost libs plus libcrypto are needed; I don't think that quite passes for minimal.
2015-12-02 18:40:11 +11:00
Zak Wilcox
c800a2e744 Split bitcoin-tx into its own package
Reverts the change putting it in the bitcoind deb.
2015-12-02 18:40:00 +11:00
Zak Wilcox
87681a312b Include bitcoin-tx binary on Debian/Ubuntu
Currently left out of Matt's PPA.  Debian's package for unstable already has it.
2015-12-02 18:39:53 +11:00
MarcoFalke
89727808a3 [Qt] Raise debug window when requested
* Raise the debug window when hidden behind other windows
* Switch to the debug window when on another virtual desktop
* Show the debug window when minimized

This change is a conceptual copy of 5ffaaba and 382e9e2
2015-12-02 18:39:43 +11:00
Alex Morcos
f7e19810d2 Fix locking in GetTransaction.
GetTransaction needs to lock cs_main until ReadBlockFromDisk completes, the data inside CBlockIndex's can change since pruning.  This lock was held by all calls to GetTransaction except rest_tx.
2015-12-02 18:39:33 +11:00
Diego Viola
1ad4b0cf32 Fix spelling of Qt 2015-12-02 18:39:23 +11:00
Pieter Wuille
3e79703025 Squashed 'src/leveldb/' changes from 7d41e6f..20ca81f
20ca81f Merge pull request #9
7aa105e leveldb: Win32WritableFile without memory mapping

git-subtree-dir: src/leveldb
git-subtree-split: 20ca81f08fb7fa108923a091668e447dcf5c6b9d
2015-12-02 18:38:44 +11:00
Wladimir J. van der Laan
163fe03b87 qt: Final translations update on 0.10 branch
Translations for 0.12 have been opened, translations for 0.10 have been
closed.
2015-12-02 18:38:23 +11:00
Adrian Gallagher
c77a6f7bcc Merge pull request #226 from btcdrak/op_return80
Increase OP_ RETURN relay to 80 bytes
2015-11-30 00:09:12 +11:00
Adrian Gallagher
61f3a92c1e Merge pull request #225 from btcdrak/checklocktimeverfiy
BIP65: CHECKLOCKTIMEVERIFY
2015-11-30 00:09:04 +11:00
BtcDrak
658c70b693 Increase OP_ RETURN relay to 80 bytes 2015-11-29 00:13:22 +00:00
BtcDrak
535e29c888 Add documentation for BIP65 to release notes 2015-11-29 00:06:28 +00:00
BtcDrak
d8b5695ec6 Add BIP65 tests to rpc-tests.sh 2015-11-28 23:53:54 +00:00
Esteban Ordano
b85dcd03f3 CLTV: Add more tests to improve coverage
Four cases included:

* The CLTV operand type mismatches the tx locktime. In the script it is
  1 (interpreted as block height), but in the tx is 500000000
  (interpreted as date)
* The stack is empty when executing OP_CLTV
* The tx is final by having only one input with MAX_INT sequence number
* The operand for CLTV is negative (after OP_0 OP_1 OP_SUB)

Rebased-From: cb54d17355864fa08826d6511a0d7692b21ef2c9
2015-11-28 23:50:54 +00:00
Peter Todd
e799ce0701 Add RPC tests for the CHECKLOCKTIMEVERIFY (BIP65) soft-fork
bip65-cltv.py is based on the earlier BIP66 soft-fork RPC test
implemented by Pieter Wuille's 819bcf9b9902319176cdb1d476cacfee9b3727ec

bip65-cltv-p2p.py is based on the earlier BIP66 P2P test by Suhas
Daftuar's d76412b068d95454732aa3def95decf35251759a

Rebased-From: 308257856099e82e91881ba97f741d840184727c
2015-11-28 23:50:50 +00:00
Peter Todd
3d468adb7c Add CHECKLOCKTIMEVERIFY (BIP65) soft-fork logic
Based on the earlier BIP66 soft-fork logic implemented by Pieter
Wuille's 5a47811da5158df763aa2fca09ce646ee0c51e7b

Rebased-From: 287f54fc90c29301faede8d4ac2ea24a91441917
2015-11-28 23:50:46 +00:00
Peter Todd
07b6e9428c Enable CHECKLOCKTIMEVERIFY as a standard script verify flag
Transactions that fail CLTV verification will be rejected from the
mempool, making it easy to test the feature. However blocks containing
"invalid" CLTV-using transactions will still be accepted; this is *not*
the soft-fork required to actually enable CLTV for production use.

Rebased-From: ffd75adce01a78b3461b3ff05bcc2b530a9ce994
2015-11-28 23:50:38 +00:00
Peter Todd
bbcf66536f Replace NOP2 with CHECKLOCKTIMEVERIFY (BIP65)
<nLockTime> CHECKLOCKTIMEVERIFY -> <nLockTime>

Fails if tx.nLockTime < nLockTime, allowing the funds in a txout to be
locked until some block height or block time in the future is reached.

Only the logic and unittests are implemented; this commit does not have
any actual soft-fork logic in it.

Thanks to Pieter Wuille for rebase.

Credit goes to Gregory Maxwell for the suggestion of comparing the
argument against the transaction nLockTime rather than the current
time/blockheight directly.

Rebased-From: bc60b2b4b401f0adff5b8b9678903ff8feb5867b
2015-11-28 23:50:33 +00:00
Peter Todd
f1bba85b5b Move LOCKTIME_THRESHOLD to src/script/script.h
Will now be needed by CHECKLOCKTIMEVERIFY code.

Rebased-From: 48e9c57cf06352f890eac4285ae022d8746cf3fd
2015-11-28 23:50:29 +00:00
Peter Todd
46a66cf870 Make CScriptNum() take nMaxNumSize as an argument
While the existing numeric opcodes are all limited to 4-byte bignum
arguments, new opcodes will need different limits.

Rebased-From: 99088d60d8a7747c6d1a7fd5d8cd388be1b3e138
2015-11-28 23:50:22 +00:00
Adrian Gallagher
d02d31c478 Litecoin Core v0.10.3.0 2015-10-24 14:06:16 +11:00
Adrian Gallagher
7f1e03202d Litecoin: v0.10.3.0 release notes 2015-10-24 14:04:49 +11:00
Adrian Gallagher
7526479ac5 Merge pull request #220 from thrasher-/master-0.10
Litecoin Core v0.10.3.0 preparation
2015-10-24 12:41:45 +11:00
Gregory Maxwell
71e70ffd83 Set TCP_NODELAY on P2P sockets.
Nagle appears to be a significant contributor to latency now that the static
 sleeps are gone.  Most of our messages are relatively large compared to
 IP + TCP so I do not expect this to create enormous overhead.

This may also reduce traffic burstyness somewhat.

Conflicts:
	src/net.cpp

Rebased-From: a4e28b3d1e5c95eb0c87f144851cd65048c3e0bc
Github-Pull: #6867
2015-10-24 12:40:20 +11:00
Micha
910b02ad8a Bring historical release notes up to date
[skip ci]
2015-10-24 12:38:21 +11:00
Wladimir J. van der Laan
c2986f9f94 build: make sure OpenSSL heeds noexecstack
This passes `-Wa,--noexecstack` to the assembler when building
platform-specific assembly files, to signal that a non-executable stack
can be used. This is the same approach as used by Debian
(see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=430583)

Rebased-From: bfcdc21a5da25ec1aa4aecc4cd8960dfa1c11781
Github-Pull: #6852
2015-10-24 12:38:06 +11:00
Wladimir J. van der Laan
ebc729fa1d doc: Update release notes for 0.10.3rc2 2015-10-24 12:37:54 +11:00
Cory Fields
80bf9fa67b depends: bump cctools to a custom version with less deps
This one no longer requires native libuuid or libcrypto
2015-10-21 20:43:19 +11:00
Cory Fields
44c51baf89 build: osx builders no longer need 32bit compiler support
Conflicts:
	.travis.yml
2015-10-21 20:43:16 +11:00
Cory Fields
bd1c6c2b0a depends: major upgrade to darwin toolchain
tl;dr: Update to the newer stable toolchain and SDK for OSX without giving up
any backwards compatibility. We can move to clang 3.5 as a next step which
allows use to use libc++ and the 10.10 sdk, but we'll need to find a build that
works in gitian/travis first.

Switch to a new, better maintained fork of cctools:
https://github.com/tpoechtrager/cctools-port

I've forked this and will be working on it some as well:
https://github.com/theuni/cctools-port

This brings in:
cctools v862
ld64: v241.9

It also fixes 64bit builds, so there's no longer any need to use a 32bit clang.
Since clang is no longer tied to an old/crusty 32bit build, clang has been
upgraded to 3.3. Unfortunately, there's a bug in 3.4 that breaks builds. 3.5
works fine, but there are no binary builds compatible with precise, which is
currently used for gitian and travis. We could always build our own if
necessary.

After updating to stable clang/linker/cctools, it's possible to use a more
recent SDK. The current SDK (10.7) through the most recent 10.10 have all been
built/tested successfully, both with and without 10.6 compatibility. However,
10.10 requires clang 3.5.

SDKs >= 10.9 use libc++ rather than libstdc++. This is verified working as well.
2015-10-21 20:43:14 +11:00
Cory Fields
9a623175f1 depends: osx: fix qt5 build against 10.10 sdk 2015-10-21 20:43:11 +11:00
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