Revert change to slotSize that reduces it by one block

This commit is contained in:
Eric 2023-08-30 18:04:36 +10:00
parent 5a0ccc4d62
commit 1ba108e481
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -290,7 +290,7 @@ proc requestStorage*(
# because the slotSize is used to determine the amount of bytes to reserve
# in a Reservations
# TODO: slotSize: (encoded.blockSize.int * encoded.steps).u256,
slotSize: (encoded.blockSize.int * (encoded.blocks.len - 1)).u256,
slotSize: (encoded.blockSize.int * encoded.blocks.len).u256,
duration: duration,
proofProbability: proofProbability,
reward: reward,

View File

@ -224,7 +224,7 @@ proc onAvailabilityAdded(sales: Sales, availability: Availability) {.async.} =
logScope:
topics = "marketplace sales onReservationAdded callback"
trace "reservation added, querying past storage requests to add to queue"
trace "availability added, querying past storage requests to add to queue"
try:
let events = await market.queryPastStorageRequests(256)

View File

@ -22,7 +22,7 @@ method run*(state: SaleErrored, machine: Machine): Future[?State] {.async.} =
let data = agent.data
let context = agent.context
error "Sale error", error=state.error.msgDetail, requestId = $data.requestId
error "Sale error", error=state.error.msgDetail, requestId = data.requestId, slotIndex = data.slotIndex
if onClear =? context.onClear and
request =? data.request and