GetLedger by hash option (#980)

* update ledger input schema
* include ledgerHash option
This commit is contained in:
Alexandru Chiriac
2018-12-12 19:02:50 +00:00
committed by Elliot Lee
parent 8d37da0952
commit 5419e67dbc
9 changed files with 56 additions and 0 deletions

View File

@@ -3090,6 +3090,11 @@ describe('RippleAPI', function () {
_.partial(checkResult, responses.getLedger.header, 'getLedger'));
});
it('getLedger - by hash', function () {
return this.api.getLedger({ ledgerHash: '15F20E5FA6EA9770BBFFDBD62787400960B04BE32803B20C41F117F41C13830D' }).then(
_.partial(checkResult, responses.getLedger.headerByHash, 'getLedger'));
});
it('getLedger - future ledger version', function () {
return this.api.getLedger({ ledgerVersion: 14661789 }).then(response => {
assert(response)