@@ -91,21 +91,21 @@ FUZZ_TARGET(txorphan, .init = initialize_orphanage)
91
91
{
92
92
CTransactionRef ref = orphanage.GetTxToReconsider (peer_id);
93
93
if (ref) {
94
- bool have_tx = orphanage.HaveTx (GenTxid::Txid (ref->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (ref->GetHash ()));
94
+ bool have_tx = orphanage.HaveTx (GenTxid::Txid (ref->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (ref->GetWitnessHash ()));
95
95
Assert (have_tx);
96
96
}
97
97
}
98
98
},
99
99
[&] {
100
- bool have_tx = orphanage.HaveTx (GenTxid::Txid (tx->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (tx->GetHash ()));
100
+ bool have_tx = orphanage.HaveTx (GenTxid::Txid (tx->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (tx->GetWitnessHash ()));
101
101
// AddTx should return false if tx is too big or already have it
102
102
// tx weight is unknown, we only check when tx is already in orphanage
103
103
{
104
104
bool add_tx = orphanage.AddTx (tx, peer_id);
105
105
// have_tx == true -> add_tx == false
106
106
Assert (!have_tx || !add_tx);
107
107
}
108
- have_tx = orphanage.HaveTx (GenTxid::Txid (tx->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (tx->GetHash ()));
108
+ have_tx = orphanage.HaveTx (GenTxid::Txid (tx->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (tx->GetWitnessHash ()));
109
109
{
110
110
bool add_tx = orphanage.AddTx (tx, peer_id);
111
111
// if have_tx is still false, it must be too big
@@ -114,12 +114,12 @@ FUZZ_TARGET(txorphan, .init = initialize_orphanage)
114
114
}
115
115
},
116
116
[&] {
117
- bool have_tx = orphanage.HaveTx (GenTxid::Txid (tx->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (tx->GetHash ()));
117
+ bool have_tx = orphanage.HaveTx (GenTxid::Txid (tx->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (tx->GetWitnessHash ()));
118
118
// EraseTx should return 0 if m_orphans doesn't have the tx
119
119
{
120
120
Assert (have_tx == orphanage.EraseTx (tx->GetHash ()));
121
121
}
122
- have_tx = orphanage.HaveTx (GenTxid::Txid (tx->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (tx->GetHash ()));
122
+ have_tx = orphanage.HaveTx (GenTxid::Txid (tx->GetHash ())) || orphanage.HaveTx (GenTxid::Wtxid (tx->GetWitnessHash ()));
123
123
// have_tx should be false and EraseTx should fail
124
124
{
125
125
Assert (!have_tx && !orphanage.EraseTx (tx->GetHash ()));
0 commit comments