Commit graph

2020 commits

Author SHA1 Message Date
Yeastplume
be5e83ff3a
more useful store_error debug () 2019-01-22 13:30:12 +00:00
James
2072e48c15 Change owner API port for MainNet ()
* 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 () 2019-01-20 09:45:16 +00:00
Antioch Peverell
ef5d83817e
Maintain min outbound peers (min_preferred_peers / 2) ()
* 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 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 () 2019-01-18 17:54:26 -08:00
Can Selcik
f66bf3cb05 Improve error output in cases when db_root / logfile is inaccesible () 2019-01-18 17:53:15 -08:00
Antioch Peverell
8c4d14f654
Build warning sync ()
* sync state no longer need in adapters

* rustfmt
2019-01-18 21:40:48 +00:00
Woodstock
7ea370d33a correct spelling of macOS () 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 () 2019-01-18 08:55:05 +00:00
Lucas Clemente Vella
320fc78673 Updated default API port. ()
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 () 2019-01-16 10:53:58 -08:00
eupn
85fcfd8b64 [TUI] Properly handle Esc in Peers and Mining, add Esc to the legend () 2019-01-16 10:49:04 -08:00
Tomas Susanka
4743286713 Improve introduction images in doc's PoW section () 2019-01-16 10:45:23 -08:00
eupn
8badb58665 Cleanup genesis.rs a bit () 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 ()
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 ()
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 () 2019-01-14 11:53:09 -08:00
Gary Yu
c7bb5eab27 fix: avoid duplicate connection ()
* 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 ()
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
Ignotus Peverell
ba994248ac
Prevent reward overflow ()
* Prevent reward overflow

Without this, a miner could cause a crash by including a kernel
with an insane fee directly in the block.

* Plus and minus, not so similar

* Can't be trusted with more code today
2019-01-14 09:37:34 -08:00
Yeastplume
5d257283bd
Only create 1 received tx log entry on restore ()
* restore only creates 1 received tx

* restore child index sanity output
2019-01-14 16:49:34 +00:00
Yeastplume
9a497f1439
Wallet Performance enhancements - cache commit + transaction fetching logic ()
* add optional cached commit to output data, to speed up queries

* rustfmt

* clean up transaction retrieval logic

* rustfmt

* small logic error

* rename cache method

* rustfmt
2019-01-14 15:43:10 +00:00
Antioch Peverell
5c6abd5e22
1440 confs () 2019-01-14 13:29:12 +00:00
Ignotus Peverell
bfd0613275
Plus and minus, not so similar 2019-01-14 06:30:52 +00:00
Yeastplume
5fcf93deae
Cancel tx should set output status to Unspent ()
* cancelling transaction should reset output status to Unspent

* rustfmt
2019-01-13 22:24:01 +00:00
Ignotus Peverell
e3a1c2c6b1
Fix/serializing hash ()
* Remvoe 3 dots from hash formatting
* Move 3 dots to the TUI
* Add backwards check
* Add triple dot to check_and_remove_files + typo
2019-01-12 13:07:03 -08:00
Yoni
b39ce8d328 typo 2019-01-12 21:24:31 +02:00
Yoni
51ad711063 Add triple dot to check_and_remove_files + typo 2019-01-12 21:11:03 +02:00
John Tromp
762da8c491 Fix bug that crashes network with probability 2^-64 () 2019-01-12 10:41:22 -08:00
Yeastplume
e93b380a06
Recover outputs from multiple wallets using same seed ()
* adding optional mmr index to key ids

* rustfmt

* update index

* add mmr index to output display

* change restore to match on commit instead of ID, add extensive restore/check tests for multiple wallets using same seed

* rustfmt

* ensure check restores unknown accounts as well

* rustfmt

* remove storage of commit from wallet
2019-01-12 18:39:29 +00:00
Yoni
c70f5caf03 Add backwards check 2019-01-12 20:17:46 +02:00
Ignotus Peverell
f9a20aef0d
Track blocks we requested, always broadcast otherwise () 2019-01-12 09:28:03 -08:00
Yoni
383d35950e Move 3 dots to the TUI 2019-01-12 17:22:35 +02:00
Yoni
2873d14a98 Remvoe 3 dots from hash formatting 2019-01-12 17:19:30 +02:00
Harm Aarts
cf8f9d609a Load config file from CLI flag ()
Fixes  in the least intrusive way. I believe that given a slightly more
rigorous refactor could improve the readability quite a bit. Will suggest a
follow up PR.
2019-01-11 15:54:24 -08:00
ProxyM8
6ea95cd764 Add Japanese white paper link and fix errors () 2019-01-11 15:52:56 -08:00
Oliver Simon
c452dd06f3 Add: German translation of intro.md ()
* Add: German translation of intro.md
* Update intro_DE.md
2019-01-11 15:52:25 -08:00
Ignotus Peverell
5efcdbc077
Refuse duplicate peer IPs ()
* Refuse duplicate peer IPs
* Explicitly mentioning NAT in code comment
* Well of course that would mess with tests. Only trigger using IP test when on the wild internet (~DNS seeding).
2019-01-11 15:51:38 -08:00