grin/p2p/src
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
..
conn.rs fix: connection close should stay outside the poll loop (#2308) 2019-01-07 14:44:07 +08:00
handshake.rs fix: one peer occupy multiple tcp connections (#2262) 2018-12-31 19:24:30 +08:00
lib.rs Compiler warnings 20190123 (#2462) 2019-01-25 10:09:32 +00:00
msg.rs Rework "bucket transactions" logic (buckets are now weight limited) (#2487) 2019-02-01 10:44:04 +00:00
peer.rs Track blocks we requested, always broadcast otherwise (#2349) 2019-01-12 09:28:03 -08:00
peers.rs Maintain min outbound peers (min_preferred_peers / 2) (#2417) 2019-01-19 16:13:09 +00:00
protocol.rs Track blocks we requested, always broadcast otherwise (#2349) 2019-01-12 09:28:03 -08:00
serv.rs Track blocks we requested, always broadcast otherwise (#2349) 2019-01-12 09:28:03 -08:00
store.rs fix: check_banned must care about ip address only, and ignore the peer port info (#2267) 2019-01-01 11:43:05 +08:00
types.rs Maintain min outbound peers (min_preferred_peers / 2) (#2417) 2019-01-19 16:13:09 +00:00