mirror of
https://github.com/Xahau/xahaud.git
synced 2026-01-19 22:25:16 +00:00
Compare commits
3 Commits
catalogue
...
sublimator
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c31119cf74 | ||
|
|
d546d761ce | ||
|
|
e84a36867b |
@@ -18,7 +18,9 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/app/ledger/Ledger.h>
|
||||
#include <ripple/app/ledger/LedgerMaster.h>
|
||||
#include <ripple/app/ledger/LedgerToJson.h>
|
||||
#include <ripple/app/main/Application.h>
|
||||
#include <ripple/app/tx/apply.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/basics/Slice.h>
|
||||
@@ -549,9 +551,8 @@ doCatalogueCreate(RPC::JsonContext& context)
|
||||
UPDATE_CATALOGUE_STATUS(ledgerUpto, min_ledger);
|
||||
|
||||
// Load the first ledger
|
||||
auto status = RPC::getLedger(currLedger, min_ledger, context);
|
||||
if (status.toErrorCode() != rpcSUCCESS)
|
||||
return rpcError(status);
|
||||
if (auto error = RPC::getLedger(currLedger, min_ledger, context))
|
||||
return rpcError(error.toErrorCode(), error.message());
|
||||
if (!currLedger)
|
||||
return rpcError(rpcLEDGER_MISSING);
|
||||
|
||||
@@ -575,9 +576,8 @@ doCatalogueCreate(RPC::JsonContext& context)
|
||||
|
||||
// Load the next ledger
|
||||
currLedger = nullptr; // Release any previous current ledger
|
||||
auto status = RPC::getLedger(currLedger, ledger_seq, context);
|
||||
if (status.toErrorCode() != rpcSUCCESS)
|
||||
return rpcError(status);
|
||||
if (auto error = RPC::getLedger(currLedger, ledger_seq, context))
|
||||
return rpcError(error.toErrorCode(), error.message());
|
||||
if (!currLedger)
|
||||
return rpcError(rpcLEDGER_MISSING);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user