grin/p2p
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
..
fuzz Add fuzz tests for p2p crate (#1931) 2018-11-05 21:50:16 +01:00
src Rework "bucket transactions" logic (buckets are now weight limited) (#2487) 2019-02-01 10:44:04 +00:00
tests Clean shutdown via stop_state (#2117) 2018-12-11 11:07:41 +00:00
Cargo.toml Version bump to 1.0.0 2019-01-15 16:24:29 +00:00