fix the peer ID count check
This commit is contained in:
parent
3b533ed76c
commit
81038b6a19
@ -54,9 +54,6 @@ func GetParams(storage bool, tests bool) error {
|
||||
ft := &fetch{}
|
||||
|
||||
for name, info := range params {
|
||||
if info.SectorSize != 1024 {
|
||||
continue
|
||||
}
|
||||
if !(SupportedSectorSize(info.SectorSize) || (tests && info.SectorSize == 1<<10)) {
|
||||
continue
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ func builder(t *testing.T, nFull int, storage []int) ([]test.TestNode, []test.Te
|
||||
|
||||
var genbuf bytes.Buffer
|
||||
|
||||
if len(storage) != 1 {
|
||||
if len(storage) > 1 {
|
||||
panic("need more peer IDs")
|
||||
}
|
||||
// PRESEAL SECTION, TRY TO REPLACE WITH BETTER IN THE FUTURE
|
||||
|
Loading…
Reference in New Issue
Block a user