From 81038b6a19aad6198e4dc564fbb59fcb709a33da Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Fri, 29 Nov 2019 22:43:53 -0600 Subject: [PATCH] fix the peer ID count check --- build/paramfetch.go | 3 --- node/node_test.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/build/paramfetch.go b/build/paramfetch.go index f6f07cf06..b167f1ca5 100644 --- a/build/paramfetch.go +++ b/build/paramfetch.go @@ -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 } diff --git a/node/node_test.go b/node/node_test.go index 552a7bf00..7c9de9365 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -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