Commit Graph

797 Commits

Author SHA1 Message Date
Ignotus Peverell eefb4319f8 Fix buffer index in compact
Indexes used to be positions in the full file, not in the
intermediary buffer.
2018-04-02 21:49:35 +01:00
yeastplume 959b1d3e8d difficulty check error fix 2018-04-02 10:44:38 +01:00
yeastplume 5dc32a24ef async difficulty check 2018-04-02 10:08:29 +01:00
John Tromp c3939107a5 Avoid repeated truncation in difficulty adjust + minor refactoring (#915)
* avoid repeated truncation in difficulty adjust + minor refactoring
* reinstate needed low-diffculty exception on dampening
* leave consensus breaking change for later one line change; obsolete lower testnet1 max target
2018-03-30 18:21:06 +00:00
Ignotus Peverell 3d2796bdd6 Minor log cleanup 2018-03-30 18:22:01 +01:00
Ignotus Peverell cb0e0c4863 Merge branch 'master' of github.com:mimblewimble/grin 2018-03-30 18:09:22 +01:00
Yeastplume 50856b4cce average over last 59 blocks (#917) 2018-03-30 11:50:29 +01:00
Ignotus Peverell 5ba0dbf38d Fix and cleanup of fast sync triggering logic (#916)
* Fix and cleanup of fast sync triggering logic
* New txhashset on fast sync has to be applied, not rolled back
* Do not block if peer send buffer is full, fixes #912
2018-03-30 06:02:40 +00:00
Ignotus Peverell 107ea3c4dd Disable every-block full state validation
We can re-enable it on some nodes to keep an eye on the network,
but for debug builds this is too expensive. It can take over 60
sec for low-end environments, causing them to never catch up.

I think this is still better than the alternative of telling
everyone to run release builds.
2018-03-29 18:29:25 +01:00
Simon B 3e3fe6cae6 Testnet2 small fixes (#899)
* add hint for gcc-5 for building CUDA plugin
* add N_BLOCks comment for >=6GB GPU cards
* minor logging cleanup
* mark to be kept + reformat as "@ height [hash]"
* show CuckooNN + better wording
2018-03-29 15:56:46 +00:00
Yeastplume ea9a978c87 Tui update 1 (#911)
* minor low-hanging TUI updates

* rustfmt

* make diff/height output clearer
2018-03-29 12:29:17 +01:00
Yeastplume 0fe27cc4e8 update cuckoo miner with latest from upsteam (#910) 2018-03-29 11:03:53 +01:00
Ignotus Peverell 2067c24de1 Wallet external config cleanup 2018-03-29 00:49:37 +01:00
Ignotus Peverell c3cec63a95 Use a sync channel for peer sending. Fixes #904 2018-03-29 00:00:34 +01:00
Quentin Le Sceller b4308e9075 Cleans the wallet awaiting confirmation when destination is incorrect. Fix #900 (#902) 2018-03-28 16:36:10 +00:00
Ignotus Peverell bfb3505183 Fix strict time progression in miner 2018-03-28 07:21:07 +01:00
hashmap 083d4564c3 Log ping/pong only in case of a discrepancy (#893)
Not a fix for #888 but related
2018-03-27 21:33:13 +00:00
Yeastplume 19bedff664 Difficulty scenario fix (#892)
* fix difficulty scenario to match testnet2

* fix difficulty scenario to match testnet2
2018-03-27 22:11:52 +01:00
Antioch Peverell 696097370e do not save header during header first sync (#891)
just use the header as a hint to go request the block
2018-03-27 16:48:09 -04:00
Ignotus Peverell 09a4c454fa Header check before asking previous on orphan not needed. Fast sync now properly keeps the syncing flag on. 2018-03-27 19:56:35 +01:00
Yeastplume 6a6e600e48 tests for difficulty adjustment scenarios (#887)
* tests for difficulty adjustment scenarios

* ignore test
2018-03-27 19:15:42 +01:00
Ignotus Peverell 10addfcd79 Bump up minimum rustc version 2018-03-27 19:10:37 +01:00
Ignotus Peverell 8693764488 Minor typo fix and mut cleanup 2018-03-27 19:06:54 +01:00
Yeastplume 28985bad55 Make peer parameters user-configurable (#883)
* make peer parameters user-configurable
* rename peer_preferred_count to peer_min_preferred_count
2018-03-27 17:17:01 +00:00
Yeastplume e8e013195f Make peer connect attempts asynchronous (#879) 2018-03-27 16:11:09 +00:00
Antioch Peverell 4fcf5fdbca drop msgs received from a banned peer (#886) 2018-03-27 12:09:41 -04:00
Antioch Peverell 5bd0c251dc log some more fork related info when rewinding and applying a fork (#884) 2018-03-27 11:11:21 -04:00
Antioch Peverell 90c71625aa shorter log msg for ping/pong (#882) 2018-03-27 14:23:19 +01:00
hashmap e32d353543 Externalize Grin User Agent (#880)
Take the version from the root Cargo.toml
Fixes #875
2018-03-27 13:52:59 +01:00
hashmap 99804a6485 Change log level for found cuckoo solution event (#881)
Trace seems to be to low, there is a  user request to make it more visible
https://gitter.im/grin_community/Lobby?at=5aba24967c3a01610d7c211f
2018-03-27 13:51:42 +01:00
yeastplume 238b0951e0 incorrect mining param 2018-03-27 09:40:39 +01:00
Ignotus Peverell 77e63f3e3f Fix for async miner loop not resetting head (#877) 2018-03-27 09:22:11 +01:00
Quentin Le Sceller b9b6954d02 Automatic version with cargo.toml (#874)
* Automatic version with cargo.toml

* Add more time for server to start
2018-03-26 17:21:03 -04:00
Ignotus Peverell 16beeca8c9 Correct chain initialization at genesis 2018-03-26 17:38:27 +01:00
Ignotus Peverell 74674c2307 Hopefully last genesis update... 2018-03-26 17:36:54 +01:00
Ignotus Peverell aa0e488e07 Genesis update with correct nonce... 2018-03-26 17:32:10 +01:00
Ignotus Peverell e0594d81fc Genesis update with correct month 2018-03-26 17:31:13 +01:00
Ignotus Peverell f3fc26c5c9 Genesis update with 172 difficulty 2018-03-26 16:12:18 +01:00
Yeastplume b38c6b1cf1 change default to web seeding (#871) 2018-03-26 16:11:47 +01:00
Simon B a951f01ac6 fix 5w -> w5, add zlib-devel (#872) 2018-03-26 13:48:50 +01:00
Yeastplume 6f264b2f7e Testnet2 test fixes (#870)
* use dev genesis for automated tests

* never test block time on automated tests

* automated genesis block creation
2018-03-26 12:07:04 +01:00
Ignotus Peverell 327293d28e Genesis, version changes and doc for testnet2 (#865)
* Bump up crates versions

* Finally add a Cargo.lock to avoid dependency breakages

* Build doc update for testnet2

* Fix test framework not really using its mining config

* Testnet2 genesis, best so far at 128 difficulty (a nice number)

* Minor build doc update
2018-03-26 10:48:46 +01:00
Alexey Miroshkin 1a332a9e69 Fix gitignore pattern for iml files (#869)
Rg is giving me a hard time because of this invalid pattern.
2018-03-26 09:16:38 +01:00
Quentin Le Sceller 3ae7b0dedf Attempt to fix api test (#868)
Now wait 1 second for the wallet to start.
2018-03-26 03:32:15 +00:00
Ignotus Peverell f72b36116e Somehow, all wallets tests are failing progressively. Hoping @quentinlesceller can take a look, commenting out for now. 2018-03-26 03:58:15 +01:00
John Tromp a327427178 0-based positions, bag peaks right-to-left with mmr size as index (#863)
* 0-based positions, bag peaks right-to-left with mmr size as index
* fix remaining instances of hash_with_index
* fix pmmr test
2018-03-26 02:26:11 +00:00
Simon B ccf0c11da6 Fix 2 compiler warnings. More \n around panic outputs (#867)
* avoid compiler warnings on 3 tests
* more newlines around logging a panic
2018-03-26 01:35:28 +00:00
Ignotus Peverell 3f1e7e6506 Minor updates 2018-03-25 23:35:06 +01:00
Simon B 9285de2c24 Here is a case where ~ is needed, to allow cargo update to only touch the patch level version (third number). Anything else than ~ means that both first numbers can be raised, so "2.1" updaates to "2.2" (#866) 2018-03-25 20:08:38 +00:00
Ignotus Peverell 2bf656646c Force slog version to 2.1 (2.2 broke some traits) 2018-03-25 19:54:41 +01:00