- {{ (itm.created_at / 1000) | second2Date }} {{ itm.message }}
+ {{ (itm.created_at / 1000) | second2Date }}
+ {{ itm.message }}
-
@@ -108,6 +118,13 @@ export default {
currentTaskId() {
return this.$route.params.task_id;
},
+ resultReady() {
+ if (this.taskLogMetaData.enableVerify) {
+ return this.taskLogMetaData.status == this.$appGlobal.constants.TASK_STATUS_CONFIRMED;
+ } else {
+ return this.taskLogMetaData.status == this.$appGlobal.constants.TASK_STATUS_FINISHED;
+ }
+ },
},
data() {
return {
@@ -140,14 +157,16 @@ export default {
},
loadTaskLog() {
console.log(`load task log page ${this.page}`);
- V1TaskAPI.getTaskLogs(this.currentTaskId, this.logStart, this.logLimit).then(
- (res) => {
- this.taskLogData = this.taskLogData.concat(res);
- let finalLogData = res[res.length - 1];
- this.logStart = finalLogData.id + 1;
- console.log(`load task log complete, page increase to ${this.page}`);
- }
- );
+ V1TaskAPI.getTaskLogs(
+ this.currentTaskId,
+ this.logStart,
+ this.logLimit
+ ).then((res) => {
+ this.taskLogData = this.taskLogData.concat(res);
+ let finalLogData = res[res.length - 1];
+ this.logStart = finalLogData.id + 1;
+ console.log(`load task log complete, page increase to ${this.page}`);
+ });
},
txUrl(txHash) {
return `https://explorer.deltampc.com/tx/${txHash}/internal-transactions`;
@@ -230,4 +249,4 @@ export default {
.drawer-wrapper {
padding: 30px 0px;
}
-
\ No newline at end of file
+
From dbf7b75fe5a4052f27dc012dc3263dee34bdfb3c Mon Sep 17 00:00:00 2001
From: hmiao <739025250@qq.com>
Date: Thu, 29 Sep 2022 19:48:29 +0800
Subject: [PATCH 3/6] update logistic regression task notebook
---
jupyter/examples/en-horizontal-logistic-regression-task.ipynb | 2 ++
jupyter/examples/zh-horizontal-logistic-regression-task.ipynb | 2 ++
2 files changed, 4 insertions(+)
diff --git a/jupyter/examples/en-horizontal-logistic-regression-task.ipynb b/jupyter/examples/en-horizontal-logistic-regression-task.ipynb
index ba3a3c7..adfafcb 100644
--- a/jupyter/examples/en-horizontal-logistic-regression-task.ipynb
+++ b/jupyter/examples/en-horizontal-logistic-regression-task.ipynb
@@ -72,6 +72,8 @@
" max_clients=3, # Maximum nodes allowed in each round, must be greater equal than min_clients.\n",
" wait_timeout=5, # Timeout for calculation.\n",
" connection_timeout=5, # Wait timeout for each step.\n",
+ " verify_timeout=360, # Timeout for the final zero knownledge verification step\n",
+ " enable_verify=True # whether to enable final zero knownledge verification step\n",
" )\n",
"\n",
" def dataset(self):\n",
diff --git a/jupyter/examples/zh-horizontal-logistic-regression-task.ipynb b/jupyter/examples/zh-horizontal-logistic-regression-task.ipynb
index 82360e9..222e44c 100644
--- a/jupyter/examples/zh-horizontal-logistic-regression-task.ipynb
+++ b/jupyter/examples/zh-horizontal-logistic-regression-task.ipynb
@@ -71,6 +71,8 @@
" max_clients=3, # 算法所支持的最大客户端数,必须大雨等于min_clients\n",
" wait_timeout=5, # 等待超时时间,用来控制一轮计算的超时时间\n",
" connection_timeout=5, # 连接超时时间,用来控制流程中每个阶段的超时时间\n",
+ " verify_timeout=360, # 零知识证明步骤的超时时间\n",
+ " enable_verify=True # 是否开启零知识证明\n",
" )\n",
"\n",
" def dataset(self):\n",
From 70e7f221d5777ef922d651e04f0315ea5e06c275 Mon Sep 17 00:00:00 2001
From: hmiao <739025250@qq.com>
Date: Fri, 30 Sep 2022 10:12:42 +0800
Subject: [PATCH 4/6] increase verify timeout in hlr example
---
jupyter/examples/en-horizontal-logistic-regression-task.ipynb | 2 +-
jupyter/examples/zh-horizontal-logistic-regression-task.ipynb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/jupyter/examples/en-horizontal-logistic-regression-task.ipynb b/jupyter/examples/en-horizontal-logistic-regression-task.ipynb
index adfafcb..1c6dc3b 100644
--- a/jupyter/examples/en-horizontal-logistic-regression-task.ipynb
+++ b/jupyter/examples/en-horizontal-logistic-regression-task.ipynb
@@ -72,7 +72,7 @@
" max_clients=3, # Maximum nodes allowed in each round, must be greater equal than min_clients.\n",
" wait_timeout=5, # Timeout for calculation.\n",
" connection_timeout=5, # Wait timeout for each step.\n",
- " verify_timeout=360, # Timeout for the final zero knownledge verification step\n",
+ " verify_timeout=500, # Timeout for the final zero knownledge verification step\n",
" enable_verify=True # whether to enable final zero knownledge verification step\n",
" )\n",
"\n",
diff --git a/jupyter/examples/zh-horizontal-logistic-regression-task.ipynb b/jupyter/examples/zh-horizontal-logistic-regression-task.ipynb
index 222e44c..a79f802 100644
--- a/jupyter/examples/zh-horizontal-logistic-regression-task.ipynb
+++ b/jupyter/examples/zh-horizontal-logistic-regression-task.ipynb
@@ -71,7 +71,7 @@
" max_clients=3, # 算法所支持的最大客户端数,必须大雨等于min_clients\n",
" wait_timeout=5, # 等待超时时间,用来控制一轮计算的超时时间\n",
" connection_timeout=5, # 连接超时时间,用来控制流程中每个阶段的超时时间\n",
- " verify_timeout=360, # 零知识证明步骤的超时时间\n",
+ " verify_timeout=500, # 零知识证明步骤的超时时间\n",
" enable_verify=True # 是否开启零知识证明\n",
" )\n",
"\n",
From 6f14b69ca31943758dd05adcdaa42475e705d349 Mon Sep 17 00:00:00 2001
From: hmiao <739025250@qq.com>
Date: Fri, 30 Sep 2022 10:12:58 +0800
Subject: [PATCH 5/6] update delta-task version to 0.7.0rc1
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index 2ff0284..0f9e664 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,7 @@
PyYAML==6.0
jupyterlab==3.1.6
notebook==6.4.3
-delta-task==0.6.0
+delta-task==0.7.0rc1
oauthenticator==14.2.0
jupyterhub==1.4.2
From e95d90bd0b9d0727f73634284c3835ddc4f86198 Mon Sep 17 00:00:00 2001
From: hmiao <739025250@qq.com>
Date: Fri, 30 Sep 2022 10:13:27 +0800
Subject: [PATCH 6/6] update version to 0.7.0
---
web/package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/package.json b/web/package.json
index ce67bf6..b617f1e 100644
--- a/web/package.json
+++ b/web/package.json
@@ -1,6 +1,6 @@
{
"name": "deltaboard-web",
- "version": "0.1.0",
+ "version": "0.7.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",