Merge 72a5e4117c into merged_master (Elements PR #1391)

Adds a FIXME in wallet_sendall.py
This commit is contained in:
Byron Hambly 2025-02-11 15:22:24 +02:00
commit d8cd03906e
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697
4 changed files with 13 additions and 3 deletions

View file

@ -135,6 +135,11 @@ public:
CConfidentialValue() { SetNull(); }
CConfidentialValue(CAmount nAmount) { SetToAmount(nAmount); }
template <typename Stream>
inline void Unserialize(Stream& s) {
CConfidentialCommitment::Unserialize(s);
}
/* An explicit value is called an amount. The first byte indicates it is
* an explicit value, and the remaining 8 bytes is the value serialized as
* a 64-bit big-endian integer. */

View file

@ -303,6 +303,9 @@ public:
s >> nAsset;
s >> nValue;
s >> nNonce;
if (nAsset.IsNull() || nValue.IsNull()) {
throw std::ios_base::failure("Confidential values may not be null");
}
} else {
CAmount value;
s >> value;

View file

@ -23,10 +23,12 @@ namespace {
const BasicTestingSetup* g_setup;
} // namespace
void initialize_rbf()
{
void initialize_rbf(void) {
static const auto testing_setup = MakeNoLogFileContext<>();
g_setup = testing_setup.get();
// ELEMENTS: our mempool needs Params() to be set for multiple reasons -- to check
// the discount CT rate, to figure out pegin policy, etc
SelectParams(CBaseChainParams::LIQUID1);
}
FUZZ_TARGET_INIT(rbf, initialize_rbf)

View file

@ -366,7 +366,7 @@ class SendallTest(BitcoinTestFramework):
self.sendall_duplicate_recipient()
# Sendall fails when trying to spend more than the balance
self.sendall_invalid_amounts()
# self.sendall_invalid_amounts() # ELEMENTS: FIXME 'tx decode failed'
# Sendall fails when wallet has no economically spendable UTXOs
self.sendall_negative_effective_value()