mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-04 21:15:47 +00:00
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:
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user