mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 23:55:49 +00:00
Move debug statement in pathfind.js to proper place.
This commit is contained in:
@@ -72,7 +72,6 @@ PathFind.prototype.notify_update = function (message)
|
||||
|
||||
// Only pass the event along if this path find response matches what we were
|
||||
// looking for.
|
||||
if (message.alternatives && message.alternatives.length) console.log(Amount.from_json(message.alternatives[0].source_amount).to_text_full());
|
||||
if (this.src_account === src_account &&
|
||||
this.dst_account === dst_account &&
|
||||
this.dst_amount.equals(dst_amount)) {
|
||||
|
||||
@@ -262,6 +262,10 @@ Server.prototype._handle_message = function (json) {
|
||||
}
|
||||
break;
|
||||
|
||||
case 'path_find':
|
||||
if (self._remote.trace) utils.logObject('server: path_find: %s', message);
|
||||
break;
|
||||
|
||||
case 'serverStatus':
|
||||
// This message is only received when online. As we are connected, it is the definative final state.
|
||||
self._set_state(self._is_online(message.server_status) ? 'online' : 'offline');
|
||||
|
||||
Reference in New Issue
Block a user