fix por tests
This commit is contained in:
parent
45e76cddcd
commit
8dd4d620dc
|
@ -22,10 +22,9 @@ import ./helpers
|
||||||
|
|
||||||
const
|
const
|
||||||
SectorSize = 31
|
SectorSize = 31
|
||||||
BlockSize = 310
|
|
||||||
SectorsPerBlock = BlockSize div SectorSize
|
SectorsPerBlock = BlockSize div SectorSize
|
||||||
QueryLen = 22
|
QueryLen = 22
|
||||||
DataSetSize = BlockSize * 1024
|
DataSetSize = BlockSize * 100
|
||||||
|
|
||||||
proc deleteBlocks(store: BlockStore, manifest: Manifest, blks, bytes: int) {.async.} =
|
proc deleteBlocks(store: BlockStore, manifest: Manifest, blks, bytes: int) {.async.} =
|
||||||
var pos: seq[int]
|
var pos: seq[int]
|
||||||
|
@ -82,7 +81,7 @@ suite "BLS PoR":
|
||||||
test "Test setup":
|
test "Test setup":
|
||||||
let
|
let
|
||||||
(tau, authenticators) = await setupPor(
|
(tau, authenticators) = await setupPor(
|
||||||
StoreStream.init(store, manifest),
|
StoreStream.new(store, manifest),
|
||||||
ssk,
|
ssk,
|
||||||
SectorsPerBlock)
|
SectorsPerBlock)
|
||||||
|
|
||||||
|
@ -94,7 +93,7 @@ suite "BLS PoR":
|
||||||
|
|
||||||
let
|
let
|
||||||
(mu, sigma) = await generateProof(
|
(mu, sigma) = await generateProof(
|
||||||
StoreStream.init(store, manifest),
|
StoreStream.new(store, manifest),
|
||||||
q,
|
q,
|
||||||
authenticators,
|
authenticators,
|
||||||
SectorsPerBlock)
|
SectorsPerBlock)
|
||||||
|
|
Loading…
Reference in New Issue