mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Make GenTxid boolean constructor private
This commit is contained in:
parent
faeb9a5753
commit
fa4ec1c0bd
7 changed files with 13 additions and 12 deletions
|
|
@ -300,7 +300,7 @@ std::map<uint256, TxHashInfo> ComputeTxHashInfo(const Index& index, const Priori
|
|||
|
||||
GenTxid ToGenTxid(const Announcement& ann)
|
||||
{
|
||||
return {ann.m_is_wtxid, ann.m_txhash};
|
||||
return ann.m_is_wtxid ? GenTxid::Wtxid(ann.m_txhash) : GenTxid::Txid(ann.m_txhash);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue