1#include <xrpld/app/tx/detail/SignerEntries.h>
3#include <xrpl/basics/Log.h>
4#include <xrpl/protocol/STArray.h>
5#include <xrpl/protocol/STObject.h>
12Expected<std::vector<SignerEntries::SignerEntry>,
NotTEC>
23 <<
"Malformed " << annotation <<
": Need signer entry array.";
31 for (
STObject const& sEntry : sEntries)
34 if (sEntry.getFName() != sfSignerEntry)
37 <<
"Malformed " << annotation <<
": Expected SignerEntry.";
42 AccountID const account = sEntry.getAccountID(sfAccount);
43 std::uint16_t const weight = sEntry.getFieldU16(sfSignerWeight);
A generic endpoint for log messages.
Stream trace() const
Severity stream access functions.
STArray const & getFieldArray(SField const &field) const
bool isFieldPresent(SField const &field) const
static constexpr std::size_t maxMultiSigners
static Expected< std::vector< SignerEntry >, NotTEC > deserialize(STObject const &obj, beast::Journal journal, std::string_view annotation)
T emplace_back(T... args)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
TERSubset< CanCvtToNotTEC > NotTEC