working premine; empty first version of PROTOCOL_TX in block

This commit is contained in:
Some Random Crypto Guy
2023-10-18 10:48:16 +01:00
parent d186cf95c1
commit 0b3633ccdc
667 changed files with 8288 additions and 5019 deletions
+1 -17
View File
@@ -1,4 +1,4 @@
// Copyright (c) 2014-2023, The Monero Project
// Copyright (c) 2014-2022, The Monero Project
//
// All rights reserved.
//
@@ -1241,22 +1241,6 @@ TEST(ToHex, ArrayFromPod)
);
}
TEST(ToHex, Buffer)
{
static constexpr const std::uint8_t source[] = {0xFF, 0x00, 0xAB, 0x01};
const std::vector<char> expected{'f', 'f', '0', '0', 'a', 'b', '0', '1'};
std::vector<char> buffer;
buffer.resize(expected.size());
EXPECT_TRUE(epee::to_hex::buffer(epee::to_mut_span(buffer), source));
EXPECT_EQ(expected, buffer);
buffer.pop_back();
EXPECT_FALSE(epee::to_hex::buffer(epee::to_mut_span(buffer), source));
buffer.pop_back();
EXPECT_FALSE(epee::to_hex::buffer(epee::to_mut_span(buffer), source));
}
TEST(ToHex, Ostream)
{
std::stringstream out;