Revert change to slotSize that reduces it by one block
This commit is contained in:
parent
5a0ccc4d62
commit
1ba108e481
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue