Add a note to mempool::Storage (#2964)

This commit is contained in:
Deirdre Connolly 2021-10-28 13:27:59 -04:00 committed by GitHub
parent 36d488edb4
commit e592df2b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ impl Storage {
// > EvictTransaction (with the new transaction included as a candidate to evict) until the
// > total cost does not exceed `mempooltxcostlimit`.
//
// 'EvictTransaction' is equivalent to [`VerifiedSet::evict_one()`] in
// our implementation.
//
// [ZIP-401]: https://zips.z.cash/zip-0401
while self.verified.total_cost() > self.tx_cost_limit {
// > EvictTransaction MUST do the following: