7
7
8
8
"github.com/dustin/go-humanize"
9
9
"golang.org/x/xerrors"
10
+
11
+ "github.com/filecoin-project/go-address"
10
12
)
11
13
12
14
type MachineSummary struct {
@@ -172,6 +174,7 @@ type MachineInfo struct {
172
174
Posted string
173
175
174
176
PoRepSector , PoRepSectorSP * int64
177
+ PoRepSectorMiner string
175
178
}
176
179
177
180
FinishedTasks []struct {
@@ -286,8 +289,9 @@ func (a *WebRPC) ClusterNodeInfo(ctx context.Context, id int64) (*MachineInfo, e
286
289
Task string
287
290
Posted string
288
291
289
- PoRepSector * int64
290
- PoRepSectorSP * int64
292
+ PoRepSector * int64
293
+ PoRepSectorSP * int64
294
+ PoRepSectorMiner string
291
295
}
292
296
293
297
var posted time.Time
@@ -300,15 +304,15 @@ func (a *WebRPC) ClusterNodeInfo(ctx context.Context, id int64) (*MachineInfo, e
300
304
// try to find in the porep pipeline
301
305
rows4 , err := a .deps .DB .Query (ctx , `SELECT sp_id, sector_number FROM sectors_sdr_pipeline
302
306
WHERE task_id_sdr=$1
303
- OR task_id_tree_d=$1
304
- OR task_id_tree_c=$1
305
- OR task_id_tree_r=$1
306
- OR task_id_precommit_msg =$1
307
- OR task_id_porep =$1
308
- OR task_id_commit_msg =$1
309
- OR task_id_finalize =$1
310
- OR task_id_move_storage =$1
311
- ` , t .ID )
307
+ OR task_id_tree_d=$1
308
+ OR task_id_tree_c=$1
309
+ OR task_id_tree_r=$1
310
+ OR task_id_synth =$1
311
+ OR task_id_precommit_msg =$1
312
+ OR task_id_porep =$1
313
+ OR task_id_commit_msg =$1
314
+ OR task_id_finalize =$1
315
+ OR task_id_move_storage=$1 ` , t .ID )
312
316
if err != nil {
313
317
return nil , err
314
318
}
@@ -321,6 +325,11 @@ func (a *WebRPC) ClusterNodeInfo(ctx context.Context, id int64) (*MachineInfo, e
321
325
}
322
326
t .PoRepSector = & sector
323
327
t .PoRepSectorSP = & spid
328
+ maddr , err := address .NewIDAddress (uint64 (spid ))
329
+ if err != nil {
330
+ return nil , err
331
+ }
332
+ t .PoRepSectorMiner = maddr .String ()
324
333
}
325
334
326
335
rows4 .Close ()
0 commit comments