mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Per XLS-0095, we are taking steps to rename ripple(d) to xrpl(d). This change specifically removes all copyright notices referencing Ripple, XRPLF, and certain affiliated contributors upon mutual agreement, so the notice in the LICENSE.md file applies throughout. Copyright notices referencing external contributions remain as-is. Duplicate verbiage is also removed.
21 lines
451 B
C++
21 lines
451 B
C++
#include <xrpl/protocol/HashPrefix.h>
|
|
#include <xrpl/protocol/STVector256.h>
|
|
#include <xrpl/protocol/Serializer.h>
|
|
|
|
namespace ripple {
|
|
|
|
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 ripple
|