grin/chain/tests
Simon B 8b2f9503c9 Make total_difficulty the sum of network difficulty [testnet2] (#523)
* Make total_difficulty the sum of network difficulty, not whatever the miner happened to mine.
  - Only for Testnet2 / Mainnet (hardforks Testnet1)
  - update chain::pipe validate_header to validate according to Testnet2 rules for cumulative difference

Fixes #280

* tests that should ignore (network) difficulty

* fn new_block is explained as "utility to create a block without worrying about the key or previous header" so it gets network difficulty := 0 too

* update tx pool tests (going with "minimum" for network difficulty for now)

* add ERR outputs about bannable offences
(#406 should know about these)

* whitespace fix

* mine_simple_chain: Probably DON'T overwrite difficulty (?)

* core/mod tests "reward_empty_block" and "reward_with_tx_block" tests set to use lowest network difficulty possible
2018-01-12 18:35:37 +00:00
..
mine_simple_chain.rs Make total_difficulty the sum of network difficulty [testnet2] (#523) 2018-01-12 18:35:37 +00:00
store_indices.rs Make total_difficulty the sum of network difficulty [testnet2] (#523) 2018-01-12 18:35:37 +00:00
test_coinbase_maturity.rs Make total_difficulty the sum of network difficulty [testnet2] (#523) 2018-01-12 18:35:37 +00:00