fix por tests

This commit is contained in:
Dmitriy Ryajov 2022-04-01 12:18:48 -06:00
parent 45e76cddcd
commit 8dd4d620dc
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 3 additions and 4 deletions

View File

@ -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)