|
|
|
@ -86,7 +86,7 @@ class SegWitTest(BitcoinTestFramework):
|
|
|
|
|
def setup_network(self):
|
|
|
|
|
self.nodes = []
|
|
|
|
|
self.nodes.append(start_node(0, self.options.tmpdir, ["-logtimemicros", "-debug", "-walletprematurewitness", "-rpcserialversion=0"]))
|
|
|
|
|
self.nodes.append(start_node(1, self.options.tmpdir, ["-logtimemicros", "-debug", "-blockversion=4", "-promiscuousmempoolflags=517", "-prematurewitness", "-walletprematurewitness", "-rpcserialversion=2"]))
|
|
|
|
|
self.nodes.append(start_node(1, self.options.tmpdir, ["-logtimemicros", "-debug", "-blockversion=4", "-promiscuousmempoolflags=517", "-prematurewitness", "-walletprematurewitness", "-rpcserialversion=1"]))
|
|
|
|
|
self.nodes.append(start_node(2, self.options.tmpdir, ["-logtimemicros", "-debug", "-blockversion=536870915", "-promiscuousmempoolflags=517", "-prematurewitness", "-walletprematurewitness"]))
|
|
|
|
|
connect_nodes(self.nodes[1], 0)
|
|
|
|
|
connect_nodes(self.nodes[2], 1)
|
|
|
|
@ -216,7 +216,6 @@ class SegWitTest(BitcoinTestFramework):
|
|
|
|
|
assert_equal(len(segwit_tx_list), 5)
|
|
|
|
|
|
|
|
|
|
print("Verify block and transaction serialization rpcs return differing serializations depending on rpc serialization flag")
|
|
|
|
|
# Note: node1 has version 2, which is simply >0 and will catch future upgrades in tests
|
|
|
|
|
assert(self.nodes[2].getblock(block[0], False) != self.nodes[0].getblock(block[0], False))
|
|
|
|
|
assert(self.nodes[1].getblock(block[0], False) == self.nodes[2].getblock(block[0], False))
|
|
|
|
|
for i in range(len(segwit_tx_list)):
|
|
|
|
|