(self)
| 883 | |
| 884 | # Recalculate the txid (transaction hash without witness) |
| 885 | def rehash(self): |
| 886 | self.sha256 = None |
| 887 | self.calc_sha256() |
| 888 | return self.hash |
| 889 | |
| 890 | # We will only cache the serialization without witness in |
| 891 | # self.sha256 and self.hash -- those are expected to be the txid. |