Commit graph

1939 commits

Author SHA1 Message Date
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
Ignotus Peverell
e7485ab5f1
Version bump to 1.0.0 2019-01-15 16:24:29 +00:00
Ignotus Peverell
0510ba9345
Fix default DNS seed port 2019-01-15 15:46:11 +00:00
Ignotus Peverell
8fc489a808
Finalized mainnet genesis block 2019-01-15 15:27:51 +00:00
Ignotus Peverell
8a76b374ff
Mainnet enablement (#2379)
1. Remove the exit guarding running a node in mainnet mode.
2. Set initial difficulty in genesis.
2019-01-14 14:30:36 -08:00
Ignotus Peverell
c5cc4f29ac
Yeastseed (#2382)
To keep it all yeasty

* The yeastiest seed

* Dammit git

* Dammit git
2019-01-14 13:31:46 -08:00
Ignotus Peverell
6bb611a2f0
Fix spurious change added by git merge 2019-01-14 20:19:17 +00:00
Ignotus Peverell
224a26faed
Mainnet enablement
1. Remove the exit guarding running a node in mainnet mode.
2. Set initial difficulty in genesis.
2019-01-14 20:07:10 +00:00
Ignotus Peverell
49612543d4
Merge remote-tracking branch 'upstream/master' 2019-01-14 19:54:44 +00:00
Gavin McDermott
34bd35e8fc fix: foreign_api handles pre-flight OPTIONS call on POST requests (#2365) 2019-01-14 11:53:09 -08:00
Gary Yu
c7bb5eab27 fix: avoid duplicate connection (#2361)
* fix: avoid duplicate connection
* ignore the duplicate connecting to same peer within 10 seconds
* refactor: use hashmap instead of vector for connecting history
* remove the double checking for already connected peer on connect
* add previous connecting time to the log
* fix a mistake on shrink
* move the now() into the inter loop for accurate time
* change the minimum allowed inverval time from 10s to 30s
2019-01-14 11:44:35 -08:00
Ignotus Peverell
d7be94fafb
More range proof tests (#2373)
Trying to cheat with range proofs to make sure it still fails at
the block level. Defense in depth, belt and suspenders and all that
good stuff.

* rustfmt

* Revert bad carry-over
2019-01-14 10:15:42 -08:00