Use `Transaction::compute_txid` in rustdoc
The `txid` function was re-named to `compute_txid` but we missed one call link in rustdocs - update it.
This commit is contained in:
parent
98383a0fbe
commit
7b5af2ad5b
|
@ -340,7 +340,7 @@ impl Transaction {
|
||||||
///
|
///
|
||||||
/// Hashes the transaction **including** all segwit data (i.e. the marker, flag bytes, and the
|
/// Hashes the transaction **including** all segwit data (i.e. the marker, flag bytes, and the
|
||||||
/// witness fields themselves). For non-segwit transactions which do not have any segwit data,
|
/// witness fields themselves). For non-segwit transactions which do not have any segwit data,
|
||||||
/// this will be equal to [`Transaction::txid()`].
|
/// this will be equal to [`Transaction::compute_txid()`].
|
||||||
#[doc(alias = "wtxid")]
|
#[doc(alias = "wtxid")]
|
||||||
pub fn compute_wtxid(&self) -> Wtxid {
|
pub fn compute_wtxid(&self) -> Wtxid {
|
||||||
let hash = hash_transaction(self, self.uses_segwit_serialization());
|
let hash = hash_transaction(self, self.uses_segwit_serialization());
|
||||||
|
|
Loading…
Reference in New Issue