20#include <xrpld/app/tx/detail/SignerEntries.h>
22#include <xrpl/basics/Log.h>
23#include <xrpl/protocol/STArray.h>
24#include <xrpl/protocol/STObject.h>
31Expected<std::vector<SignerEntries::SignerEntry>,
NotTEC>
42 <<
"Malformed " << annotation <<
": Need signer entry array.";
50 for (
STObject const& sEntry : sEntries)
53 if (sEntry.getFName() != sfSignerEntry)
56 <<
"Malformed " << annotation <<
": Expected SignerEntry.";
61 AccountID const account = sEntry.getAccountID(sfAccount);
62 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 std::size_t maxMultiSigners(Rules const *rules=0)
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