Clarify weighting.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2019-09-27 04:52:55 +01:00
parent f7e6215524
commit 2df1c61e06
1 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,8 @@ On receiving a transaction:
EvictTransaction MUST do the following:
* Select a random transaction to evict, weighted by eviction weight.
* Select a random transaction to evict, with probability in direct proportion to
eviction weight.
* Add the txid and the current time to RecentlyEvicted, dropping the oldest entry
in RecentlyEvicted if necessary to keep it to at most ``eviction_memory_entries``
entries.