mirror of
https://github.com/XRPLF/clio.git
synced 2026-06-08 11:16:45 +00:00
chore: Use libxrpl 3.2.0 (#3095)
This commit is contained in:
@@ -161,8 +161,8 @@ struct LedgerCacheFileTestBase : ::testing::Test {
|
||||
data.latestSeq = kLATEST_SEQUENCE;
|
||||
|
||||
for (size_t i = 0; i < mapSize; ++i) {
|
||||
ripple::uint256 key;
|
||||
std::memset(key.data(), static_cast<int>(i), ripple::uint256::size());
|
||||
xrpl::uint256 key;
|
||||
std::memset(key.data(), static_cast<int>(i), xrpl::uint256::size());
|
||||
|
||||
data::LedgerCache::CacheEntry entry;
|
||||
entry.seq = static_cast<uint32_t>(1000 + i);
|
||||
@@ -173,8 +173,8 @@ struct LedgerCacheFileTestBase : ::testing::Test {
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < deletedSize; ++i) {
|
||||
ripple::uint256 key;
|
||||
std::memset(key.data(), static_cast<int>(i + 200), ripple::uint256::size());
|
||||
xrpl::uint256 key;
|
||||
std::memset(key.data(), static_cast<int>(i + 200), xrpl::uint256::size());
|
||||
|
||||
data::LedgerCache::CacheEntry entry;
|
||||
entry.seq = static_cast<uint32_t>(2000 + i);
|
||||
@@ -531,16 +531,16 @@ TEST_F(LedgerCacheFileEdgeCaseTest, SpecialKeyPatterns)
|
||||
LedgerCacheFile::Data testData;
|
||||
testData.latestSeq = 100;
|
||||
|
||||
ripple::uint256 zeroKey;
|
||||
std::memset(zeroKey.data(), 0, ripple::uint256::size());
|
||||
xrpl::uint256 zeroKey;
|
||||
std::memset(zeroKey.data(), 0, xrpl::uint256::size());
|
||||
testData.map.emplace(zeroKey, data::LedgerCache::CacheEntry{.seq = 1, .blob = {1, 2, 3}});
|
||||
|
||||
ripple::uint256 onesKey;
|
||||
std::memset(onesKey.data(), 0xFF, ripple::uint256::size());
|
||||
xrpl::uint256 onesKey;
|
||||
std::memset(onesKey.data(), 0xFF, xrpl::uint256::size());
|
||||
testData.map.emplace(onesKey, data::LedgerCache::CacheEntry{.seq = 2, .blob = {4, 5, 6}});
|
||||
|
||||
ripple::uint256 altKey;
|
||||
for (size_t i = 0; i < ripple::uint256::size(); ++i) {
|
||||
xrpl::uint256 altKey;
|
||||
for (size_t i = 0; i < xrpl::uint256::size(); ++i) {
|
||||
altKey.data()[i] = static_cast<unsigned char>(((i % 2) != 0u) ? 0xAA : 0x55);
|
||||
}
|
||||
testData.deleted.emplace(altKey, data::LedgerCache::CacheEntry{.seq = 3, .blob = {7, 8, 9}});
|
||||
@@ -579,10 +579,10 @@ TEST_F(LedgerCacheFileEdgeCaseTest, SequenceNumber)
|
||||
LedgerCacheFile::Data testData;
|
||||
testData.latestSeq = 0;
|
||||
|
||||
ripple::uint256 key1, key2, key3;
|
||||
std::memset(key1.data(), 1, ripple::uint256::size());
|
||||
std::memset(key2.data(), 2, ripple::uint256::size());
|
||||
std::memset(key3.data(), 3, ripple::uint256::size());
|
||||
xrpl::uint256 key1, key2, key3;
|
||||
std::memset(key1.data(), 1, xrpl::uint256::size());
|
||||
std::memset(key2.data(), 2, xrpl::uint256::size());
|
||||
std::memset(key3.data(), 3, xrpl::uint256::size());
|
||||
|
||||
testData.map.emplace(key1, data::LedgerCache::CacheEntry{.seq = 0, .blob = {1}});
|
||||
testData.map.emplace(key2, data::LedgerCache::CacheEntry{.seq = std::numeric_limits<uint32_t>::max(), .blob = {2}});
|
||||
|
||||
Reference in New Issue
Block a user