Skip to content

Commit fa0e65b

Browse files
author
MarcoFalke
committed
scripted-diff: test: Remove brackets after assert
-BEGIN VERIFY SCRIPT- sed -i --regexp-extended -e 's/assert ?\((.+)\)(( )*)?(#.*)?$/assert \1\3\3\4/g' $(git grep -l --extended-regexp 'assert ?\(' test) -END VERIFY SCRIPT-
1 parent fab5a1e commit fa0e65b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+273
-273
lines changed

test/functional/feature_bip68_sequence.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_disable_flag(self):
6363
self.nodes[0].sendtoaddress(new_addr, 2) # send 2 BTC
6464

6565
utxos = self.nodes[0].listunspent(0, 0)
66-
assert(len(utxos) > 0)
66+
assert len(utxos) > 0
6767

6868
utxo = utxos[0]
6969

@@ -253,7 +253,7 @@ def test_nonzero_locks(orig_tx, node, relayfee, use_height_lock):
253253
self.nodes[0].generate(1)
254254
cur_time += 600
255255

256-
assert(tx2.hash in self.nodes[0].getrawmempool())
256+
assert tx2.hash in self.nodes[0].getrawmempool()
257257

258258
test_nonzero_locks(tx2, self.nodes[0], self.relayfee, use_height_lock=True)
259259
test_nonzero_locks(tx2, self.nodes[0], self.relayfee, use_height_lock=False)
@@ -264,23 +264,23 @@ def test_nonzero_locks(orig_tx, node, relayfee, use_height_lock):
264264
# Advance the time on the node so that we can test timelocks
265265
self.nodes[0].setmocktime(cur_time+600)
266266
self.nodes[0].generate(1)
267-
assert(tx2.hash not in self.nodes[0].getrawmempool())
267+
assert tx2.hash not in self.nodes[0].getrawmempool()
268268

269269
# Now that tx2 is not in the mempool, a sequence locked spend should
270270
# succeed
271271
tx3 = test_nonzero_locks(tx2, self.nodes[0], self.relayfee, use_height_lock=False)
272-
assert(tx3.hash in self.nodes[0].getrawmempool())
272+
assert tx3.hash in self.nodes[0].getrawmempool()
273273

274274
self.nodes[0].generate(1)
275-
assert(tx3.hash not in self.nodes[0].getrawmempool())
275+
assert tx3.hash not in self.nodes[0].getrawmempool()
276276

277277
# One more test, this time using height locks
278278
tx4 = test_nonzero_locks(tx3, self.nodes[0], self.relayfee, use_height_lock=True)
279-
assert(tx4.hash in self.nodes[0].getrawmempool())
279+
assert tx4.hash in self.nodes[0].getrawmempool()
280280

281281
# Now try combining confirmed and unconfirmed inputs
282282
tx5 = test_nonzero_locks(tx4, self.nodes[0], self.relayfee, use_height_lock=True)
283-
assert(tx5.hash not in self.nodes[0].getrawmempool())
283+
assert tx5.hash not in self.nodes[0].getrawmempool()
284284

285285
utxos = self.nodes[0].listunspent()
286286
tx5.vin.append(CTxIn(COutPoint(int(utxos[0]["txid"], 16), utxos[0]["vout"]), nSequence=1))
@@ -299,8 +299,8 @@ def test_nonzero_locks(orig_tx, node, relayfee, use_height_lock):
299299
# If we invalidate the tip, tx3 should get added to the mempool, causing
300300
# tx4 to be removed (fails sequence-lock).
301301
self.nodes[0].invalidateblock(self.nodes[0].getbestblockhash())
302-
assert(tx4.hash not in self.nodes[0].getrawmempool())
303-
assert(tx3.hash in self.nodes[0].getrawmempool())
302+
assert tx4.hash not in self.nodes[0].getrawmempool()
303+
assert tx3.hash in self.nodes[0].getrawmempool()
304304

305305
# Now mine 2 empty blocks to reorg out the current tip (labeled tip-1 in
306306
# diagram above).
@@ -319,8 +319,8 @@ def test_nonzero_locks(orig_tx, node, relayfee, use_height_lock):
319319
cur_time += 1
320320

