Commit Graph

11381 Commits

Author SHA1 Message Date
Pieter Wuille 4ec21e8a64 Fix ismine and addwitnessaddress: no uncompressed keys in segwit
Github-Pull: #8499
Rebased-From: 248f3a76a8
2016-10-17 14:10:59 +02:00
Suhas Daftuar 908fced296 [qa] Add tests for uncompressed pubkeys in segwit
Github-Pull: #8499
Rebased-From: b811124202
2016-10-17 14:10:58 +02:00
Johnson Lau b4b85279a9 Make test framework produce lowS signatures
Github-Pull: #8499
Rebased-From: 9f0397aff7
2016-10-17 14:10:58 +02:00
Johnson Lau 821f3e6751 Require compressed keys in segwit as policy and disable signing with uncompressed keys for segwit scripts
Github-Pull: #8499
Rebased-From: 4c0c25a604
2016-10-17 14:10:58 +02:00
Johnson Lau 540413d995 Add standard limits for P2WSH with tests
Github-Pull: #8499
Rebased-From: 3ade2f64cf
2016-10-17 14:10:58 +02:00
Matt Corallo 9bb2a02f0d [qa] Build v4 blocks in p2p-compactblocktests
This fixes an issue in backporting to 0.13 as 0.13 enforces SF
activation by block version lockin instead of through a hard-coded
block height.

Github-Pull: #8916
Rebased-From: a4ad37d4ef
2016-10-17 13:15:30 +02:00
Matt Corallo df5069bb0e [qa] Send segwit-encoded blocktxn messages in p2p-compactblocks
Github-Pull: #8916
Rebased-From: 032e883b93
2016-10-17 13:15:11 +02:00
jonnynewbs bcf3806f4c Update bitcoin-tx to output witness data.
Github-Pull: #8817
Rebased-From: 4408558843
2016-10-13 20:35:33 +02:00
Dagur Valberg Johannsson cc6f55191a [qa] Fix compact block shortids for a test case
Github-Pull: #8904
Rebased-From: 4cdece4041
2016-10-13 20:35:33 +02:00
Matt Corallo 4bb9ce8a95 Use cmpctblock type 2 for segwit-enabled transfer
Contains version negotiation logic by Matt Corallo and bugfixes by
Suhas Daftuar.

Github-Pull: #8393
Rebased-From: 6aa28abf53
2016-10-13 20:35:33 +02:00
Matt Corallo 890ac25638 Fix overly-prescriptive p2p-segwit test for new fetch logic
Github-Pull: #8393
Rebased-From: be7555f0c0
2016-10-13 20:15:17 +02:00
Pieter Wuille fe1975a974 Use cmpctblock type 2 for segwit-enabled transfer
Contains version negotiation logic by Matt Corallo and bugfixes by
Suhas Daftuar.

Github-Pull: #8393
Rebased-From: 6aa28abf53
2016-10-13 20:15:17 +02:00
Suhas Daftuar 611cc5096e [qa] Fix bug in mininode witness deserialization
Also improve tx printing

Github-Pull: #8393
Rebased-From: f5b9b8f437
2016-10-13 20:09:31 +02:00
Suhas Daftuar 61e282b62d [qa] Add support for compactblocks v2 to mininode
Github-Pull: #8393
Rebased-From: 422fac649f
2016-10-13 20:09:31 +02:00
Suhas Daftuar e47299a8f2 [qa] Update p2p-compactblocks.py for compactblocks v2
Github-Pull: #8393
Rebased-From: 27acfc1d2e
2016-10-13 20:09:31 +02:00
Johnson Lau 7a34a4614c Add NULLDUMMY verify flag in bitcoinconsensus.h
Github-Pull: #8848
Rebased-From: 2fa0063c26
2016-10-13 20:09:31 +02:00
Cory Fields 7ae6242960 net: fix a few cases where messages were sent rather than dropped upon disconnection
75ead758 turned these into crashes in the event of a handshake failure, most
notably when a peer does not offer the expected services.

There are likely other cases that these assertions will find as well.

Github-Pull: #8862
Rebased-From: 905bc68d05
2016-10-13 20:09:31 +02:00
Johnson Lau 3e80ab7f2a Add policy: null signature for failed CHECK(MULTI)SIG
Github-Pull: #8634
Rebased-From: e41bd449ab
2016-10-13 20:01:46 +02:00
Johnson Lau 0027672c80 Make non-minimal OP_IF/NOTIF argument non-standard for P2WSH
Github-Pull: #8526
Rebased-From: c72c5b1e3b
2016-10-13 20:01:45 +02:00
Wladimir J. van der Laan 633c4a1f36
qt: Periodic translations update
Added languages:

- `ne` - Niger
2016-10-13 12:34:15 +02:00
Wladimir J. van der Laan 7634d8eac4
qt: Translate all files, even if wallet disabled
This passes all QT cpp files to the lupdate executable which extracts
translations, no matter what conditional functionality is enabled.

