mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge a5fa90706a into merged_master (Bitcoin PR bitcoin/bitcoin#30834)
This commit is contained in:
commit
9deeff9661
2 changed files with 4 additions and 14 deletions
|
|
@ -155,10 +155,10 @@ BOOST_FIXTURE_TEST_CASE(chainstatemanager_rebalance_caches, TestChain100Setup)
|
|||
manager.MaybeRebalanceCaches();
|
||||
}
|
||||
|
||||
BOOST_CHECK_CLOSE(c1.m_coinstip_cache_size_bytes, max_cache * 0.05, 1);
|
||||
BOOST_CHECK_CLOSE(c1.m_coinsdb_cache_size_bytes, max_cache * 0.05, 1);
|
||||
BOOST_CHECK_CLOSE(c2.m_coinstip_cache_size_bytes, max_cache * 0.95, 1);
|
||||
BOOST_CHECK_CLOSE(c2.m_coinsdb_cache_size_bytes, max_cache * 0.95, 1);
|
||||
BOOST_CHECK_CLOSE(double(c1.m_coinstip_cache_size_bytes), max_cache * 0.05, 1);
|
||||
BOOST_CHECK_CLOSE(double(c1.m_coinsdb_cache_size_bytes), max_cache * 0.05, 1);
|
||||
BOOST_CHECK_CLOSE(double(c2.m_coinstip_cache_size_bytes), max_cache * 0.95, 1);
|
||||
BOOST_CHECK_CLOSE(double(c2.m_coinsdb_cache_size_bytes), max_cache * 0.95, 1);
|
||||
}
|
||||
|
||||
struct SnapshotTestSetup : TestChain100Setup {
|
||||
|
|
|
|||
|
|
@ -24,17 +24,7 @@
|
|||
#include <util/result.h>
|
||||
#include <util/feefrac.h>
|
||||
|
||||
// This works around a bug in Boost <= 1.80.0 when using Clang >=18.
|
||||
// See https://github.com/bitcoin/bitcoin/issues/30751.
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wenum-constexpr-conversion"
|
||||
#endif
|
||||
#include <boost/multi_index/hashed_index.hpp>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#include <boost/multi_index/identity.hpp>
|
||||
#include <boost/multi_index/indexed_by.hpp>
|
||||
#include <boost/multi_index/ordered_index.hpp>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue