Skip to content

Commit 4cc48d4

Browse files
committed
Revert "Merge pull request ElementsProject#1391 from apoelstra/2025-02--misc-fuzz-fixes"
This reverts commit 72a5e41, reversing changes made to 368010a.
1 parent 3897d13 commit 4cc48d4

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

src/primitives/confidential.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,6 @@ class CConfidentialValue : public CConfidentialCommitment<9, 8, 9>
135135
CConfidentialValue() { SetNull(); }
136136
CConfidentialValue(CAmount nAmount) { SetToAmount(nAmount); }
137137

138-
template <typename Stream>
139-
inline void Unserialize(Stream& s) {
140-
CConfidentialCommitment::Unserialize(s);
141-
}
142-
143138
/* An explicit value is called an amount. The first byte indicates it is
144139
* an explicit value, and the remaining 8 bytes is the value serialized as
145140
* a 64-bit big-endian integer. */

src/primitives/transaction.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,6 @@ class CTxOut
295295
s >> nAsset;
296296
s >> nValue;
297297
s >> nNonce;
298-
if (nAsset.IsNull() || nValue.IsNull()) {
299-
throw std::ios_base::failure("Confidential values may not be null");
300-
}
301298
} else {
302299
CAmount value;
303300
s >> value;

src/test/fuzz/rbf.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@
1515
#include <string>
1616
#include <vector>
1717

18-
void initialize_rbf(void) {
19-
// ELEMENTS: our mempool needs Params() to be set for multiple reasons -- to check
20-
// the discount CT rate, to figure out pegin policy, etc
21-
SelectParams(CBaseChainParams::LIQUID1);
22-
}
23-
24-
FUZZ_TARGET_INIT(rbf, initialize_rbf)
18+
FUZZ_TARGET(rbf)
2519
{
2620
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
2721
SetMockTime(ConsumeTime(fuzzed_data_provider));

0 commit comments

Comments
 (0)