test/zold/stress/test_pool.rb in zold-stress-0.5.0 vs test/zold/stress/test_pool.rb in zold-stress-0.5.1
- old
+ new
@@ -41,10 +41,10 @@
Dir.mktmpdir do |home|
wallets = Zold::SyncWallets.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
remotes = Zold::Remotes.new(file: File.join(home, 'remotes'), network: 'test')
remotes.clean
remotes.add('localhost', port)