fix: filter killed contract processes in backend unless NodePortal calls listContractProcess
This commit is contained in:
parent
0fddac2519
commit
ecb922b3ae
File diff suppressed because it is too large
Load Diff
@ -300,7 +300,7 @@ function onGetNodeSessionID(data) {
|
||||
global.session = data.session;
|
||||
global.wssocket.send(JSON.stringify({
|
||||
pubKey: global.sm2Key.publicKey,
|
||||
signature: sm2.doSignature(global.session, global.sm2Key.privateKey,{hash:true,der:true}),
|
||||
signature: sm2.doSignature(global.session, global.sm2Key.privateKey, {hash: true, der: true}),
|
||||
action: "login"
|
||||
}));
|
||||
}
|
||||
@ -498,25 +498,25 @@ function addNodeUnit(obj) {
|
||||
if (!global.units) {
|
||||
global.units = {};
|
||||
}
|
||||
var x=document.getElementById("selectUnits");
|
||||
for (i = 0; i < x.length; ++i){
|
||||
if (x.options[i].value == obj.key){
|
||||
return;
|
||||
var x = document.getElementById("selectUnits");
|
||||
for (i = 0; i < x.length; ++i) {
|
||||
if (x.options[i].value == obj.key) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
var option=document.createElement("option");
|
||||
var option = document.createElement("option");
|
||||
var type = obj.type;
|
||||
if (type == "TCP") {
|
||||
var at_ = obj.key.indexOf("_");
|
||||
var key = obj.key.substr(at_+1);
|
||||
var key = obj.key.substr(at_ + 1);
|
||||
global.units[key] = obj.value;
|
||||
option.text = obj.type + ":" + key;
|
||||
} else {
|
||||
global.units[obj.key] = obj.value;
|
||||
option.text = obj.type + ":" + obj.key + ":" +obj.value.length + "nodes";
|
||||
option.text = obj.type + ":" + obj.key + ":" + obj.value.length + "nodes";
|
||||
}
|
||||
option.value = obj.key;
|
||||
x.add(option,null);
|
||||
x.add(option, null);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user