Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segregated witness rebased #8149

Merged
merged 27 commits into from
Jun 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ecacfd9
--- [SEGWIT] begin: P2P/node/consensus ---
sipa Mar 31, 2016
7030d9e
BIP144: Serialization, hashes, relay (sender side)
sipa Nov 6, 2015
449f9b8
BIP141: Witness program
sipa Nov 8, 2015
8b49040
BIP141: Commitment structure and deployment
sipa Nov 6, 2015
b8a9749
BIP144: Handshake and relay (receiver side)
sipa Nov 16, 2015
0ef1dd3
Refactor script validation to observe amounts
sipa Mar 31, 2016
3dd4102
BIP143: Verification logic
sipa Dec 27, 2015
7c4bf77
[RPC] Return witness data in blockchain RPCs
jl2012 Jan 22, 2016
2b1f6f9
BIP141: Other consensus critical limits, and BIP145
sipa Jan 3, 2016
b7dbeb2
[libconsensus] Script verification API with amounts
afk11 Jan 24, 2016
6032f69
Add rewind logic to deal with post-fork software updates
sipa Mar 18, 2016
af87a67
Do not use compact blocks when segwit is enabled
sipa Jun 22, 2016
9757b57
--- [SEGWIT] begin: wallet ---
sipa Mar 31, 2016
605e847
BIP143: Signing logic
sipa Mar 31, 2016
f4691ab
[RPC] Add wallet support for witness transactions (using P2SH)
sipa Dec 30, 2015
745eb67
[RPC] signrawtransaction can sign P2WSH
NicolasDorier Apr 10, 2016
978e200
--- [SEGWIT] begin: tests ---
sipa Mar 31, 2016
0aa9207
[qa] Witness version 0 signing unit tests
sipa Nov 20, 2015
00f46cb
[qa] Add transaction tests for segwit
NicolasDorier Apr 3, 2016
06d3805
[qa] Add segwit support to script_tests
sipa Apr 4, 2016
66cca79
[qa] Autogeneration support for witness in script_tests
sipa Apr 5, 2016
4f7ff00
[qa] Add rpc test for segwit
morcos Jan 2, 2016
330b0f3
[qa] p2p segwit tests
sdaftuar Apr 9, 2016
d846e02
[qa] script_tests: witness tests can specify tx amount
sdaftuar May 22, 2016
fdb43df
[qa] Add GetTransactionSigOpCost unit tests
jonasnick May 28, 2016
070dbc4
--- [SEGWIT] begin: deployment ---
sipa Jun 4, 2016
f852813
BIP9 parameters for testnet
jl2012 May 6, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/devtools/check-doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
REGEX_ARG = re.compile(r'(?:map(?:Multi)?Args(?:\.count\(|\[)|Get(?:Bool)?Arg\()\"(\-[^\"]+?)\"')
REGEX_DOC = re.compile(r'HelpMessageOpt\(\"(\-[^\"=]+?)(?:=|\")')
# list unsupported, deprecated and duplicate args as they need no documentation
SET_DOC_OPTIONAL = set(['-rpcssl', '-benchmark', '-h', '-help', '-socks', '-tor', '-debugnet', '-whitelistalwaysrelay'])
SET_DOC_OPTIONAL = set(['-rpcssl', '-benchmark', '-h', '-help', '-socks', '-tor', '-debugnet', '-whitelistalwaysrelay', '-prematurewitness', '-walletprematurewitness', '-promiscuousmempoolflags'])

def main():
used = check_output(CMD_GREP_ARGS, shell=True)
Expand Down
2 changes: 2 additions & 0 deletions qa/pull-tester/rpc-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@
'invalidtxrequest.py',
'abandonconflict.py',
'p2p-versionbits-warning.py',
'p2p-segwit.py',
'segwit.py',
'importprunedfunds.py',
'signmessages.py',
]
Expand Down
14 changes: 7 additions & 7 deletions qa/rpc-tests/maxuploadtarget.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(self):
def setup_network(self):
# Start a node with maxuploadtarget of 200 MB (/24h)
self.nodes = []
self.nodes.append(start_node(0, self.options.tmpdir, ["-debug", "-maxuploadtarget=200", "-blockmaxsize=999000"]))
self.nodes.append(start_node(0, self.options.tmpdir, ["-debug", "-maxuploadtarget=800", "-blockmaxsize=999000"]))

def mine_full_block(self, node, address):
# Want to create a full block
Expand Down Expand Up @@ -175,13 +175,13 @@ def run_test(self):
getdata_request = msg_getdata()
getdata_request.inv.append(CInv(2, big_old_block))

max_bytes_per_day = 200*1024*1024
daily_buffer = 144 * MAX_BLOCK_SIZE
max_bytes_per_day = 800*1024*1024
daily_buffer = 144 * 4000000
max_bytes_available = max_bytes_per_day - daily_buffer
success_count = max_bytes_available // old_block_size

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

# Requesting the current block on test_nodes[1] should succeed indefinitely,
# even when over the max upload target.
# We'll try 200 times
# We'll try 800 times
getdata_request.inv = [CInv(2, big_new_block)]
for i in range(200):
for i in range(800):
test_nodes[1].send_message(getdata_request)
test_nodes[1].sync_with_ping()
assert_equal(test_nodes[1].block_receive_map[big_new_block], i+1)
Expand Down
Loading