Commit graph

2150 commits

Author SHA1 Message Date
Simon B
dd1a24dcbc Compiler warnings 20190123 (#2462)
* cleanup compiler warnings: unused imports

* rustfmt

* more compiler warnings
2019-01-25 10:09:32 +00:00
Simon B
0e0ec247e4 fix owner_api docs: wrong port number (#2442)
* fix owner_api docs: wrong port number

* update ports since PR #2405. We now allow both floo and mainnet owner_apis to run in parallell on a single server, with ports 13420 or 3420

* correction since there is no --mainnet flag

* fixes the comment by @karkagis
2019-01-25 10:08:08 +00:00
hashmap
2e22e2c6ec
Merge pull request #2465 from sesam/catchingClippy
Catching clippy
2019-01-24 22:00:34 +01:00
hashmap
4a54039c52
Merge pull request #2469 from cyclefortytwo/head-error
Disable thread local storage for LMDB connection
2019-01-24 21:57:02 +01:00
hashmap
ca19f9c610
Merge pull request #2467 from gagarin55/typo-fix
Fixed some typos in russian intro and code structure docs
2019-01-24 15:05:41 +01:00
Yoni Svechinsky
a523f82820 Add hex serialization functions (#2436)
* Change slate seralization to hex

* rustfmt

* Comment out serde directives
Move serialization functions into a seperate module

* Remove commented code
2019-01-24 13:18:13 +00:00
gagarin55
d9c38ae654 Fixed some typos in russian intro and code structure docs 2019-01-24 16:03:36 +03:00
hashmap
0e9461c3b2
Disable thread local storage for LMDB connection 2019-01-24 13:20:40 +01:00
hashmap
329d243ccd
Merge pull request #2440 from sesam/CONTRIBUTING-update-from-wiki
Contributing update from wiki
2019-01-24 10:08:06 +01:00
Simon B
0d606c0356 clippy says: fn new should usually return self <-- I picked ignore, since this is test code waiting to be moved. And likely also renamed from "new" to maybe "new_mock_block" to make sure nobody finds it and wants to use it to build a non-test block 2019-01-24 01:59:20 +01:00
Simon B
87a4e1e2d7 clippy says: unneeded return https://rust-lang.github.io/rust-clippy/master/index.html#needless_return 2019-01-24 01:56:50 +01:00
Simon B
9335f11c6c clippy says: unreadable literal, please use a lot of _ everywhere (!!!) or ignore <-- picking ignore 2019-01-24 01:56:04 +01:00
Simon B
8935f3c7b4 clippy says: use char (',') instead of string (",")
https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
2019-01-24 01:53:35 +01:00
Simon B
dda8497d54 clippy says: avoid needless "1 *"
clippy says: make operator precedence explicit
2019-01-24 01:53:36 +01:00
Simon B
7d0a2e56bc grep: fix the grep example to cover all except target/ 2019-01-24 00:47:55 +01:00
Ignotus Peverell
2299a03248
Fallback to building empty block to mine (if txpool is somehow in invalid state) (#2451)
* log loudly if we fail to prepare txs for mining
2019-01-23 10:31:49 -08:00
hashmap
91f4a6b180 Fix stratum reading issue one more time (#2459) 2019-01-23 10:27:00 -08:00
antiochp
61fe1418ef
rustfmt 2019-01-23 10:49:47 +00:00
antiochp
ba25592f15
log loudly if we fail to prepare txs for mining 2019-01-23 10:49:16 +00:00
antiochp
ba9a362d02
rustfmt 2019-01-23 10:31:20 +00:00
antiochp
30ad3bb7ae
fallback to empty vec of txs when building block from mineable txs 2019-01-23 10:31:14 +00:00
Ignotus Peverell
493cb431d0
Add bug report and feature requests templates
As discussed during the Jan 22nd 2019 dev meeting.
2019-01-22 15:25:25 -08:00
hashmap
55f4ee3166 Fix regression in reading stratum messages (#2450)
It was introduced in #2418, it turns out std read_line always appends to
the string, not writes from the beginning, so when we have multiple
workers to read from all messages are concatenated
2019-01-22 11:26:30 -08:00
Antioch Peverell
f8aab05d76 Use weight_as_block for quick weight check (#2443) 2019-01-22 08:55:36 -08:00
姜家志
f3884f57b6 In the Requirements, add the software that needs to be installed for the Mac System (#2367) 2019-01-22 13:41:34 +00:00
Oliver Simon
89a1373916 Update translation links and naming scheme (#2357)
* Update translation links and naming scheme

* Improve german translation of intro.md
2019-01-22 13:41:06 +00:00
JackRack
a88d66d9ab Fixed non existing url (#2337)
Added url of wallet user guide on how to use Grin
2019-01-22 13:40:25 +00:00
Michalis Kargakis
cba93e2121 Update build docs instructions (#2428) 2019-01-22 13:39:29 +00:00
Gary Yu
c34c991472 fix: wallet outputs display on white background color scheme (#2444) 2019-01-22 13:31:34 +00:00
Gary Yu
6b5212e7ec wallet: avoid display the long file name on txs (#2445) 2019-01-22 13:30:50 +00:00
Yeastplume
be5e83ff3a
more useful store_error debug (#2448) 2019-01-22 13:30:12 +00:00
James
2072e48c15 Change owner API port for MainNet (#2405)
* Change owner API port for MainNet

* Added owner_api port selector based on is_floonet
2019-01-21 20:18:01 +00:00
Simon B
986fa89e28 add link to Code coverage metrics wiki page 2019-01-21 15:01:54 +01:00
Simon B
b02f95c2c4 CONTRIBUTING update rustfmt explanation 2019-01-21 15:00:20 +01:00
Simon B
dc824d169d update CONTRIBUTING.md 2019-01-21 15:00:20 +01:00
Can Selcik
b22e5752be Use Option::unwrap_or instead of is_some followed by unwrap in start_server_tui (#2432) 2019-01-20 09:45:16 +00:00
Antioch Peverell
ef5d83817e
Maintain min outbound peers (min_preferred_peers / 2) (#2417)
* outbound connection count

* rustfmt

* display outbound peer count

* rustfmt

* wip - allow connections to exceed max when trying to create new outcound connections
any in excess of total max will be cleaned up subsequently

* fix

* we care about connected outbound peer count when deciding to connect to new peers
2019-01-19 16:13:09 +00:00
hashmap
74422efa5b
Merge pull request #2418 from cyclefortytwo/worker-str-alloc
Reduce number of String allocation in Stratum worker
2019-01-19 06:19:31 +01:00
Antioch Peverell
feac0cad3d default log level DEBUG -> INFO (#2420) 2019-01-18 17:54:26 -08:00
Can Selcik
f66bf3cb05 Improve error output in cases when db_root / logfile is inaccesible (#2424) 2019-01-18 17:53:15 -08:00
Antioch Peverell
8c4d14f654
Build warning sync (#2416)
* sync state no longer need in adapters

* rustfmt
2019-01-18 21:40:48 +00:00
Woodstock
7ea370d33a correct spelling of macOS (#2422) 2019-01-18 17:49:20 +00:00
hashmap
a3f68d8d1f
Reduce number of String allocation in Stratum worker
Currently we allocate a string in the heap per each worker check (not even
read) and clone message in write. This pr introduces a buffer which is
used for a round of workers check and remove clone in write_message.
Read optimization reduces number of allocations by factor of N (where N
is a number of workers), if N = 1 number of allocations doesn't change.
2019-01-18 15:11:13 +01:00
James
bb933dcd69 Update ports for mainnet in API doc (#2406) 2019-01-18 08:55:05 +00:00
Lucas Clemente Vella
320fc78673 Updated default API port. (#2400)
Grin 1.0.0 uses port as API default.
2019-01-16 17:26:35 -08:00
Ignotus Peverell
607813a8aa
Minor release script fix 2019-01-16 18:56:10 +00:00
Gary Yu
760dbf3481 Use travis-ci to update a release instead of creating new release (#2384) 2019-01-16 10:53:58 -08:00
eupn
85fcfd8b64 [TUI] Properly handle Esc in Peers and Mining, add Esc to the legend (#2371) 2019-01-16 10:49:04 -08:00
Tomas Susanka
4743286713 Improve introduction images in doc's PoW section (#2393) 2019-01-16 10:45:23 -08:00
eupn
8badb58665 Cleanup genesis.rs a bit (#2390) 2019-01-15 18:37:17 -08:00