Cleanup, deprecations

* REMOVED Remote storage interface
* REMOVED Remote "ping" configuration
* REMOVED Old/deprecated Remote server configuration
	  (websocket_ip, websocket_port)
* REMOVED browser "online" reconnect listener
This commit is contained in:
wltsmrz
2015-01-26 14:00:49 -08:00
parent 1637d26de3
commit 2833a7b66e
4 changed files with 379 additions and 438 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -671,7 +671,7 @@ Server.prototype._handleResponseSubscribe = function(message) {
return;
}
if (!this._remote._allow_partial_history
if (!this._remote.allow_partial_history
&& !Server.hasFullLedgerHistory(message)) {
// Server has partial history and Remote has been configured to disallow
// servers with incomplete history

View File

@@ -23,8 +23,8 @@ function TransactionManager(account) {
this._nextSequence = void(0);
this._maxFee = this._remote.max_fee;
this._maxAttempts = this._remote.max_attempts;
this._submissionTimeout = this._remote._submission_timeout;
this._lastLedgerOffset = this._remote._last_ledger_offset;
this._submissionTimeout = this._remote.submission_timeout;
this._lastLedgerOffset = this._remote.last_ledger_offset;
this._pending = new PendingQueue();
this._account.on('transaction-outbound', function(res) {

View File

@@ -164,16 +164,15 @@ describe('Remote', function () {
});
it('remote server initialization - set max_fee - string fails, should be number', function() {
var remote = new Remote({
max_fee: '1234567890'
assert.throws(function() {
var remote = new Remote({
max_fee: '1234567890'
});
});
assert.strictEqual(remote.max_fee, 1e6);
});
it('remote server initialization - max_fee - default', function() {
var remote = new Remote({
max_fee: void(0)
});
var remote = new Remote({ });
assert.strictEqual(remote.max_fee, 1e6);
assert.strictEqual(remote.max_fee, 1000000);
assert.strictEqual((new Remote()).max_fee, 1e6);