Rebased-From: 8aed5f6c23
Github-Pull: #8911
2016-10-13 11:36:33 +02:00
MarcoFalke 94688d8e43
Merge #8866: [0.13] Backports
5e0dd9e [Doc] Update bips.md for Segregated Witness (fanquake)
d6c83b9 [qa] Fix race condition in sendheaders.py (Suhas Daftuar)
b73f065 [qa] Another attempt to fix race condition in p2p-compactblocks.py (Suhas Daftuar)
b987348 Bugfix: Trivial: RPC: getblockchaininfo help: pruneheight is the lowest, not highest, block (Luke Dashjr)
cbc3fe5 test: Explicitly set encoding to utf8 when opening text files (Wladimir J. van der Laan)
0bee740 [qa] util: Move wait_bitcoinds() into stop_nodes() (MarcoFalke)
794b007 [qa] Add getinfo smoke tests and rework versionbits test (MarcoFalke)
1f60d45 [qa] mininode: Only allow named args in wait_until (MarcoFalke)
624a007 [qa] Fix race condition in p2p-compactblocks test (Suhas Daftuar)
3e4abb5 Fix nulldummy.py test (Johnson Lau)
31ab2f8 test: Avoid ConnectionResetErrors during RPC tests (Wladimir J. van der Laan)
eb18cc1 bitcoin-util-test.py should fail if the output file is empty (jnewbery)
d87227d [qa] nulldummy: Don't run unused code (MarcoFalke)
1dd1783 [qa] blockstore: Switch to dumb dbm (MarcoFalke)
83ad563 [rpc] throw JSONRPCError when utxo set can not be read (MarcoFalke)
6288659 [Wallet] remove "unused" ThreadFlushWalletDB from removeprunedfunds (Jonas Schnelli)
2a8bca4 Add bitcoin-tx JSON tests (jnewbery)
9bbe66e [qa] Split up slow RPC calls to avoid pruning test timeouts (Suhas Daftuar)
375437c Ping regularly in p2p-segwit.py to keep connection alive (Johnson Lau)
2016-10-11 11:55:28 +02:00
fanquake 5e0dd9e07c [Doc] Update bips.md for Segregated Witness
Github-Pull: #8891
Rebased-From: ef28d8a899
2016-10-08 21:29:31 +02:00
Suhas Daftuar d6c83b95cf [qa] Fix race condition in sendheaders.py
Also de-duplicates code that has been moved to mininode

Github-Pull: #8882
Rebased-From: b55d9411e7
2016-10-06 21:00:42 +02:00
Suhas Daftuar b73f0653f3 [qa] Another attempt to fix race condition in p2p-compactblocks.py
sync_with_ping() only guarantees that the node has processed messages
it's received from the peer, not that block announcements from the node have
made it back to the peer.  Replace sync_with_ping() with an explicit check that
the node's tip has been announced.

Github-Pull: #8882
Rebased-From: 6976db2f46
2016-10-05 11:19:17 +02:00
Luke Dashjr b987348435 Bugfix: Trivial: RPC: getblockchaininfo help: pruneheight is the lowest, not highest, block
Github-Pull: #8884
Rebased-From: a78e5428ac
2016-10-05 11:18:49 +02:00
Wladimir J. van der Laan cbc3fe59c4 test: Explicitly set encoding to utf8 when opening text files
These are text files but their encoding does not depend on the locale.
Not all of them require utf8 but it is better to fix it at something
to remove potential unpredictability.

This is necessary on FreeBSD where no locale is set by default,
and apparently Python defaults not only the terminal encoding to the locale
but that of every text file. So without LOCALE environment it defaults text
file encoding to ASCII. This causes problems with e.g. `bitcoin.conf`.

Luckily the locale doesn't affect the default encoding for str.encode() and
bytes.decode() on Python 3, so this is the only change necessary.

Github-Pull: #8840
Rebased-From: 30930e847e
2016-10-03 11:54:29 +02:00
MarcoFalke 0bee740845 [qa] util: Move wait_bitcoinds() into stop_nodes()
Github-Pull: #8860
Rebased-From: fa7c35c4ec
2016-10-03 11:31:36 +02:00
MarcoFalke 794b007896 [qa] Add getinfo smoke tests and rework versionbits test
Github-Pull: #8780
Rebased-From: fa6e71b27d
2016-10-03 11:31:18 +02:00
MarcoFalke 1f60d45504 [qa] mininode: Only allow named args in wait_until
Github-Pull: #8857
Rebased-From: fa666094cf
2016-10-03 10:59:49 +02:00
Suhas Daftuar 624a007f47 [qa] Fix race condition in p2p-compactblocks test
Also fix a bug in the sync_with_ping() helper function

Github-Pull: #8854
Rebased-From: b5fd666984
2016-10-03 10:57:40 +02:00
Johnson Lau 3e4abb5025 Fix nulldummy.py test
Github-Pull: #8841
Rebased-From: 46a4774d2b
2016-10-03 10:57:22 +02:00
Wladimir J. van der Laan 31ab2f862a test: Avoid ConnectionResetErrors during RPC tests
This is necessary on FreeBSD and MacOSX, at least.

