Unify ledger_index type (#1019)

Fix #1014
This commit is contained in:
cyan317
2023-12-08 14:20:40 +00:00
committed by GitHub
parent a57abb15a3
commit b886586de3
7 changed files with 119 additions and 19 deletions

View File

@@ -105,7 +105,7 @@ LedgerDataHandler::process(Input input, Context const& ctx) const
// no marker -> first call, return header information
if ((!input.marker) && (!input.diffMarker)) {
output.header = toJson(lgrInfo, input.binary);
output.header = toJson(lgrInfo, input.binary, ctx.apiVersion);
} else {
if (input.marker && !sharedPtrBackend_->fetchLedgerObject(*(input.marker), lgrInfo.seq, ctx.yield))
return Error{Status{RippledError::rpcINVALID_PARAMS, "markerDoesNotExist"}};