diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2019-04-25 17:01:01 -0400 |
---|---|---|
committer | Gregory Sanders <gsanders87@gmail.com> | 2019-04-25 21:01:09 -0400 |
commit | 25b078658139c1aea58393a32ac5a79144d8d140 (patch) | |
tree | 696bebafeb0ca464416614d99681c5c5a610749b /test/functional/feature_block.py | |
parent | c65c77c721b69f1782509145d62978d31c9a1d78 (diff) | |
download | bitcoin-25b078658139c1aea58393a32ac5a79144d8d140.tar.xz |
Fix missing input template by making minimal tx
Diffstat (limited to 'test/functional/feature_block.py')
-rwxr-xr-x | test/functional/feature_block.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/functional/feature_block.py b/test/functional/feature_block.py index 61f705e239..72eb4f804f 100755 --- a/test/functional/feature_block.py +++ b/test/functional/feature_block.py @@ -146,20 +146,6 @@ class FullBlockTest(BitcoinTestFramework): badtx = template.get_tx() if TxTemplate != invalid_txs.InputMissing: self.sign_tx(badtx, attempt_spend_tx) - else: - # Segwit is active in regtest at this point, so to deserialize a - # transaction without any inputs correctly, we set the outputs - # to an empty list. This is a hack, as the serialization of an - # empty list of outputs is deserialized as flags==0 and thus - # deserialization of the outputs is skipped. - # A policy check requires "loose" txs to be of a minimum size, - # so vtx is not set to be empty in the TxTemplate class and we - # only apply the workaround where txs are not "loose", i.e. in - # blocks. - # - # The workaround has the purpose that both sides calculate - # the same tx hash in the merkle tree - badtx.vout = [] badtx.rehash() badblock = self.update_block(blockname, [badtx]) self.send_blocks( |