Commit a2291aad authored by metacertain's avatar metacertain Committed by GitHub

Increase prices by 1*poPrice (#715)

parent 05c5d397
...@@ -32,7 +32,7 @@ func NewFixedPricer(overlay swarm.Address, poPrice uint64) *FixedPricer { ...@@ -32,7 +32,7 @@ func NewFixedPricer(overlay swarm.Address, poPrice uint64) *FixedPricer {
// PeerPrice implements Pricer. // PeerPrice implements Pricer.
func (pricer *FixedPricer) PeerPrice(peer, chunk swarm.Address) uint64 { func (pricer *FixedPricer) PeerPrice(peer, chunk swarm.Address) uint64 {
return uint64(swarm.MaxPO-swarm.Proximity(peer.Bytes(), chunk.Bytes())) * pricer.poPrice return uint64(swarm.MaxPO-swarm.Proximity(peer.Bytes(), chunk.Bytes())+1) * pricer.poPrice
} }
// Price implements Pricer. // Price implements Pricer.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment