This commit is contained in:
Jaremy Creechley 2023-11-01 17:13:51 -07:00 committed by gmega
parent 9de7070743
commit a6781e7eed
No known key found for this signature in database
GPG Key ID: FFD8DAF00660270F
2 changed files with 4 additions and 7 deletions

View File

@ -304,12 +304,10 @@ proc payForBlocks(engine: BlockExcEngine,
sendPayment = engine.network.request.sendPayment
price = peer.price(blocksDelivery.mapIt(it.address))
let payment = engine.wallet.pay(peer, price)
if payment.isErr():
trace "error paying for blocks", price=price
else:
trace "Sending payment for blocks", price=price
await sendPayment(peer.id, payment.get())
if payment =? engine.wallet.pay(peer, price):
trace "Sending payment for blocks", price
# echo "sendPayment"
await sendPayment(peer.id, payment)
proc validateBlockDelivery(
b: BlockExcEngine,

View File

@ -5,7 +5,6 @@ import std/os
const currentDir = currentSourcePath()[0 .. ^(len("config.nims") + 1)]
--d:chronosFuturesInstrumentation
--d:release
when getEnv("NIMBUS_BUILD_SYSTEM") == "yes" and
# BEWARE