mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Reduce RippleD dependencies on Beast:
* Use static_assert where appropriate * Use std::min and std::max where appropriate * Simplify RippleD error reporting * Remove use of beast::RandomAccessFile
This commit is contained in:
committed by
Vinnie Falco
parent
e005cfd70e
commit
f9fc9a3518
@@ -31,7 +31,8 @@ EncodedBlob::prepare (NodeObject::Ptr const& object)
|
||||
m_data.ensureSize (m_size);
|
||||
|
||||
// These sizes must be the same!
|
||||
static_bassert (sizeof (std::uint32_t) == sizeof (object->getLedgerIndex ()));
|
||||
static_assert (sizeof (std::uint32_t) == sizeof (object->getLedgerIndex ()),
|
||||
"Ledger Indices must be exactly 32-bits long.");
|
||||
|
||||
{
|
||||
std::uint32_t* buf = static_cast <std::uint32_t*> (m_data.getData ());
|
||||
|
||||
Reference in New Issue
Block a user