lib/zold/stress/pmnts.rb in zold-stress-0.6.0 vs lib/zold/stress/pmnts.rb in zold-stress-0.7.0

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -# Copyright (c) 2018 Yegor Bugayenko +# Copyright (c) 2018-2019 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -28,11 +28,11 @@ require 'zold/commands/taxes' require_relative 'stats' # Pool of wallets. # Author:: Yegor Bugayenko (yegor256@gmail.com) -# Copyright:: Copyright (c) 2018 Yegor Bugayenko +# Copyright:: Copyright (c) 2018-2019 Yegor Bugayenko # License:: MIT module Zold::Stress # Payments to send in a batch. class Pmnts def initialize(pvt:, wallets:, remotes:, stats:, opts:, @@ -83,10 +83,10 @@ @log.error("The wallet #{source} is in debt and we can't pay taxes") return end details = SecureRandom.uuid @stats.exec('paid', swallow: false) do - Zold::Pay.new(wallets: @wallets, remotes: @remotes, log: @vlog).run( + Zold::Pay.new(wallets: @wallets, remotes: @remotes, log: @vlog, copies: nil).run( [ 'pay', source.to_s, target.to_s, amount.to_zld(6), details, "--network=#{@opts['network']}", "--private-key=#{pvt}" ] )