Commit Graph

45 Commits

Author SHA1 Message Date
Richard Kiss 6ded806fa2
Add `chia init` and refactor out many global references to the config directory (#153)
* Tweak subcommand template.
* Don't hack the .chia/beta-* directory when invoking `chia`.
* Get `chia init` working. Factor out all global paths.
* Reverse order of migration bases.
* Update README.
2020-04-08 16:47:17 +09:00
Yostra 260fb2baf3 farmer periodic reconnect 2020-04-07 21:38:39 -07:00
Mariano Sorgente 2e47378ab7
Remove useless host configs. Run rpc servers not on localhost. 2020-04-05 18:08:40 +09:00
Richard Kiss 155d14aff9 Load setproctitle as runtime. 2020-03-31 18:12:31 -07:00
Mariano Sorgente e328f01f10
Lint properly, and fix Paths 2020-03-30 18:03:03 +09:00
Richard Kiss 2a681d0521 Change names of tools so they all start with "chia". 2020-03-29 14:25:28 -07:00
Richard Kiss fd6b53883f Put command-line tools into venv. 2020-03-27 12:17:34 -07:00
Gene Hoffman 8efb400f3d Change to generate_keys.py 2020-03-25 20:38:36 -07:00
Bill Blanke 9a64bdd2ed configd ssl 2020-03-13 09:57:42 -07:00
Mariano Sorgente 31465b0269
Simulation test, vdf with variable discriminant size, farmer puzzle ahsh 2020-02-06 19:01:18 -05:00
Mariano Sorgente 1c7964580a
New configuration system, and file logging 2020-01-30 19:05:07 +09:00
Mariano Sorgente 32a6cbfb09
New config system with argparse 2020-01-30 17:57:47 +09:00
Mariano Sorgente 88e991c67f
Optional uvloop (#83)
* uvloop is an optional dependency
2020-01-23 14:19:47 +09:00
Mariano Sorgente 4a736883ca
Full sync test and color logging (#69)
* Adds color logging, and test for full sync
2020-01-14 23:47:40 +09:00
Mariano Sorgente 49e4629935
Sqlite, RPC server, and other changes (#68)
* Switches to sqlite and remove all mongo stuff
* Starts RPC server on port 8555
* UI is in new process, communicates to node through rpc
* JSON serialization for streamables
* Harvester periodically prints its plot names and sizes
* Process names are set to chia_full node, chia_harvester, etc
* CONTRIBUTING.md, and remove docs from git (put in wiki)
* Adds the SmallHeaderBlock type, it's header block without the PoT and PoSpace
* Fix harvester bug (allows two harvesters in the same machine)
2020-01-13 22:19:53 +09:00
Mariano Sorgente bee9ce7a54 Add more explanation of how to use simulation (#29)
* Add more explanation of how to use simulation

* Prevent simultanous TCP connection

* Small comment fix
2019-12-03 19:03:43 +09:00
Mariano Sorgente 1e3e0a4342 Moved things from disk to memory, clear old blocks 2019-11-28 13:00:17 +09:00
Alex Wice 4f9ba50b15 pyblack autoformatting 2019-11-18 13:50:31 +09:00
Alex Wice 8be7181c9d sort and remove unused imports 2019-11-18 13:49:39 +09:00
Mariano Sorgente fc99e4c39f New protocol changes from bram 2019-11-14 17:26:18 -05:00
Mariano Sorgente a479a506f9 Scripts (#14)
* Start block UI stuff

* Start with block search

* Create connections from the UI

* Add plot directory

* Add scripts for key generation, and plotting

* Remove keys and plot config

* Add scripts for key generation, and plotting

* Readme, comments
2019-11-08 16:51:01 -05:00
Rostislav 0c20092303 Do not run on_connect callback twice for outbound connections
The callback passed to .start_server() is run for all inbound and
outbound connections. Specifying the same callback function again in
.start_client() call causes it to be run twice for that outbound
connection.

Farmer and full node were affected by this problem.
2019-11-07 22:00:51 -05:00
Rostislav ea7a836906 Do not use node_id to identify outbound connections
Previously the target node's node_id had to be known before connecting
to it. This is inconvenient and not scalable.

Remove node_id from PeerInfo, use PeerInfo as a whole instead of node_id
to identify outbound connections in server.py.
2019-11-07 22:00:51 -05:00
Mariano Sorgente 1038194e3b Fix bug with reconnect 2019-11-03 20:13:22 -08:00
Mariano Sorgente 93628d3232 Allow restarting and reconnecting by any of the servers 2019-11-03 19:34:17 -08:00
Mariano Sorgente 8cf36355e0 UI working with new networking 2019-10-30 11:51:27 -07:00
Mariano Sorgente bddb146df1 Merge branch 'uipot' into prompt 2019-10-30 01:37:43 +09:00
Mariano Sorgente 22e3c697f2 Fix event loop issue 2019-10-26 12:00:25 +09:00
Mariano Sorgente b50fb9c097 Working 2019-10-26 11:13:23 +09:00
Mariano Sorgente b4449fbe04 Fix error messages 2019-10-25 19:25:26 +09:00
Mariano Sorgente 8b7822b043 More work 2019-10-23 16:49:16 +09:00
Mariano Sorgente 1d30cc0910 Changed nodes to be classes, fix type checking 2019-10-23 12:18:48 +09:00
Mariano Sorgente b4baff9f4e Fix tests 2019-10-16 17:38:49 +09:00
Mariano Sorgente 6d6eb9853d Fix small bug with height 2019-09-26 16:04:35 +09:00
Mariano Sorgente 55063e0f73 New blockchain class implementation 2019-09-24 15:01:32 +09:00
Mariano Sorgente 139e5defe7 Separate config 2019-09-17 18:17:11 +09:00
Mariano Sorgente 16df3c7f17 Full node startup and sync 2019-09-17 14:44:16 +09:00
Mariano Sorgente 3b2e6d8391 One node working with new code 2019-09-13 16:55:04 +09:00
Mariano Sorgente 3982bc44a9 More additions to networking 2019-09-12 13:31:49 +09:00
Mariano Sorgente 616e3b20a1 More refactoring network 2019-08-22 13:19:24 +09:00
Mariano Sorgente 005259a12d Timelord server, python vdf, calculate iterations, and multiple plots in plotter 2019-08-08 19:37:51 +09:00
Mariano Sorgente 212d5da74a CBOR serialization 2019-08-01 01:48:30 +09:00
Mariano Sorgente 504d6df64b Start farmer protocol, PeerConnections object, full node server 2019-07-26 17:23:50 +09:00
Mariano Sorgente 348cadf6f0 Implement plotter protocol 2019-07-25 19:01:56 +09:00
Mariano Sorgente 340c572f80 Some more prototype code, pool protocol 2019-07-23 18:41:05 +09:00