Commit Graph

1775 Commits

Author SHA1 Message Date
Ignotus Peverell f9a20aef0d Track blocks we requested, always broadcast otherwise (#2349) 2019-01-12 09:28:03 -08:00
Harm Aarts cf8f9d609a Load config file from CLI flag (#2333)
Fixes #2317 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 (#2341) 2019-01-11 15:52:56 -08:00
Oliver Simon c452dd06f3 Add: German translation of intro.md (#2338)
* 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 (#2347)
* 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 (#2342) 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 (#2340) 2019-01-12 07:38:27 +08:00
Ignotus Peverell 1a6b46b09d Ban peers that can't complete a handshake (#2320)
* 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 (#2285) 2019-01-10 15:58:37 -08:00
Simon B 950fa0e496 Cleanup compiler warnings (#2323)
* 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 (#2325)
* 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 (#2329)
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 (#2326)
* 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
Yeastplume cd9a539288 Add 'recover' option to grin wallet init (#2330)
* Only update outputs with unconfirmed transactions outstanding

* add further check for Unspent output that have been spent to check_repair

* rename  to

* make updating all outputs optional API parameter. do full update before a wallet check, remove unspent->spent check from check process

* rustfmt

* typo

* add recover from phrase option to init

* rustfmt

* don't panic if recover is cancelled, grin-wallet.toml is created but wallet_data dir doesn't yet exits

* rustfmt
2019-01-10 12:06:12 +00:00
Yeastplume 4191b15410 Wallet - only update outputs with unconfirmed transactions outstanding (#2322)
* Only update outputs with unconfirmed transactions outstanding

* add further check for Unspent output that have been spent to check_repair

* rename  to

* make updating all outputs optional API parameter. do full update before a wallet check, remove unspent->spent check from check process

* rustfmt

* typo
2019-01-10 11:17:35 +00:00
Eugene P 94974ec19a Strip hash in fmt::Debug and use fmt::Debug for fmt::Display 2019-01-10 13:01:45 +03:00
Eugene P bc7b701de3 Show full hex string of hash in fmt::Debug for core::Hash 2019-01-10 12:55:10 +03:00
Eugene P faff529260 Show first 12 digits of Hash 2019-01-10 12:39:47 +03:00
Eugene P b4e4992a5c rustfmt 2019-01-10 12:30:21 +03:00
Eugene P 29fc3e61de Implement fmt::Display for core::Hash 2019-01-10 12:30:10 +03:00
Eugene P 282a5ce980 rustfmt 2019-01-10 06:28:28 +03:00
Eugene P f5ae49f071 Print block hash in TUI partially 2019-01-10 06:28:15 +03:00
Ignotus Peverell f86c90ade5 rustfmt 2019-01-10 01:23:02 +00:00
Ignotus Peverell 6a244e904a Fix add_peer for ban, remove useless disconnect 2019-01-10 01:22:48 +00:00
Ignotus Peverell cf088f6f51 Ban peers that fail handshake 2019-01-09 20:31:09 +00:00
Ignotus Peverell 26d250bbea Fix borrow error 2019-01-09 20:24:57 +00:00
Ignotus Peverell 7a44ee9aa0 Force client conn shutdown on error 2019-01-09 19:24:59 +00:00
Ignotus Peverell 684e8164f5 Break out of main peer loop on error 2019-01-09 19:14:50 +00:00
Yeastplume 5915580ab3 Automate wallet seed recovery process (#2319) 2019-01-09 16:13:05 +00:00
Ignotus Peverell ea38e15a6f Enforce zeroing of serialized proof excess bits (#2315) 2019-01-08 16:03:41 -08:00
Ignotus Peverell 1806ee34f5 Off by one 2019-01-08 22:43:33 +00:00
Ignotus Peverell 5caddc01db Enforce zeroing of serialized proof excess bits 2019-01-08 19:18:44 +00:00
Antioch Peverell 27801f6a93 Implement kernel and output features as enums (#2312)
* use enums for kernel and output features

* rustfmt

* add test coverage around deserializing kernel features
2019-01-08 16:07:38 +00:00
Hendrik Richter c388af6603 add one more DNS seed (#2283) 2019-01-08 08:12:56 +08:00
Antioch Peverell a02c44080a Dandelion cycle fix (#2185)
* modify stempool behavior - fluff if tx seen before (any kernels)

* rustfmt
2019-01-07 18:09:04 -05:00
Gary Yu c5efb715a5 add https as optional for server api (#2310)
* add tls as optional config for server api
* add error log if start_rest_apis fail
2019-01-07 11:42:11 -08:00
Ignotus Peverell 2c5ba853f7 Version bump to 0.5.1 2019-01-07 19:41:07 +00:00
Quentin Le Sceller 5eaf0e6989 Fix confidential transactions link (#2307) 2019-01-07 10:03:33 +00:00
Ducem Barr a3431fb147 feat: Configuration option to include foreign API endpoints in the owner API (#2305)
* Allow foreign API over owner API port

* Tests for owner_api_include_foreign config option
2019-01-07 10:00:52 +00:00
Gary Yu 0b73e87f8c fix: connection close should stay outside the poll loop (#2308) 2019-01-07 14:44:07 +08:00
Gary Yu e79123fd5c clean the unused p2p sockets (i.e. not in peers list) (#2298)
* clean the unused p2p sockets (i.e. not in peers list)

* add function comments
2019-01-07 14:41:41 +08:00
Gary Yu 657392b592 minor improvement on stratum server log for miner status (#2301)
* add a log to show the stratum worker status

* add miner starting time (height)

* rustfmt
2019-01-07 07:19:25 +08:00
Yeastplume b927c10b01 Update libsecp version and a few trivial enhancements (#2304)
* update libsecp version and a few trivial enhancements

* update grin_secp version number
2019-01-06 21:18:02 +00:00
Quentin Le Sceller 8e4c36714f Fix doc typo (#2303) 2019-01-06 12:28:18 -08:00
Quentin Le Sceller 21deed3ba3 Add Quentin Le Sceller DNS Seed (#2302) 2019-01-06 12:05:57 -08:00
Quentin Le Sceller a1dbf68254 Merge pull request #2290 from kargakis/clarify
Provide link to basic auth wiki
2019-01-06 14:34:52 -05:00
Tsai1993 3249d77af6 a bit typo fix on intro (#2299)
* typo fixed
2019-01-07 00:02:16 +08:00
Yeastplume dca9462669 Http adapter Fix (#2295)
* only send http and keybase adapter slates sync

* rustfmt
2019-01-05 21:16:01 +00:00
Michalis Kargakis 3af020f199 Provide link to basic auth wiki 2019-01-05 14:51:21 +01:00