mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
GetLedger by hash option (#980)
* update ledger input schema * include ledgerHash option
This commit is contained in:
committed by
Elliot Lee
parent
8d37da0952
commit
5419e67dbc
@@ -268,6 +268,8 @@ module.exports = function createMockRippled(port) {
|
||||
const response = _.assign({}, fixtures.ledger.normal,
|
||||
{ result: { ledger: fullLedger } });
|
||||
conn.send(createLedgerResponse(request, response));
|
||||
} else if (request.ledger_hash === '15F20E5FA6EA9770BBFFDBD62787400960B04BE32803B20C41F117F41C13830D') {
|
||||
conn.send(createLedgerResponse(request, fixtures.ledger.normalByHash));
|
||||
} else if (request.ledger_index === 'validated' ||
|
||||
request.ledger_index === 14661789 ||
|
||||
request.ledger_index === 14661788 /* getTransaction - order */) {
|
||||
|
||||
Reference in New Issue
Block a user