321321
mempool = self.nodes[0].getrawmempool()
322-
assert(tx3.hash not in mempool)
323-
assert(tx2.hash in mempool)
322+
assert tx3.hash not in mempool
323+
assert tx2.hash in mempool
324324

325325
# Reset the chain and get rid of the mocktimed-blocks
326326
self.nodes[0].setmocktime(0)
@@ -332,7 +332,7 @@ def test_nonzero_locks(orig_tx, node, relayfee, use_height_lock):
332332
# being run, then it's possible the test has activated the soft fork, and
333333
# this test should be moved to run earlier, or deleted.
334334
def test_bip68_not_consensus(self):
335-
assert(get_bip9_status(self.nodes[0], 'csv')['status'] != 'active')
335+
assert get_bip9_status(self.nodes[0], 'csv')['status'] != 'active'
336336
txid = self.nodes[0].sendtoaddress(self.nodes[0].getnewaddress(), 2)
337337

338338
tx1 = FromHex(CTransaction(), self.nodes[0].getrawtransaction(txid))

test/functional/feature_block.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def run_test(self):
773773
self.move_tip(57)
774774
b58 = self.next_block(58, spend=out[17])
775775
tx = CTransaction()
776-
assert(len(out[17].vout) < 42)
776+
assert len(out[17].vout) < 42
777777
tx.vin.append(CTxIn(COutPoint(out[17].sha256, 42), CScript([OP_TRUE]), 0xffffffff))
778778
tx.vout.append(CTxOut(0, b""))
779779
tx.calc_sha256()
@@ -824,7 +824,7 @@ def run_test(self):
824824
tx.nLockTime = 0xffffffff # this locktime is non-final
825825
tx.vin.append(CTxIn(COutPoint(out[18].sha256, 0))) # don't set nSequence
826826
tx.vout.append(CTxOut(0, CScript([OP_TRUE])))
827-
assert(tx.vin[0].nSequence < 0xffffffff)
827+
assert tx.vin[0].nSequence < 0xffffffff
828828
tx.calc_sha256()
829829
b62 = self.update_block(62, [tx])
830830
self.sync_blocks([b62], success=False, reject_reason='bad-txns-nonfinal')
@@ -1143,8 +1143,8 @@ def run_test(self):
11431143
# now check that tx78 and tx79 have been put back into the peer's mempool
11441144
mempool = self.nodes[0].getrawmempool()
11451145
assert_equal(len(mempool), 2)
1146-
assert(tx78.hash in mempool)
1147-
assert(tx79.hash in mempool)
1146+
assert tx78.hash in mempool
1147+
assert tx79.hash in mempool
11481148

11491149
# Test invalid opcodes in dead execution paths.
11501150
#

test/functional/feature_csv_activation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def send_generic_input_tx(node, coinbases, address):
106106
def create_bip68txs(node, bip68inputs, txversion, address, locktime_delta=0):
107107
"""Returns a list of bip68 transactions with different bits set."""
108108
txs = []
109-
assert(len(bip68inputs) >= 16)
109+
assert len(bip68inputs) >= 16
110110
for i, (sdf, srhb, stf, srlb) in enumerate(product(*[[True, False]] * 4)):
111111
locktime = relative_locktime(sdf, srhb, stf, srlb)
112112
tx = create_transaction(node, bip68inputs[i], address, amount=Decimal("49.98"))
@@ -121,7 +121,7 @@ def create_bip68txs(node, bip68inputs, txversion, address, locktime_delta=0):
121121
def create_bip112txs(node, bip112inputs, varyOP_CSV, txversion, address, locktime_delta=0):
122122
"""Returns a list of bip68 transactions with different bits set."""
123123
txs = []
124-
assert(len(bip112inputs) >= 16)
124+
assert len(bip112inputs) >= 16
125125
for i, (sdf, srhb, stf, srlb) in enumerate(product(*[[True, False]] * 4)):
126126
locktime = relative_locktime(sdf, srhb, stf, srlb)
127127
tx = create_transaction(node, bip112inputs[i], address, amount=Decimal("49.98"))

