lib/zold/node/front.rb in zold-0.1.1 vs lib/zold/node/front.rb in zold-0.1.2
- old
+ new
@@ -113,10 +113,10 @@
put %r{/wallet/(?<id>[A-Fa-f0-9]{16})/?} do
id = Id.new(params[:id])
wallet = wallets.find(id)
request.body.rewind
cps = copies(id)
- cps.add(request.body.read, 'remote', 80, 0)
+ cps.add(request.body.read, 'remote', Remotes::PORT, 0)
Zold::Merge.new(wallet: wallet, copies: cps).run
"Success, #{wallet.id} balance is #{wallet.balance}"
end
get '/remotes' do