Skip to content

Commit d612837

Browse files
committed
Merge #8149: Segregated witness rebased
f852813 BIP9 parameters for testnet (Johnson Lau) 070dbc4 --- [SEGWIT] begin: deployment --- (Pieter Wuille) fdb43df [qa] Add GetTransactionSigOpCost unit tests (Jonas Nick) d846e02 [qa] script_tests: witness tests can specify tx amount (Suhas Daftuar) 330b0f3 [qa] p2p segwit tests (Suhas Daftuar) 4f7ff00 [qa] Add rpc test for segwit (Alex Morcos) 66cca79 [qa] Autogeneration support for witness in script_tests (Pieter Wuille) 06d3805 [qa] Add segwit support to script_tests (Pieter Wuille) 00f46cb [qa] Add transaction tests for segwit (NicolasDorier) 0aa9207 [qa] Witness version 0 signing unit tests (Pieter Wuille) 978e200 --- [SEGWIT] begin: tests --- (Pieter Wuille) 745eb67 [RPC] signrawtransaction can sign P2WSH (NicolasDorier) f4691ab [RPC] Add wallet support for witness transactions (using P2SH) (Pieter Wuille) 605e847 BIP143: Signing logic (Pieter Wuille) 9757b57 --- [SEGWIT] begin: wallet --- (Pieter Wuille) af87a67 Do not use compact blocks when segwit is enabled (Pieter Wuille) 6032f69 Add rewind logic to deal with post-fork software updates (Pieter Wuille) b7dbeb2 [libconsensus] Script verification API with amounts (Thomas Kerin) 2b1f6f9 BIP141: Other consensus critical limits, and BIP145 (Pieter Wuille) 7c4bf77 [RPC] Return witness data in blockchain RPCs (Johnson Lau) 3dd4102 BIP143: Verification logic (Pieter Wuille) 0ef1dd3 Refactor script validation to observe amounts (Pieter Wuille) b8a9749 BIP144: Handshake and relay (receiver side) (Pieter Wuille) 8b49040 BIP141: Commitment structure and deployment (Pieter Wuille) 449f9b8 BIP141: Witness program (Pieter Wuille) 7030d9e BIP144: Serialization, hashes, relay (sender side) (Pieter Wuille) ecacfd9 --- [SEGWIT] begin: P2P/node/consensus --- (Pieter Wuille)
2 parents af2421c + f852813 commit d612837

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+5305
-571
lines changed

contrib/devtools/check-doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
REGEX_ARG = re.compile(r'(?:map(?:Multi)?Args(?:\.count\(|\[)|Get(?:Bool)?Arg\()\"(\-[^\"]+?)\"')
2222
REGEX_DOC = re.compile(r'HelpMessageOpt\(\"(\-[^\"=]+?)(?:=|\")')
2323
# list unsupported, deprecated and duplicate args as they need no documentation
24-
SET_DOC_OPTIONAL = set(['-rpcssl', '-benchmark', '-h', '-help', '-socks', '-tor', '-debugnet', '-whitelistalwaysrelay'])
24+
SET_DOC_OPTIONAL = set(['-rpcssl', '-benchmark', '-h', '-help', '-socks', '-tor', '-debugnet', '-whitelistalwaysrelay', '-prematurewitness', '-walletprematurewitness', '-promiscuousmempoolflags'])
2525

2626
def main():
2727
used = check_output(CMD_GREP_ARGS, shell=True)

qa/pull-tester/rpc-tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136
'invalidtxrequest.py',
137137
'abandonconflict.py',
138138
'p2p-versionbits-warning.py',
139+
'p2p-segwit.py',
140+
'segwit.py',
139141
'importprunedfunds.py',
140142
'signmessages.py',
141143
]

qa/rpc-tests/maxuploadtarget.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def __init__(self):
9797
def setup_network(self):
9898
# Start a node with maxuploadtarget of 200 MB (/24h)
9999
self.nodes = []
100-
self.nodes.append(start_node(0, self.options.tmpdir, ["-debug", "-maxuploadtarget=200", "-blockmaxsize=999000"]))
100+
self.nodes.append(start_node(0, self.options.tmpdir, ["-debug", "-maxuploadtarget=800", "-blockmaxsize=999000"]))
101101

102102
def mine_full_block(self, node, address):
103103
# Want to create a full block
@@ -175,13 +175,13 @@ def run_test(self):
175175
getdata_request = msg_getdata()
176176
getdata_request.inv.append(CInv(2, big_old_block))
177177

178-
max_bytes_per_day = 200*1024*1024
179-
daily_buffer = 144 * MAX_BLOCK_SIZE
178+
max_bytes_per_day = 800*1024*1024
179+
daily_buffer = 144 * 4000000
180180
max_bytes_available = max_bytes_per_day - daily_buffer
181181
success_count = max_bytes_available // old_block_size
182182

183-
# 144MB will be reserved for relaying new blocks, so expect this to
184-
# succeed for ~70 tries.
183+
# 576MB will be reserved for relaying new blocks, so expect this to
184+
# succeed for ~235 tries.
185185
for i in range(success_count):
186186
test_nodes[0].send_message(getdata_request)
187187
test_nodes[0].sync_with_ping()
@@ -198,9 +198,9 @@ def run_test(self):
198198

199199
# Requesting the current block on test_nodes[1] should succeed indefinitely,
200200
# even when over the max upload target.
201-
# We'll try 200 times
201+
# We'll try 800 times
202202
getdata_request.inv = [CInv(2, big_new_block)]
203-
for i in range(200):
203+
for i in range(800):
204204
test_nodes[1].send_message(getdata_request)
205205
test_nodes[1].sync_with_ping()
206206
assert_equal(test_nodes[1].block_receive_map[big_new_block], i+1)

0 commit comments

Comments
 (0)