test/functional/feature_nulldummy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def trueDummy(tx):
2727
newscript = []
2828
for i in scriptSig:
2929
if (len(newscript) == 0):
30-
assert(len(i) == 0)
30+
assert len(i) == 0
3131
newscript.append(b'\x51')
3232
else:
3333
newscript.append(i)

test/functional/feature_proxy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def node_test(self, node, proxies, auth, test_onion=True):
9595
# Test: outgoing IPv4 connection through node
9696
node.addnode("15.61.23.23:1234", "onetry")
9797
cmd = proxies[0].queue.get()
98-
assert(isinstance(cmd, Socks5Command))
98+
assert isinstance(cmd, Socks5Command)
9999
# Note: bitcoind's SOCKS5 implementation only sends atyp DOMAINNAME, even if connecting directly to IPv4/IPv6
100100
assert_equal(cmd.atyp, AddressType.DOMAINNAME)
101101
assert_equal(cmd.addr, b"15.61.23.23")
@@ -109,7 +109,7 @@ def node_test(self, node, proxies, auth, test_onion=True):
109109
# Test: outgoing IPv6 connection through node
110110
node.addnode("[1233:3432:2434:2343:3234:2345:6546:4534]:5443", "onetry")
111111
cmd = proxies[1].queue.get()
112-
assert(isinstance(cmd, Socks5Command))
112+
assert isinstance(cmd, Socks5Command)
113113
# Note: bitcoind's SOCKS5 implementation only sends atyp DOMAINNAME, even if connecting directly to IPv4/IPv6
114114
assert_equal(cmd.atyp, AddressType.DOMAINNAME)
115115
assert_equal(cmd.addr, b"1233:3432:2434:2343:3234:2345:6546:4534")
@@ -123,7 +123,7 @@ def node_test(self, node, proxies, auth, test_onion=True):
123123
# Test: outgoing onion connection through node
124124
node.addnode("bitcoinostk4e4re.onion:8333", "onetry")
125125
cmd = proxies[2].queue.get()
126-
assert(isinstance(cmd, Socks5Command))
126+
assert isinstance(cmd, Socks5Command)
127127
assert_equal(cmd.atyp, AddressType.DOMAINNAME)
128128
assert_equal(cmd.addr, b"bitcoinostk4e4re.onion")
129129
assert_equal(cmd.port, 8333)
@@ -135,7 +135,7 @@ def node_test(self, node, proxies, auth, test_onion=True):
135135
# Test: outgoing DNS name connection through node
136136
node.addnode("node.noumenon:8333", "onetry")
137137
cmd = proxies[3].queue.get()
138-
assert(isinstance(cmd, Socks5Command))
138+
assert isinstance(cmd, Socks5Command)
139139
assert_equal(cmd.atyp, AddressType.DOMAINNAME)
140140
assert_equal(cmd.addr, b"node.noumenon")
141141
assert_equal(cmd.port, 8333)

test/functional/feature_pruning.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def reorg_test(self):
151151
self.nodes[1].invalidateblock(curhash)
152152
curhash = self.nodes[1].getblockhash(invalidheight - 1)
153153

154-
assert(self.nodes[1].getblockcount() == invalidheight - 1)
154+
assert self.nodes[1].getblockcount() == invalidheight - 1
155155
self.log.info("New best height: %d" % self.nodes[1].getblockcount())
156156

157157
# Reboot node1 to clear those giant tx's from mempool
@@ -219,17 +219,17 @@ def reorg_back(self):
219219
blocks_to_mine = first_reorg_height + 1 - self.mainchainheight
220220
self.log.info("Rewind node 0 to prev main chain to mine longer chain to trigger redownload. Blocks needed: %d" % blocks_to_mine)
221221
self.nodes[0].invalidateblock(curchainhash)
222-
assert(self.nodes[0].getblockcount() == self.mainchainheight)
223-
assert(self.nodes[0].getbestblockhash() == self.mainchainhash2)
222+
assert self.nodes[0].getblockcount() == self.mainchainheight
223+
assert self.nodes[0].getbestblockhash() == self.mainchainhash2
224224
goalbesthash = self.nodes[0].generate(blocks_to_mine)[-1]
225225
goalbestheight = first_reorg_height + 1
226226

