Add getLedgerSequence

This commit is contained in:
Chris Clark
2015-04-07 11:12:10 -07:00
parent a02b8e3e5c
commit d09548d04d

View File

@@ -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
*