|
|
@ -72,12 +72,12 @@ define([
|
|
|
|
'digraph {'
|
|
|
|
'digraph {'
|
|
|
|
];
|
|
|
|
];
|
|
|
|
var parseBlock = function (x) {
|
|
|
|
var parseBlock = function (x) {
|
|
|
|
let c = x.getChildren();
|
|
|
|
var c = x.getChildren();
|
|
|
|
let label = x.hashOf.slice(0,8) + ' (' + x.parentCount + ' - ' + x.recvOrder + ')';
|
|
|
|
var label = x.hashOf.slice(0,8) + ' (' + x.parentCount + ' - ' + x.recvOrder + ')';
|
|
|
|
var p = x.getParent();
|
|
|
|
var p = x.getParent();
|
|
|
|
if (p && p.getChildren().length === 1 && c.length === 1) {
|
|
|
|
if (p && p.getChildren().length === 1 && c.length === 1) {
|
|
|
|
label = '...';
|
|
|
|
label = '...';
|
|
|
|
let gc = c;
|
|
|
|
var gc = c;
|
|
|
|
while (gc.length === 1) {
|
|
|
|
while (gc.length === 1) {
|
|
|
|
c = gc;
|
|
|
|
c = gc;
|
|
|
|
gc = c[0].getChildren();
|
|
|
|
gc = c[0].getChildren();
|
|
|
@ -101,7 +101,7 @@ define([
|
|
|
|
if (err) { return void cb(err); }
|
|
|
|
if (err) { return void cb(err); }
|
|
|
|
data.forEach(function (m) {
|
|
|
|
data.forEach(function (m) {
|
|
|
|
chainpad.message(m);
|
|
|
|
chainpad.message(m);
|
|
|
|
cb(null, makeGraph())
|
|
|
|
cb(null, makeGraph());
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, {timeout: 180000});
|
|
|
|
}, {timeout: 180000});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -182,7 +182,8 @@ define([
|
|
|
|
var content = h('div', [p, code]);
|
|
|
|
var content = h('div', [p, code]);
|
|
|
|
getGraph(function (err, data) {
|
|
|
|
getGraph(function (err, data) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
return p.innerHTML = err;
|
|
|
|
p.innerHTML = err;
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
p.innerHTML = Messages.debug_getGraph;
|
|
|
|
p.innerHTML = Messages.debug_getGraph;
|
|
|
|
code.innerHTML = data;
|
|
|
|
code.innerHTML = data;
|
|
|
|