mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Type json improvements
This commit is contained in:
@@ -86,13 +86,18 @@ LedgerEntryFormat LedgerFormats[]=
|
||||
{ NULL, ltINVALID }
|
||||
};
|
||||
|
||||
|
||||
LedgerEntryFormat* getLgrFormat(LedgerEntryType t)
|
||||
{
|
||||
return getLgrFormat(t);
|
||||
}
|
||||
|
||||
LedgerEntryFormat* getLgrFormat(int t)
|
||||
{
|
||||
LedgerEntryFormat* f = LedgerFormats;
|
||||
while (f->t_name != NULL)
|
||||
{
|
||||
if (f->t_type == t) return f;
|
||||
if (f->t_type == t)
|
||||
return f;
|
||||
++f;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user