mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-04-29 15:37:50 +00:00
Add getLedgerSequence
This commit is contained in:
@@ -553,6 +553,15 @@ Remote.prototype._handleMessage = function(message, server) {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Remote.prototype.getLedgerSequence = function() {
|
||||
if (!this._ledger_current_index) {
|
||||
throw new Error('Ledger sequence has not yet been initialized');
|
||||
}
|
||||
return this._ledger_current_index;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Handle server ledger_closed event
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user