mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Ledger header RPC enhancements (RIPD-692):
This combines two enhancements to the ledger_data RPC command and related commands. The ledger_data RPC command will now return the ledger header in the first query (the one with no marker specified). Also, ledger_data and related commands will now provide the ledger header in binary if binary output is specified. Modified existing ledgerdata unit test to cover new functionality.
This commit is contained in:
committed by
Nik Bougalis
parent
e00a6b0e5a
commit
a7c4d682d2
@@ -43,7 +43,6 @@ class SHAMapV2_test : public beast::unit_test::suite
|
||||
|
||||
auto ledger =
|
||||
std::make_shared<Ledger>(create_genesis, config,
|
||||
|
||||
amendments_v, env.app().family());
|
||||
BEAST_EXPECT(! getSHAMapV2 (ledger->info()));
|
||||
BEAST_EXPECT(ledger->stateMap().get_version() == SHAMap::version{1});
|
||||
|
||||
Reference in New Issue
Block a user