fix the peer ID count check

This commit is contained in:
whyrusleeping 2019-11-29 22:43:53 -06:00
parent 3b533ed76c
commit 81038b6a19
2 changed files with 1 additions and 4 deletions

View File

@ -54,9 +54,6 @@ func GetParams(storage bool, tests bool) error {
ft := &fetch{} ft := &fetch{}
for name, info := range params { for name, info := range params {
if info.SectorSize != 1024 {
continue
}
if !(SupportedSectorSize(info.SectorSize) || (tests && info.SectorSize == 1<<10)) { if !(SupportedSectorSize(info.SectorSize) || (tests && info.SectorSize == 1<<10)) {
continue continue
} }

View File

@ -120,7 +120,7 @@ func builder(t *testing.T, nFull int, storage []int) ([]test.TestNode, []test.Te
var genbuf bytes.Buffer var genbuf bytes.Buffer
if len(storage) != 1 { if len(storage) > 1 {
panic("need more peer IDs") panic("need more peer IDs")
} }
// PRESEAL SECTION, TRY TO REPLACE WITH BETTER IN THE FUTURE // PRESEAL SECTION, TRY TO REPLACE WITH BETTER IN THE FUTURE