We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4330af6 commit 459104bCopy full SHA for 459104b
test/functional/interface_rest.py
@@ -311,6 +311,15 @@ def run_test(self):
311
if 'coinbase' not in tx['vin'][0]}
312
assert_equal(non_coinbase_txs, set(txs))
313
314
+ # Verify that the non-coinbase tx has "prevout" key set
315
+ for tx_obj in json_obj["tx"]:
316
+ for vin in tx_obj["vin"]:
317
+ if "coinbase" not in vin:
318
+ assert "prevout" in vin
319
+ assert_equal(vin["prevout"]["generated"], False)
320
+ else:
321
+ assert "prevout" not in vin
322
+
323
# Check the same but without tx details
324
json_obj = self.test_rest_request(f"/block/notxdetails/{newblockhash[0]}")
325
for tx in txs:
0 commit comments