227227
self.log.info("Verify node 2 reorged back to the main chain, some blocks of which it had to redownload")
228228
# Wait for Node 2 to reorg to proper height
229229
wait_until(lambda: self.nodes[2].getblockcount() >= goalbestheight, timeout=900)
230-
assert(self.nodes[2].getbestblockhash() == goalbesthash)
230+
assert self.nodes[2].getbestblockhash() == goalbesthash
231231
# Verify we can now have the data for a block previously pruned
232-
assert(self.nodes[2].getblock(self.forkhash)["height"] == self.forkheight)
232+
assert self.nodes[2].getblock(self.forkhash)["height"] == self.forkheight
233233

234234
def manual_test(self, node_number, use_timestamp):
235235
# at this point, node has 995 blocks and has not yet run in prune mode

test/functional/feature_rbf.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def make_utxo(node, amount, confirmed=True, scriptPubKey=CScript([1])):
5656
new_size = len(node.getrawmempool())
5757
# Error out if we have something stuck in the mempool, as this
5858
# would likely be a bug.
59-
assert(new_size < mempool_size)
59+
assert new_size < mempool_size
6060
mempool_size = new_size
6161

6262
return COutPoint(int(txid, 16), 0)
@@ -163,8 +163,8 @@ def test_simple_doublespend(self):
163163

164164
mempool = self.nodes[0].getrawmempool()
165165

166-
assert (tx1a_txid not in mempool)
167-
assert (tx1b_txid in mempool)
166+
assert tx1a_txid not in mempool
167+
assert tx1b_txid in mempool
168168

169169
assert_equal(tx1b_hex, self.nodes[0].getrawtransaction(tx1b_txid))
170170

@@ -211,7 +211,7 @@ def test_doublespend_chain(self):
211211

212212
mempool = self.nodes[0].getrawmempool()
213213
for doublespent_txid in chain_txids:
214-
assert(doublespent_txid not in mempool)
214+
assert doublespent_txid not in mempool
215215

