mirror of
https://github.com/XRPLF/rippled.git
synced 2026-02-09 08:22:32 +00:00
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
18 lines
434 B
C++
18 lines
434 B
C++
#include <xrpl/protocol/HashPrefix.h>
|
|
#include <xrpl/protocol/STVector256.h>
|
|
#include <xrpl/protocol/Serializer.h>
|
|
|
|
namespace xrpl {
|
|
|
|
inline void
|
|
serializeBatch(Serializer& msg, std::uint32_t const& flags, std::vector<uint256> const& txids)
|
|
{
|
|
msg.add32(HashPrefix::batch);
|
|
msg.add32(flags);
|
|
msg.add32(std::uint32_t(txids.size()));
|
|
for (auto const& txid : txids)
|
|
msg.addBitString(txid);
|
|
}
|
|
|
|
} // namespace xrpl
|