make gen
This commit is contained in:
parent
09cfad9d71
commit
4ad97f6a36
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -97,6 +97,7 @@
|
|||||||
* [Return](#Return)
|
* [Return](#Return)
|
||||||
* [ReturnAddPiece](#ReturnAddPiece)
|
* [ReturnAddPiece](#ReturnAddPiece)
|
||||||
* [ReturnFetch](#ReturnFetch)
|
* [ReturnFetch](#ReturnFetch)
|
||||||
|
* [ReturnFinalizeReplicaUpdate](#ReturnFinalizeReplicaUpdate)
|
||||||
* [ReturnFinalizeSector](#ReturnFinalizeSector)
|
* [ReturnFinalizeSector](#ReturnFinalizeSector)
|
||||||
* [ReturnGenerateSectorKeyFromData](#ReturnGenerateSectorKeyFromData)
|
* [ReturnGenerateSectorKeyFromData](#ReturnGenerateSectorKeyFromData)
|
||||||
* [ReturnMoveStorage](#ReturnMoveStorage)
|
* [ReturnMoveStorage](#ReturnMoveStorage)
|
||||||
@ -2054,6 +2055,30 @@ Response: `{}`
|
|||||||
### ReturnFetch
|
### ReturnFetch
|
||||||
|
|
||||||
|
|
||||||
|
Perms: admin
|
||||||
|
|
||||||
|
Inputs:
|
||||||
|
```json
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"Sector": {
|
||||||
|
"Miner": 1000,
|
||||||
|
"Number": 9
|
||||||
|
},
|
||||||
|
"ID": "07070707-0707-0707-0707-070707070707"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Code": 0,
|
||||||
|
"Message": "string value"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
Response: `{}`
|
||||||
|
|
||||||
|
### ReturnFinalizeReplicaUpdate
|
||||||
|
|
||||||
|
|
||||||
Perms: admin
|
Perms: admin
|
||||||
|
|
||||||
Inputs:
|
Inputs:
|
||||||
|
@ -82,6 +82,11 @@ func runTestCCUpgrade(t *testing.T) *kit.TestFullNode {
|
|||||||
status, err := miner.SectorsStatus(ctx, CCUpgrade, true)
|
status, err := miner.SectorsStatus(ctx, CCUpgrade, true)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
assert.Equal(t, 1, len(status.Deals))
|
assert.Equal(t, 1, len(status.Deals))
|
||||||
|
|
||||||
|
miner.WaitSectorsProving(ctx, map[abi.SectorNumber]struct{}{
|
||||||
|
CCUpgrade: {},
|
||||||
|
})
|
||||||
|
|
||||||
return client
|
return client
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +87,10 @@ type TestMiner struct {
|
|||||||
|
|
||||||
func (tm *TestMiner) PledgeSectors(ctx context.Context, n, existing int, blockNotif <-chan struct{}) {
|
func (tm *TestMiner) PledgeSectors(ctx context.Context, n, existing int, blockNotif <-chan struct{}) {
|
||||||
toCheck := tm.StartPledge(ctx, n, existing, blockNotif)
|
toCheck := tm.StartPledge(ctx, n, existing, blockNotif)
|
||||||
|
tm.WaitSectorsProving(ctx, toCheck)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (tm *TestMiner) WaitSectorsProving(ctx context.Context, toCheck map[abi.SectorNumber]struct{}) {
|
||||||
for len(toCheck) > 0 {
|
for len(toCheck) > 0 {
|
||||||
tm.FlushSealingBatches(ctx)
|
tm.FlushSealingBatches(ctx)
|
||||||
|
|
||||||
@ -105,9 +108,8 @@ func (tm *TestMiner) PledgeSectors(ctx context.Context, n, existing int, blockNo
|
|||||||
}
|
}
|
||||||
|
|
||||||
build.Clock.Sleep(100 * time.Millisecond)
|
build.Clock.Sleep(100 * time.Millisecond)
|
||||||
fmt.Printf("WaitSeal: %d %+v\n", len(toCheck), states)
|
fmt.Printf("WaitSectorsProving: %d %+v\n", len(toCheck), states)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tm *TestMiner) StartPledge(ctx context.Context, n, existing int, blockNotif <-chan struct{}) map[abi.SectorNumber]struct{} {
|
func (tm *TestMiner) StartPledge(ctx context.Context, n, existing int, blockNotif <-chan struct{}) map[abi.SectorNumber]struct{} {
|
||||||
|
Loading…
Reference in New Issue
Block a user