216216
def test_doublespend_tree(self):
217217
"""Doublespend of a big tree of transactions"""
@@ -236,7 +236,7 @@ def branch(prevout, initial_value, max_txs, tree_width=5, fee=0.0001*COIN, _tota
236236
tx.vout = vout
237237
tx_hex = txToHex(tx)
238238

239-
assert(len(tx.serialize()) < 100000)
239+
assert len(tx.serialize()) < 100000
240240
txid = self.nodes[0].sendrawtransaction(tx_hex, True)
241241
yield tx
242242
_total_txs[0] += 1
@@ -274,7 +274,7 @@ def branch(prevout, initial_value, max_txs, tree_width=5, fee=0.0001*COIN, _tota
274274

275275
for tx in tree_txs:
276276
tx.rehash()
277-
assert (tx.hash not in mempool)
277+
assert tx.hash not in mempool
278278

279279
# Try again, but with more total transactions than the "max txs
280280
# double-spent at once" anti-DoS limit.
@@ -529,7 +529,7 @@ def test_prioritised_transactions(self):
529529
# Now tx1b should be able to replace tx1a
530530
tx1b_txid = self.nodes[0].sendrawtransaction(tx1b_hex, True)
531531

532-
assert(tx1b_txid in self.nodes[0].getrawmempool())
532+
assert tx1b_txid in self.nodes[0].getrawmempool()
533533

534534
# 2. Check that absolute fee checks use modified fee.
535535
tx1_outpoint = make_utxo(self.nodes[0], int(1.1*COIN))
@@ -556,7 +556,7 @@ def test_prioritised_transactions(self):
556556
# tx2b should now be accepted
557557
tx2b_txid = self.nodes[0].sendrawtransaction(tx2b_hex, True)
558558

559-
assert(tx2b_txid in self.nodes[0].getrawmempool())
559+
assert tx2b_txid in self.nodes[0].getrawmempool()
560560

561561
def test_rpc(self):
562562
us0 = self.nodes[0].listunspent()[0]

test/functional/feature_segwit.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ def run_test(self):
9393
self.log.info("Verify sigops are counted in GBT with pre-BIP141 rules before the fork")
9494
txid = self.nodes[0].sendtoaddress(self.nodes[0].getnewaddress(), 1)
9595
tmpl = self.nodes[0].getblocktemplate({'rules': ['segwit']})
96-
assert(tmpl['sizelimit'] == 1000000)
97-
assert('weightlimit' not in tmpl)
98-
assert(tmpl['sigoplimit'] == 20000)
99-
assert(tmpl['transactions'][0]['hash'] == txid)
100-
assert(tmpl['transactions'][0]['sigops'] == 2)
96+
assert tmpl['sizelimit'] == 1000000
97+
assert 'weightlimit' not in tmpl
98+
assert tmpl['sigoplimit'] == 20000
99+
assert tmpl['transactions'][0]['hash'] == txid
100+
assert tmpl['transactions'][0]['sigops'] == 2
101101
tmpl = self.nodes[0].getblocktemplate({'rules': ['segwit']})
102-
assert(tmpl['sizelimit'] == 1000000)
103-
assert('weightlimit' not in tmpl)
104-
assert(tmpl['sigoplimit'] == 20000)
105-
assert(tmpl['transactions'][0]['hash'] == txid)
106-
assert(tmpl['transactions'][0]['sigops'] == 2)
102+
assert tmpl['sizelimit'] == 1000000
103+
assert 'weightlimit' not in tmpl
104+
assert tmpl['sigoplimit'] == 20000
105+
assert tmpl['transactions'][0]['hash'] == txid
106+
assert tmpl['transactions'][0]['sigops'] == 2
107107
self.nodes[0].generate(1) # block 162
108108

109109
balance_presetup = self.nodes[0].getbalance()
@@ -172,16 +172,16 @@ def run_test(self):
172172
self.fail_accept(self.nodes[0], "mandatory-script-verify-flag", p2sh_ids[NODE_0][WIT_V1][0], False, witness_script(True, self.pubkey[0]))
173173

174174
self.log.info("Verify block and transaction serialization rpcs return differing serializations depending on rpc serialization flag")
175-
assert(self.nodes[2].getblock(blockhash, False) != self.nodes[0].getblock(blockhash, False))
176-
assert(self.nodes[1].getblock(blockhash, False) == self.nodes[2].getblock(blockhash, False))
175+
assert self.nodes[2].getblock(blockhash, False) != self.nodes[0].getblock(blockhash, False)
176+
assert self.nodes[1].getblock(blockhash, False) == self.nodes[2].getblock(blockhash, False)
177177

178178
for tx_id in segwit_tx_list:
179179
tx = FromHex(CTransaction(), self.nodes[2].gettransaction(tx_id)["hex"])
180-
assert(self.nodes[2].getrawtransaction(tx_id, False, blockhash) != self.nodes[0].getrawtransaction(tx_id, False, blockhash))
181-
assert(self.nodes[1].getrawtransaction(tx_id, False, blockhash) == self.nodes[2].getrawtransaction(tx_id, False, blockhash))
182-
assert(self.nodes[0].getrawtransaction(tx_id, False, blockhash) != self.nodes[2].gettransaction(tx_id)["hex"])
183-
assert(self.nodes[1].getrawtransaction(tx_id, False, blockhash) == self.nodes[2].gettransaction(tx_id)["hex"])
184-
assert(self.nodes[0].getrawtransaction(tx_id, False, blockhash) == tx.serialize_without_witness().hex())
180+
assert self.nodes[2].getrawtransaction(tx_id, False, blockhash) != self.nodes[0].getrawtransaction(tx_id, False, blockhash)
181+
assert self.nodes[1].getrawtransaction(tx_id, False, blockhash) == self.nodes[2].getrawtransaction(tx_id, False, blockhash)
182+
assert self.nodes[0].getrawtransaction(tx_id, False, blockhash) != self.nodes[2].gettransaction(tx_id)["hex"]
183+
assert self.nodes[1].getrawtransaction(tx_id, False, blockhash) == self.nodes[2].gettransaction(tx_id)["hex"]
184+
assert self.nodes[0].getrawtransaction(tx_id, False, blockhash) == tx.serialize_without_witness().hex()
185185

186186
self.log.info("Verify witness txs without witness data are invalid after the fork")
187187
self.fail_accept(self.nodes[2], 'non-mandatory-script-verify-flag (Witness program hash mismatch) (code 64)', wit_ids[NODE_2][WIT_V0][2], sign=False)
@@ -198,11 +198,11 @@ def run_test(self):
198198
self.log.info("Verify sigops are counted in GBT with BIP141 rules after the fork")
199199
txid = self.nodes[0].sendtoaddress(self.nodes[0].getnewaddress(), 1)
200200
tmpl = self.nodes[0].getblocktemplate({'rules': ['segwit']})
201-
assert(tmpl['sizelimit'] >= 3999577) # actual maximum size is lower due to minimum mandatory non-witness data
202-
assert(tmpl['weightlimit'] == 4000000)
203-
assert(tmpl['sigoplimit'] == 80000)
204-
assert(tmpl['transactions'][0]['txid'] == txid)
205-
assert(tmpl['transactions'][0]['sigops'] == 8)
201+
assert tmpl['sizelimit'] >= 3999577 # actual maximum size is lower due to minimum mandatory non-witness data
202+
assert tmpl['weightlimit'] == 4000000
203+
assert tmpl['sigoplimit'] == 80000
204+
assert tmpl['transactions'][0]['txid'] == txid
205+
assert tmpl['transactions'][0]['sigops'] == 8
206206

207207
self.nodes[0].generate(1) # Mine a block to clear the gbt cache
208208

@@ -214,8 +214,8 @@ def run_test(self):
214214
txid1 = send_to_witness(1, self.nodes[0], find_spendable_utxo(self.nodes[0], 50), self.pubkey[0], False, Decimal("49.996"))
215215
hex_tx = self.nodes[0].gettransaction(txid)['hex']
216216
tx = FromHex(CTransaction(), hex_tx)
217-
assert(tx.wit.is_null()) # This should not be a segwit input
218-
assert(txid1 in self.nodes[0].getrawmempool())
217+
assert tx.wit.is_null() # This should not be a segwit input
218+
assert txid1 in self.nodes[0].getrawmempool()
219219

220220
# Now create tx2, which will spend from txid1.
221221
tx = CTransaction()
@@ -224,23 +224,23 @@ def run_test(self):
224224
tx2_hex = self.nodes[0].signrawtransactionwithwallet(ToHex(tx))['hex']
225225
txid2 = self.nodes[0].sendrawtransaction(tx2_hex)
226226
tx = FromHex(CTransaction(), tx2_hex)
227-
assert(not tx.wit.is_null())
227+
assert not tx.wit.is_null()
228228

229229
# Now create tx3, which will spend from txid2
230230
tx = CTransaction()
231231
tx.vin.append(CTxIn(COutPoint(int(txid2, 16), 0), b""))
232232
tx.vout.append(CTxOut(int(49.95 * COIN), CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE]))) # Huge fee
233233
tx.calc_sha256()
234234
txid3 = self.nodes[0].sendrawtransaction(ToHex(tx))
235-
assert(tx.wit.is_null())
236-
assert(txid3 in self.nodes[0].getrawmempool())
235+
assert tx.wit.is_null()
236+
assert txid3 in self.nodes[0].getrawmempool()
237237

238238
# Check that getblocktemplate includes all transactions.
239239
template = self.nodes[0].getblocktemplate({"rules": ["segwit"]})
240240
template_txids = [t['txid'] for t in template['transactions']]
241-
assert(txid1 in template_txids)
242-
assert(txid2 in template_txids)
243-
assert(txid3 in template_txids)
241+
assert txid1 in template_txids
242+
assert txid2 in template_txids
243+
assert txid3 in template_txids
244244

245245
# Check that wtxid is properly reported in mempool entry
246246
assert_equal(int(self.nodes[0].getmempoolentry(txid3)["wtxid"], 16), tx.calc_sha256(True))

0 commit comments

Comments
 (0)