mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-02 16:26:48 +00:00
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
|