See https://github.com/bitcoin/bitcoin/pull/8834#issuecomment-250450213

Github-Pull: #8839
Rebased-From: 1d28faf9e9
2016-10-03 10:57:04 +02:00
jnewbery eb18cc1272 bitcoin-util-test.py should fail if the output file is empty
Github-Pull: #8836
Rebased-From: da94697708
2016-10-03 10:56:41 +02:00
MarcoFalke d87227d6d2 [qa] nulldummy: Don't run unused code
Github-Pull: #8835
Rebased-From: fa156c604e
2016-10-03 10:56:27 +02:00
MarcoFalke 1dd1783873 [qa] blockstore: Switch to dumb dbm
Github-Pull: #8834
Rebased-From: fa9cd25ed0
2016-10-03 10:56:12 +02:00
MarcoFalke 83ad563ade [rpc] throw JSONRPCError when utxo set can not be read
Github-Pull: #8832
Rebased-From: fa05cfdf25
2016-10-03 10:55:51 +02:00
Jonas Schnelli 62886598db [Wallet] remove "unused" ThreadFlushWalletDB from removeprunedfunds
Github-Pull: #8765
Rebased-From: c6f5ca822f
2016-10-03 10:55:31 +02:00
jnewbery 2a8bca465d Add bitcoin-tx JSON tests
Github-Pull: #8829
Rebased-From: 54e5d7c1b8
2016-10-03 10:55:07 +02:00
Suhas Daftuar 9bbe66e592 [qa] Split up slow RPC calls to avoid pruning test timeouts
Github-Pull: #8827
Rebased-From: a0f8482f3e
2016-10-03 10:54:51 +02:00
Johnson Lau 375437c26b Ping regularly in p2p-segwit.py to keep connection alive
This pings regularly while building a big block in p2p-segwit.py, to prevent timeout

Github-Pull: #8803
Rebased-From: 0637b02fce
2016-10-03 10:54:20 +02:00
Wladimir J. van der Laan a916677ace
Merge #8815: Backports for 0.13.1
9dfa0c8 Implement NULLDUMMY softfork (Johnson Lau)
cef633c Fix broken sendcmpct test in p2p-compactblocks.py (Suhas Daftuar)
fb8706e Add p2p test for BIP 152 (compact blocks) (Suhas Daftuar)
f6be478 Add support for compactblocks to mininode (Suhas Daftuar)
4295a7a Tests: refactor compact size serialization in mininode (Suhas Daftuar)
ff893aa Implement SipHash in Python (Pieter Wuille)
198494c Allow changing BIP9 parameters on regtest (Suhas Daftuar)
23feab1 Remove maxuploadtargets recommended minimum (Jonas Schnelli)
a5ec248 Remove createwitnessaddress (Johnson Lau)
b394a96 Add basic test for IsStandard witness transaction blinding (instagibbs)
1672225 Do not store witness txn in rejection cache (Pieter Wuille)
2016-09-27 15:10:32 +02:00
Johnson Lau 9dfa0c8d90 Implement NULLDUMMY softfork
Github-Pull: #8636
Rebased-From: 482f852da6
2016-09-26 16:50:39 +02:00
Suhas Daftuar cef633ce63 Fix broken sendcmpct test in p2p-compactblocks.py
Python lambda use was incorrect.

sendcmpct messages need to be synchronized with RPC calls to generate().

Headers need to be synced (eg with getheaders) for cmpctblock announcements
to start.

Last test omitted sending a sendcmpct message.

Github-Pull: #8739
Rebased-From: 157254a4bf)
2016-09-26 16:49:14 +02:00
Suhas Daftuar fb8706ebd7 Add p2p test for BIP 152 (compact blocks)
Github-Pull: #8418
Rebased-From: 45c7ddd109
2016-09-26 16:47:11 +02:00
Suhas Daftuar f6be478b0a Add support for compactblocks to mininode
Github-Pull: #8418
Rebased-From: 9a22a6c089
2016-09-26 16:47:09 +02:00
Suhas Daftuar 4295a7aea5 Tests: refactor compact size serialization in mininode
Github-Pull: #8418
Rebased-From: a8689fdf8e
2016-09-26 16:47:06 +02:00
Pieter Wuille ff893aa557 Implement SipHash in Python
Github-Pull: #8418
Rebased-From: 9c8593d2b4
2016-09-26 16:46:56 +02:00
Suhas Daftuar 198494ce53 Allow changing BIP9 parameters on regtest
Github-Pull: #8418
Rebased-From: 56c87e9211
2016-09-26 16:46:19 +02:00
Jonas Schnelli 23feab1f38 Remove maxuploadtargets recommended minimum
Github-Pull: #8712
Rebased-From: 1b6bcdd3aa
2016-09-26 16:43:28 +02:00