Skip to content
Snippets Groups Projects
Commit 6789754d authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

some more words about this one weird trick

parent f7adb7e4
No related branches found
No related tags found
1 merge request!249Improve lease management for mutables
......@@ -783,6 +783,20 @@ def get_writev_price(storage_server, pass_value, storage_index, tw_vectors, now)
# written. If they have an unexpired lease then we can apply some
# or all of the remainder of the value of that lease towards this
# operation.
#
# For example, if there are 5 0.5 MB shares already present then 5
# ZKAPs (assuming a ZKAP value of 1 MB-month) have been spent to
# store them while only 2.5 MB of storage has been allocated.
# This means we could accept another 2.5 MB of data for storage at
# no cost to the client while still having been completely paid
# for the storage committed.
#
# This is sort of a weird trick to try to reduce the impact of
# ZKAP value lost to the rounding scheme in use. There's a good
# chance there are better solutions waiting to be discovered that
# would obsolete this logic. Note that whatever the logic here,
# it must agree with the client-side logic so that both server and
# client come to the same conclusion regarding price.
sharenums=None,
),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment