Skip to content

Commit

Permalink
#415 on pay too
Browse files Browse the repository at this point in the history
  • Loading branch information
davvd committed Dec 4, 2022
1 parent 4fbf3c5 commit 63a29cb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion objects/ops.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,16 @@ def pay(keygap, bnf, amount, details)
File.write(f, @item.key(keygap))
@log.info("Paying #{amount} from #{id} to #{bnf}...")
Zold::Pay.new(wallets: @wallets, remotes: @remotes, copies: @copies, log: @log).run(
['pay', "--network=#{@network}", '--private-key=' + f.path, id.to_s, bnf.to_s, "#{amount.to_i}z", details]
[
'pay',
"--network=#{@network}",
'--ignore-score-weakness',
'--private-key=' + f.path,
id.to_s,
bnf.to_s,
"#{amount.to_i}z",
details
]
)
end
@log.info("Paid #{amount} from #{id} to #{bnf} in #{Zold::Age.new(start)} #{details.inspect}: #{txn.to_text}")
Expand Down

0 comments on commit 63a29cb

Please sign in to comment.