diff --git a/codex/node.nim b/codex/node.nim index c5eb20b0..f78e2c91 100644 --- a/codex/node.nim +++ b/codex/node.nim @@ -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, diff --git a/codex/sales.nim b/codex/sales.nim index 71eb9c62..5d18b31b 100644 --- a/codex/sales.nim +++ b/codex/sales.nim @@ -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) diff --git a/codex/sales/states/errored.nim b/codex/sales/states/errored.nim index a19fb35e..4533583e 100644 --- a/codex/sales/states/errored.nim +++ b/codex/sales/states/errored.nim @@ -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