swarm
swarm copied to clipboard
Retrieval protocol improvements
- Price discovery protocol
- Investigate if handshake specifies initial prices (might not be needed)
- Basic SWAP pricing strategy:
- Hardcoded fixed price for different distances
- No strategy to deviate from hardcoded fixed price
- Minimal strategy to react to price changes from downstream peers
- There may be a possibility that when all downstream peers increase price, we must engage in discovery of other peers in that bin.
- (based on bullet above) In the kademlia, you calculate the saturation based on the capability of the peer of serving you your request. Therefore, if a peer is overpriced, he should not be taken in to account in counting the saturation => hive protocol will start to kick in and try to populate the unsaturated part with new peer
why is swap pricing strategy a part of retrieval protocol? shouldn't the swap protocol negotiate these terms?