Page MenuHomePhabricator

Clean up Segwit Recovery feature
ClosedPublic

Authored by Mengerian on Jun 4 2019, 03:53.

Details

Summary

Invert meaning of Segwit Recovery flag.
Remove segwit recovery activation
Make SCRIPT_DISALLOW_SEGWIT_RECOVERY a standard flag

Test Plan

make check
Did IBD on main net and testnet with checkpoints=0 -assumevalid=0.
Update functional test to check for accepting blocks containing segwit recovery transactions,
rejecting segwit recovery transactions from mempool acceptance, and correct network banning.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
sr-squash
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6134
Build 10316: Bitcoin ABC Buildbot (legacy)
Build 10315: arc lint + arc unit

Event Timeline

This is the same as D3148, D3065, and D3160 squashed into one change.

markblundeberg added inline comments.
src/test/data/script_tests.json
3281

It may be worth in these messages clarifying it's a "v0 P2SH-P2WPKH *segwit recovery*"

This revision is now accepted and ready to land.Jun 5 2019, 01:21

Update script test comments per Mark's suggestion
Rebase

This revision was automatically updated to reflect the committed changes.