petertodd / python-bitcoinlib

Python3 library providing an easy interface to the Bitcoin data structures and protocol.
Other
1.81k stars 620 forks source link

Why delete r['txid'] from rpc.getrawtransaction()? #275

Closed spacewrench closed 2 years ago

spacewrench commented 2 years ago

At rpc.py:595, several keys from the Bitcoin RPC JSON are deleted (including txid). This information seems like it would be useful. Is there a problem with leaving it in the returned CTransaction?

petertodd commented 2 years ago

They're deleted because all those things are in the returned CTransaction.