test/zold/stress/test_round.rb in zold-stress-0.5.0 vs test/zold/stress/test_round.rb in zold-stress-0.5.1

- old
+ new

@@ -53,10 +53,10 @@ remotes.add('localhost', port) wallets = Zold::SyncWallets.new(Zold::CachedWallets.new(Zold::Wallets.new(home))) Zold::Create.new(wallets: wallets, log: test_log).run( ['create', '--public-key=fixtures/id_rsa.pub', Zold::Id::ROOT.to_s, '--network=test'] ) - wallets.find(Zold::Id::ROOT) do |w| + wallets.acq(Zold::Id::ROOT) do |w| w.add(Zold::Txn.new(1, Time.now, Zold::Amount.new(zld: 1.0), 'NOPREFIX', Zold::Id.new, '-')) end stats = Zold::Stress::Stats.new air = Zold::Stress::Air.new batch = 20