lib/zold/commands/create.rb in zold-0.16.24 vs lib/zold/commands/create.rb in zold-0.16.25

- old
+ new

@@ -59,10 +59,10 @@ private def create(id, opts) key = Zold::Key.new(file: opts['public-key']) - @wallets.find(id) do |wallet| + @wallets.acq(id, exclusive: true) do |wallet| wallet.init(id, key, network: opts['network']) @log.debug("Wallet #{Rainbow(wallet).green} created at #{@wallets.path}") end @log.info(id) id