Commit graph

1961 commits

Author SHA1 Message Date
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
Quentin Le Sceller
424bb28c7d Reduce miner thread sleep to 1 microsecond () 2019-01-11 15:50:58 -08:00
Gary Yu
7698b28e16
fix: wait_for_min_peers shouldn't wait forever when all peers are in same work () 2019-01-12 07:38:27 +08:00
Ignotus Peverell
1a6b46b09d
Ban peers that can't complete a handshake ()
* Break out of main peer loop on error
* Force client conn shutdown on error
* Fix borrow error
* Ban peers that fail handshake
* Fix add_peer for ban, remove useless disconnect
2019-01-11 10:00:32 -08:00
Ignotus Peverell
60d3ee3c44
Bump version to 0.5.2 for release 2019-01-11 01:26:30 +00:00
hashmap
5cf4d7acfe Use ZeroingString for password and passpharse in wallet () 2019-01-10 15:58:37 -08:00
Simon B
950fa0e496 Cleanup compiler warnings ()
* cleanup compiler warnings
* allow(dead_code) in tests/{framework,simulnet}
2019-01-10 12:18:25 -08:00
Ignotus Peverell
27b4e2145a
Replace default fmt::Display on core::Hash ()
* Print block hash in TUI partially
* Implement fmt::Display for core::Hash
* Show first 12 digits of Hash
* Show full hex string of hash in fmt::Debug for core::Hash
* Strip hash in fmt::Debug and use fmt::Debug for fmt::Display
2019-01-10 12:13:23 -08:00
Isaac Cook
4eeedb0877 Fix doc dump_stored_tx -> retrieve_stored_tx ()
It appears the method call in https://github.com/mimblewimble/grin/blob/master/wallet/src/controller.rs got renamed for consistency and this got missed.
2019-01-10 09:09:56 -05:00
Gary Yu
ea4407a919
wait_for_min_peers should continue waiting if none connected ()
* wait_for_min_peers should continue waiting if none connected

* allow no peers to go in non-production mode, such as travis-ci test
2019-01-10 21:08:51 +08:00