#include #include #include #include namespace xrpl { bool Keylet::check(STLedgerEntry const& sle) const { XRPL_ASSERT( sle.getType() != ltANY || sle.getType() != ltCHILD, "xrpl::Keylet::check : valid input type"); if (type == ltANY) return true; if (type == ltCHILD) return sle.getType() != ltDIR_NODE; return sle.getType() == type && sle.key() == key; } } // namespace xrpl