Zebra/zebra-chain/src/transaction
Deirdre Connolly 0381c2347b
ZIP-401: weighted random mempool eviction (#2889)
* ZIP-401 weighted random mempool eviction

* rename zcash.mempool.total_cost.bytes to zcash.mempool.cost.bytes

Co-authored-by: teor <teor@riseup.net>

* Remove duplicated lines

* Add cost() method to UnminedTx

Update serialization failure messages

* More docs quoting ZIP-401 rules

* Change mempool::Storage::new() to handle Copy-less HashMap, HashSet

* mempool: tidy cost types and evict_one()

* More consensus rule docs

* Refactor calculating mempool costs for Unmined transactions

* Add a note on asympotic performance of calculating weights of txs in mempool

* Bump test mempool / storage config to avoid weighted random cost limits

* Use mempool tx_cost_limit = u64::MAX for some tests

* Remove failing tests for now

* Allow(clippy::field-reassign-with-default) because of a move on a type that doesn't impl Copy

* Fix mistaken doctest formatting

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>

* Increase test timeout for Windows builds

Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2021-10-27 00:21:19 +00:00
..
tests Limit transaction size in the mempool (#2917) 2021-10-25 15:25:28 -03:00
arbitrary.rs Add `zcash_serialized_size()` to `ZcashSerialize` trait (#2824) 2021-10-06 22:40:11 +00:00
auth_digest.rs Stop ignoring the mempool conflicting transaction reject list size limit (#2855) 2021-10-12 10:35:50 +10:00
hash.rs Use unmined types for transaction verifier mempool requests and responses (#2666) 2021-08-25 21:02:47 +00:00
joinsplit.rs Refactor mempool spend conflict checks to increase performance (#2826) 2021-10-10 23:54:46 +00:00
lock_time.rs Security: Avoid silently corrupting invalid times during serialization (#2149) 2021-05-17 16:53:10 -04:00
memo.rs Fix a test failure due to ' debug format changes in Rust 2021-04-14 23:45:36 -04:00
serialize.rs Limit transaction size in the mempool (#2917) 2021-10-25 15:25:28 -03:00
sighash.rs Always compute sighash with librustzcash (#2469) 2021-07-09 09:55:08 +10:00
tests.rs Move the preallocate tests into their own files (#1977) 2021-04-07 12:32:27 +10:00
txid.rs Add ZIP-0244 TxId Digest support (#2129) 2021-07-06 09:58:22 -03:00
unmined.rs ZIP-401: weighted random mempool eviction (#2889) 2021-10-27 00:21:19 +00:00