Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13711054
D2528.id7292.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D2528.id7292.diff
View Options
diff --git a/test/functional/feature_nulldummy.py b/test/functional/feature_nulldummy.py
--- a/test/functional/feature_nulldummy.py
+++ b/test/functional/feature_nulldummy.py
@@ -5,10 +5,10 @@
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
+from test_framework.messages import FromHex
from test_framework.mininode import CTransaction, network_thread_start
from test_framework.blocktools import create_coinbase, create_block
from test_framework.script import CScript
-from io import BytesIO
import time
NULLDUMMY_ERROR = "64: non-mandatory-script-verify-flag (Dummy CHECKMULTISIG argument must be zero)"
@@ -90,10 +90,7 @@
outputs = {to_address: amount}
rawtx = node.createrawtransaction(inputs, outputs)
signresult = node.signrawtransaction(rawtx)
- tx = CTransaction()
- f = BytesIO(hex_str_to_bytes(signresult['hex']))
- tx.deserialize(f)
- return tx
+ return FromHex(CTransaction(), signresult['hex'])
def block_submit(self, node, txs, accept=False):
block = create_block(self.tip, create_coinbase(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 10:19 (7 m, 48 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5556395
Default Alt Text
D2528.id7292.diff (1 KB)
Attached To
D2528: Remove dependency on BytesIO in feature_nulldummy.py
Event Timeline
Log In to Comment