20#include <xrpld/app/tx/detail/SignerEntries.h>
21#include <xrpl/basics/Log.h>
22#include <xrpl/protocol/STArray.h>
23#include <xrpl/protocol/STObject.h>
29Expected<std::vector<SignerEntries::SignerEntry>,
NotTEC>
40 <<
"Malformed " << annotation <<
": Need signer entry array.";
48 for (
STObject const& sEntry : sEntries)
51 if (sEntry.getFName() != sfSignerEntry)
54 <<
"Malformed " << annotation <<
": Expected SignerEntry.";
59 AccountID const account = sEntry.getAccountID(sfAccount);
60 std::uint16_t const weight = sEntry.getFieldU16(sfSignerWeight);
A generic endpoint for log messages.
Stream trace() const
Severity stream access functions.
const STArray & 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