Commit Graph

1071 Commits

Author SHA1 Message Date
Yostra a8d126f61e test unspent store thorugh blockchain 2020-02-04 11:39:21 -08:00
Yostra ca053e5a60 fix blockchain args 2020-02-04 11:39:21 -08:00
Yostra 7f115d70e4 fix rename 2020-02-04 11:39:21 -08:00
Yostra efb61cc107 unspent db in blockhain 2020-02-04 11:39:20 -08:00
Yostra b43be9bf4f some moretest unspent db 2020-02-04 11:39:20 -08:00
Yostra bd85f51612 empty tests 2020-02-04 11:39:20 -08:00
Yostra 2235d6fa8e types, mempool, conditions 2020-02-04 11:39:20 -08:00
Yostra 1cba0be0b2 test spendbundle 2020-02-04 11:39:20 -08:00
Yostra 277f9e90ef wallet and ledger stuff for creating transactions 2020-02-04 11:39:20 -08:00
Yostra 919d3f33a4 simple add unspent test 2020-02-04 11:39:20 -08:00
Yostra 305461382d fix stuff 2020-02-04 11:39:20 -08:00
Yostra a16a755554 fix stuff 2020-02-04 11:39:20 -08:00
Mariano Sorgente 89c84674a0
Fix tests 2020-02-03 15:44:58 +09:00
Mariano Sorgente ea55e955e1
Fix tests 2020-01-30 19:38:48 +09:00
Mariano Sorgente 32a6cbfb09
New config system with argparse 2020-01-30 17:57:47 +09:00
Mariano Sorgente 6cd4298ae1
Fixes from straya's feedback 2020-01-30 11:52:03 +09:00
Mariano Sorgente aa0aa6d8c9
Make sure to commit after adding blocks 2020-01-29 12:04:26 +09:00
Mariano Sorgente 6f45a4d515
Reduce the use of locks with synchronous store methods 2020-01-28 17:14:50 +09:00
Mariano Sorgente 194285f6d4
Fix sqlite 2020-01-28 16:06:01 +09:00
Mariano Sorgente 330e2c425f
More work on fixing bugs 2020-01-27 22:09:28 +09:00
Mariano Sorgente be1016a319
Store small headers in database and load small from memory 2020-01-27 14:11:54 +09:00
Mariano Sorgente 5c49a2858c
Fix sqlite issue on Github CI machine (#87)
* Add a lock and update cbor2
* Support python3, and tests python3 in ci
2020-01-24 20:44:09 +09:00
Mariano Sorgente 0f30aaf0cf
Revert aiohttp version 2020-01-24 16:12:16 +09:00
Mariano Sorgente 9426e00d8f
Fixes the setproctitle bug and the wheel bug. (#75)
Fixes the setproctitle bug, and the wheel bug.
2020-01-17 17:36:01 +09:00
Gene Hoffman fba486ec9c
Move tests to blockchain.db 2020-01-14 22:40:26 -08:00
Gene Hoffman 28ba54722c
Move tests to blockchain.db 2020-01-14 22:39:34 -08:00
Gene Hoffman 7026ad4a04
Change tests to blockchain.db 2020-01-14 22:36:18 -08:00
Mariano Sorgente 91573826ca
Fix short sync, fix sync tests, add short sync test (#72) 2020-01-15 14:25:59 +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 69c808a33f
Async waiting for processes, fix networking bug, reorganize blockchain class 2020-01-14 17:35:51 +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 281be67729 Alpha 1.2 (#64)
Remove database access from blockchain, and handle headers instead of blocks
Avoid processing blocks and unfinished blocks that we have already seen.
Also adds test for load.

Plotting improvements
2020-01-08 18:07:52 -06:00
Mariano Sorgente a5329005e0
Fix self connection leak (#43)
* Fix self connection leak
* Increase sleep to improve performance
* Add load test for unfinished blocks
* Fix flake8 lint
2019-12-10 08:27:38 +09:00
Mariano Sorgente 402ea10e20 Sync changes (#27)
* Added a new API call GetAllHeaderHashes which returns just the header hashes. This is used for finding fork point.
* Only downloads headers and blocks from fork point
* Remove CancelledError logging
* Short sync should now work properly, it will always ask for previous block. There might be some repeated requests.
* Introducer now only returns peers which it has seen recently, and full node only connects to peers which it has heard from recently.
2019-12-02 22:47:09 +09:00
Mariano Sorgente 1e3e0a4342 Moved things from disk to memory, clear old blocks 2019-11-28 13:00:17 +09:00
Mariano Sorgente 8c20241273 Change block time to 5 min, 128 block epoch, default upnp 2019-11-28 00:35:48 +09:00
Mariano Sorgente 91c25001d7 Implement faster sync 2019-11-27 14:25:11 +09:00
Mariano Sorgente 29b5fdb610 Keep headers in memory 2019-11-27 12:09:56 +09:00
Mariano Sorgente 6729afa4be Improve header syncing process 2019-11-24 17:08:34 +09:00
Mariano Sorgente 45be0ab0b8 Attempt to fix timeout issue 2019-11-22 15:53:04 +09:00
Mariano Sorgente dfd3fd9676 Merge with latest master, bug fixes, cleanup 2019-11-20 16:28:26 +09:00
Mariano Sorgente d048d61315 Fix test 2019-11-20 13:42:25 +09:00
Alex Wice 1be3b806a6 more merge cleanup 2019-11-18 14:14:40 +09:00
Alex Wice c41d240ef3 minor cleanup after merge 2019-11-18 14:09:58 +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
Alex Wice 3c3df3776e persist should work 2019-11-18 13:40:20 +09:00
Alex Wice 1aab0de425 persistence, pass all pytests 2019-11-18 13:31:48 +09:00
Mariano Sorgente fc99e4c39f New protocol changes from bram 2019-11-14 17:26:18 -05:00
Mariano Sorgente db3eac9fb9 Allow specifying an alternate plot directoey 2019-11-08 16:53:29 -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
Mariano Sorgente ff2f4a30d5 Merge branch 'challenge_hash' into networking 2019-11-03 16:42:05 -08:00
Mariano Sorgente 38d8038b01 Added challenge hash 2019-11-01 17:57:30 -07:00
Mariano Sorgente e65d9bad71 __bytes__, cbor, etc 2019-11-01 14:53:48 -07:00
Mariano Sorgente 5869538416 Start with block page, and remove global connections lock 2019-10-31 10:34:16 -07:00
Mariano Sorgente 1391bfc9c4 Merge branch 'master' of github.com:Chia-Network/chia-blockchain into prompt 2019-10-30 14:35:09 -07:00
Richard Kiss 22f8ffd745 Create tests/plots using git. 2019-10-30 14:19:44 -07:00
Mariano Sorgente 8bafbbaac7 Fix a few bugs 2019-10-29 12:33:32 +09:00
Mariano Sorgente b50fb9c097 Working 2019-10-26 11:13:23 +09:00
Mariano Sorgente 0fef0b933e Changed to mypy from pyright, fix tests (full node still broken) 2019-10-22 16:44:01 +09:00
Mariano Sorgente 8e99f2cad9 Fix too slow block bug 2019-10-18 14:32:50 +09:00
Mariano Sorgente b4baff9f4e Fix tests 2019-10-16 17:38:49 +09:00
Mariano Sorgente a22e606f75 Merge 2019-10-10 13:04:52 +09:00
Mariano Sorgente 397925d29e Implement new formula, and added tests 2019-10-09 16:36:58 +09:00
fchirica 52a19e7aaf Sync with master 2019-10-07 20:02:34 +03:00
Mariano Sorgente 4f89752d62 Implement difficulty adjustment 2019-09-30 22:15:32 +09:00
Mariano Sorgente b3776814fa Add tests for blockchain class 2019-09-24 17:46:03 +09:00
Mariano Sorgente 55063e0f73 New blockchain class implementation 2019-09-24 15:01:32 +09:00
Mariano Sorgente 3982bc44a9 More additions to networking 2019-09-12 13:31:49 +09:00
Mariano Sorgente 784c8b4d8a Added tests, improved serialization 2019-08-05 14:38:16 +09:00
Mariano Sorgente 6699b1f97a Initial directories 2019-07-16 17:38:31 +09:00