publish: 🐛 Fix privatesend tx display on static blocks and live loading sequence

generated from commit 7722420ff4ebcbabde4fd0b166a932f056bbf427
This commit is contained in:
Joshua Seigler 2019-04-07 23:47:51 -04:00
parent e6f103ad01
commit 89b689758c
2 changed files with 20 additions and 23 deletions

View file

@ -18937,37 +18937,34 @@ function () {
case 21: case 21:
this.connectionStatus.className = 'is-loaded'; this.connectionStatus.className = 'is-loaded';
_context.next = 26; _context.next = 32;
break; break;
case 24: case 24:
// live display _context.next = 26;
this.socket = _socket["default"].connect("https://insight.dash.org:443/"); return fetch('https://insight.dash.org/api/status?q=getLastBlockHash').then(function (resp) {
fetch('https://insight.dash.org/api/status?q=getLastBlockHash').then(function (resp) {
return resp.json(); return resp.json();
}).then(function (data) { }).then(function (data) {
_this.blockColors = App.generateColors(data.lastblockhash); _this.blockColors = App.generateColors(data.lastblockhash);
_this.socket.on('connect', function () {
_this.connectionStatus.className = 'is-connected'; // Join the room.
_this.socket.emit('subscribe', 'inv');
});
_this.socket.on('tx', _this.onTransaction.bind(_this));
_this.socket.on('block', _this.onBlock.bind(_this));
_this.socket.on('disconnect', function () {
_this.connectionStatus.className = 'is-disconnected';
});
_this.socket.on('reconnecting', function () {
_this.connectionStatus.className = 'is-connecting';
});
}); });
case 26: case 26:
this.socket = _socket["default"].connect("https://insight.dash.org:443/");
this.socket.on('connect', function () {
_this.connectionStatus.className = 'is-connected'; // Join the room.
_this.socket.emit('subscribe', 'inv');
});
this.socket.on('tx', this.onTransaction.bind(this));
this.socket.on('block', this.onBlock.bind(this));
this.socket.on('disconnect', function () {
_this.connectionStatus.className = 'is-disconnected';
});
this.socket.on('reconnecting', function () {
_this.connectionStatus.className = 'is-connecting';
});
case 32:
case "end": case "end":
return _context.stop(); return _context.stop();
} }

File diff suppressed because one or more lines are too long