You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #839: [0.18 backport] Index the genesis block with txindex
b23efb2 Improve coinbase and issuance tx testing for txindex (Steven Roose)
91ad748 Index the genesis block with txindex (Steven Roose)
Pull request description:
Backport of #838.
Tree-SHA512: 19597a30d117efd33bf76709c3428def9bfa374f356a5e52a81d617794fb985d3e663ed8911422916d4af113f618d276442fdb0e503cf4df6a1a09e04b63a64a
# Coinbase transaction is provably unspendable (OP_RETURN), so even AddCoin won't add it
55
-
assert_raises_rpc_error(-5, "No such mempool transaction. Use -txindex to enable blockchain transaction queries. Use gettransaction for wallet transactions.", self.nodes[0].getrawtransaction, coinbase_tx)
56
-
assert_raises_rpc_error(-5, "No such mempool transaction. Use -txindex to enable blockchain transaction queries. Use gettransaction for wallet transactions.", self.nodes[1].getrawtransaction, coinbase_tx)
# Issuance transaction is an OP_TRUE, so will be available to second node
59
-
assert_raises_rpc_error(-5, "No such mempool transaction. Use -txindex to enable blockchain transaction queries. Use gettransaction for wallet transactions.", self.nodes[0].getrawtransaction, issuance_tx)
58
+
# Node 1 doesn't.
59
+
assert_raises_rpc_error(-5, "No such mempool transaction. Use -txindex to enable blockchain transaction queries. Use gettransaction for wallet transactions.", self.nodes[1].getrawtransaction, coinbase_tx)
60
+
assert_raises_rpc_error(-5, "No such mempool transaction. Use -txindex to enable blockchain transaction queries. Use gettransaction for wallet transactions.", self.nodes[1].getrawtransaction, issuance_tx)
61
+
# But it can still access them by providing the genesis block hash.
0 commit comments