mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Serialize metadata as blob in tx RPC when binary flag is true
This commit is contained in:
@@ -236,7 +236,14 @@ doTxHelp(RPC::Context& context, TxArgs const& args)
|
||||
|
||||
if (ledger && meta)
|
||||
{
|
||||
result.meta = meta;
|
||||
if (args.binary)
|
||||
{
|
||||
result.meta = meta->getAsObject().getSerializer().getData();
|
||||
}
|
||||
else
|
||||
{
|
||||
result.meta = meta;
|
||||
}
|
||||
result.validated = isValidated(
|
||||
context.ledgerMaster, ledger->info().seq, ledger->info().hash);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user