39 std::unique_ptr<org::xrpl::rpc::v1::XRPLedgerAPIService::Stub> stub_;
40 std::shared_ptr<BackendInterface> backend_;
42 static constexpr auto kKEEPALIVE_PING_INTERVAL_MS = 10000;
43 static constexpr auto kKEEPALIVE_TIMEOUT_MS = 5000;
44 static constexpr auto kKEEPALIVE_PERMIT_WITHOUT_CALLS =
true;
45 static constexpr auto kMAX_PINGS_WITHOUT_DATA = 0;
46 static constexpr auto kDEADLINE = std::chrono::seconds(30);
49 GrpcSource(std::string
const& ip, std::string
const& grpcPort, std::shared_ptr<BackendInterface> backend);
62 std::pair<grpc::Status, org::xrpl::rpc::v1::GetLedgerResponse>
63 fetchLedger(uint32_t sequence,
bool getObjects =
true,
bool getObjectNeighbors =
false);
72 std::pair<std::vector<std::string>,
bool>
std::pair< std::vector< std::string >, bool > loadInitialLedger(uint32_t sequence, uint32_t numMarkers)
Download a ledger in full.
Definition GrpcSource.cpp:112
std::pair< grpc::Status, org::xrpl::rpc::v1::GetLedgerResponse > fetchLedger(uint32_t sequence, bool getObjects=true, bool getObjectNeighbors=false)
Fetch data for a specific ledger.
Definition GrpcSource.cpp:83