grin/core/tests
Antioch Peverell a82e2a0126
Rework "bucket transactions" logic (buckets are now weight limited) (#2487)
* rework bucket txs

* introduce max_block_weight to global (based on chain_type)
not yet in use anywhere...

* now using global::max_block_weight() everywhere

* testing max_block_weight needs to be big enough to cover existing chain tests...

* add some test coverage for prepare mineable transactions at the block weight limit
introduce AsLimitedTx{max_weight} so we can build artifically small blocks (per mining config)

* cleanup

* default_mineable_max_weight is just the default max_block_weight
we do not need to account for coinbase reward here (tx vs block)

* 75 change outputs in a test is not valid now that we have a low block weight limit...
2019-02-01 10:44:04 +00:00
..
block.rs Rework "bucket transactions" logic (buckets are now weight limited) (#2487) 2019-02-01 10:44:04 +00:00
common.rs Cleanup compiler warnings (#2323) 2019-01-10 12:18:25 -08:00
consensus.rs Optimizing the code and making it more idiomatic (#2269) 2019-01-01 15:29:16 -08:00
core.rs Pool tx weight verification (#2466) 2019-01-25 12:48:15 -08:00
merkle_proof.rs Convert to Rust 2018 edition (#2084) 2018-12-08 00:59:40 +01:00
pmmr.rs Convert to Rust 2018 edition (#2084) 2018-12-08 00:59:40 +01:00
transaction.rs Implement kernel and output features as enums (#2312) 2019-01-08 16:07:38 +00:00
vec_backend.rs Optimizing the code and making it more idiomatic (#2269) 2019-01-01 15:29:16 -08:00
verifier_cache.rs Implement kernel and output features as enums (#2312) 2019-01-08 16:07:38 +00:00