revert
This commit is contained in:
parent
9de7070743
commit
a6781e7eed
|
@ -304,12 +304,10 @@ proc payForBlocks(engine: BlockExcEngine,
|
||||||
sendPayment = engine.network.request.sendPayment
|
sendPayment = engine.network.request.sendPayment
|
||||||
price = peer.price(blocksDelivery.mapIt(it.address))
|
price = peer.price(blocksDelivery.mapIt(it.address))
|
||||||
|
|
||||||
let payment = engine.wallet.pay(peer, price)
|
if payment =? engine.wallet.pay(peer, price):
|
||||||
if payment.isErr():
|
trace "Sending payment for blocks", price
|
||||||
trace "error paying for blocks", price=price
|
# echo "sendPayment"
|
||||||
else:
|
await sendPayment(peer.id, payment)
|
||||||
trace "Sending payment for blocks", price=price
|
|
||||||
await sendPayment(peer.id, payment.get())
|
|
||||||
|
|
||||||
proc validateBlockDelivery(
|
proc validateBlockDelivery(
|
||||||
b: BlockExcEngine,
|
b: BlockExcEngine,
|
||||||
|
|
|
@ -5,7 +5,6 @@ import std/os
|
||||||
const currentDir = currentSourcePath()[0 .. ^(len("config.nims") + 1)]
|
const currentDir = currentSourcePath()[0 .. ^(len("config.nims") + 1)]
|
||||||
|
|
||||||
--d:chronosFuturesInstrumentation
|
--d:chronosFuturesInstrumentation
|
||||||
--d:release
|
|
||||||
|
|
||||||
when getEnv("NIMBUS_BUILD_SYSTEM") == "yes" and
|
when getEnv("NIMBUS_BUILD_SYSTEM") == "yes" and
|
||||||
# BEWARE
|
# BEWARE
|
||||||
|
|
Loading…
Reference in New Issue