This is a start to some RPC testing for segwit.
A lot of stuff could be done better in the p2p framework, but that'll have to wait til next week for me.
The first commit I think makes sense so that we can sign txs with witness v0 programs embedded in p2sh, but I'm not convinced.
The second commit adds two command line options for manipulating the mempool:
-promiscuousmempoolflags lets you set the flags that are used for script evaluation in the mempool. It doesn't work on mainnet and I think it would be generally useful for testing regardless of segwit
-prematurewitness seems like a valuable option to allow actually using witness txs before they are standard.
This is a start to some RPC testing for segwit. A lot of stuff could be done better in the p2p framework, but that'll have to wait til next week for me.
The first commit I think makes sense so that we can sign txs with witness v0 programs embedded in p2sh, but I'm not convinced. The second commit adds two command line options for manipulating the mempool:
The third commit is the RPC test