John Tromp
f86102b2a6
fixDAA; implement wtema ( #3477 )
...
* implement wtema
* reduce FTL from 12 to 5 mins; fix inaccuracies in cuckoo doc
* rename difficulty window for DampedMovingAverage DAA
* fix FTL error msg
* secondary_scale becomes extended nonce past HF4
* secondary_scale change actually belongs in hardfork4 PR
* make future time limit configurable
* define constant global::DEFAULT_FUTURE_TIME_LIMIT and refactor a bit
* fix typos
* as_ref() feels safer than as_mut() :-)
* remove obsolete mut
* make future_time_limit non-mandatory in grin-server.toml
2020-11-25 10:58:39 +00:00
Antioch Peverell
6faa0e8d75
thread local chain type vs global chain type ( #3327 )
...
* Introduce GLOBAL_CHAIN_TYPE and make CHAIN_TYPE thread_local.
This makes testing more explicit and significantly more robust.
* set_local_chain_type() in tests
* cleanup - weird
* get pool tests working with explicit local chain_type config
* core tests working with explicit local chain_type
* p2p tests working with explicit local chain_type
* store tests working
* cleanup, feedback
2020-05-22 12:51:58 +01:00
Quentin Le Sceller
c4e69717ab
Less cloning and pattern simplifications ( #3216 )
...
* Less cloning and pattern simplifications
* Revert inclusive range and remove unecessary Error:From
2020-02-05 11:02:07 -05:00
Joseph Goulden
a1b6c31481
tests: split consensus tests into separate files for each chain type … ( #3168 )
...
* tests: split consensus tests into separate files for each chain type to avoid non deterministic behaviour due to shared global state in global.rs
2020-01-27 18:51:51 -05:00