Commit graph

931 commits

Author SHA1 Message Date
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
Simon B
f9b87164e7 Idiomatic cargo toml (#862)
* Specify versions SemVer-style
 - slog and serde
* Comments for not update-able pre-1.0 crates:
 - urlencoded at "0.5" since 0.6+ lacks trait `plugin::Plugin<iron::Request<'_, '_>>`
* alpha-sort deps
* Specify versions SemVer-style
 - backtrace, bitflags, blake2-rfc, bodyparser, built, byteorder
 - chrono, clap, demonize, enum_primitive, env_logger
 - failure, failure_derive, futures
 - hyper, iron, itertools, lazy_static, libc
 - memmap, mount, net2, num_bigint, prettytable-rs
 - rand, regex, rocksdb, router, siphasher
 - term, time, tokio-core, tokio-retry, urlencoded, uuid, walkdir, zip
2018-03-25 17:44:27 +00:00
Simon B
731cde3710 Add gitlab ci config (#860)
Example test --all passing: https://gitlab.com/mimblewimble/grin-ci/-/jobs/58984836
2018-03-25 17:41:49 +00:00
Simon B
a8fc82d8c1 Console debug fixes (#861)
* move some debug! to trace!

* more informative debugs

* standardising on always showing chain tips as "cumulative difficulty @ height [hash]"

* make 2 debug outputs into a single

* "no peers" as warning (not info) to let it stand out more clearly

* move fn param (used only in this one debug line)

* clarify difficulty "units"
2018-03-25 12:41:12 -04:00
Alexey Miroshkin
bb134758e7 Rename Hash::zero() to Hash::default() (#858)
It is more idiomatic, also `zero` is misleading in context of `+` operator.
2018-03-23 23:35:10 +00:00
Antioch Peverell
388beafb65 Standardize and cleanup SerializationMode (#856) 2018-03-23 23:34:50 +00:00
Antioch Peverell
7a8d6147f4 Split pmmr.get() into get_hash() and get_data() (#855) 2018-03-23 23:33:59 +00:00
yeastplume
05d2b1df1e move dependency logging to trace 2018-03-23 18:34:56 +00:00
Quentin Le Sceller
b61d3f07d9 Add direction in grin client listconnectedpeers (#854) 2018-03-23 17:54:29 +00:00
Ignotus Peverell
035f60dfb4
Commenting out wallet test until someone fixes it 2018-03-23 17:50:55 +00:00
Yeastplume
ee5782ff8b
Add versioning and build information (#851)
* add build-time versioning info

* add build-time versioning info
2018-03-23 10:28:15 +00:00
Yeastplume
80887196a8
Restore wallet restore (#843)
* adding appropriate message to bulletproofs to allow for restore

* rustfmt

* should work, now test

* rustfmt

* fix to wallet restore, works now

* fix pool tests

* fix pool tests

* rustfmt
2018-03-23 10:13:57 +00:00
Antioch Peverell
90a7f3d0f6 Validating an empty chain no longer panics (#850) 2018-03-23 01:48:05 +00:00
Ignotus Peverell
68b6bd25a4
Trying Travis building in release mode 2018-03-22 23:11:06 +00:00
Ignotus Peverell
c6761f0b18
Fix adapter compile error 2018-03-22 22:58:32 +00:00
Quentin Le Sceller
836391cc53 Dandelion relay update (#825)
* Change error logger to debug logger
* Dandelion relay update after monitor peers
* Typo + kick off Travis build
2018-03-22 22:51:09 +00:00
Antioch Peverell
155bab93a4 We only want to run chain validation in some scenarios (#842) 2018-03-22 22:44:32 +00:00