Commit Graph

1071 Commits

Author SHA1 Message Date
Mariano Sorgente 0da0a630ae Create plots filenames, chia keys API, and harvester reload plots fix (#243)
* Create plots filenames, chia keys API, and harvester reload plots fix
* Colon to hyphen
* Only refresh config file when reload_plots is called
* Use test root, and pass in root to wallet_node
2020-06-01 08:56:59 -07:00
Yostra 85882f06a5 Breaking changes - fix aggsig, new genesis, new protocol version (#235)
* ouch - fix aggsig merge issues
* Block tools with keychain
* Use load_plots for Prover
* New genesis
* introducer
Co-authored-by: Mariano Sorgente <sorgente711@gmail.com>
2020-06-01 08:56:59 -07:00
Yostra b964d86a5f Electron react (#226)
* clean react
* add material ui
* add word list
* mnemonic v0
* jeepney backup
* keychain usage
* wallet api
* mnemonic ui
* mnemonics redux state
* handle exceptions correctly
* dashboard
* wallets
* get puzzle hash
* tx history
* sidebar
* start stop wallet node
* use existing mnemonics
* status info
* create cc wallet
* theme should be outside of switch
* create offer
* dbus alternative for linux
* key migration
* don't autocomplete, don't reset simulator db
* reset mnemonics
* Refactor keychain, and key migration
* Implement UI for changing keys
* Removing keys and mnemonic button
* Start making farmer and harvester RPCs
* start rpx for simulator
* Harvester and farmer websocket, and basic UI
* Plot display and deletion
* launch daemon on start
* State changes from full node, harvester, farmer, and full node ui improvements
* split balances in react
* pending change balance
* plotter
* dev config
* maintain connection / retry
* Remove electron-ui, and style fixes
* Better farmer and full node control
* Remove electron ui references
* Uncomment out starting the dameon
* Remove timelord tab, and change full node style
* Clean up new wallet login
* Refactor RPCs
* Now that the GH runner uses python 3.7.7 - use for windows installer
* add balance split to coloured coin wallet
* spendable balance fix
* Import private key from UI fix
* mac build/installer

Co-authored-by: Mariano Sorgente <sorgente711@gmail.com>
Co-authored-by: Lipa Long <lipa@chia.net>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2020-06-01 08:56:59 -07:00
Richard Kiss 4e742a4a6b If `CHIA_TEST_PLOT_ROOT` is set, use that path for plots in tests. 2020-06-01 08:56:59 -07:00
Mariano Sorgente 1d21a6d777 Ms.sync full sync improvements (#218)
* Refactor blockchain.py into a few different files (difficulty_adjustment.py, block_header_validation.py)
* Faster sync pipelining of requests, and parallel verification (13 minutes to 9 minutes on 2 cores)
* Memory usage of node during sync is significantly reduced, only the latest blocks are in memory
* Networking fixes and logging levels changed
* SPECIFIC delivery which allows you to send messages to a specific node id
* Check plots acts like the normal harvester
2020-06-01 08:56:59 -07:00
Bill Blanke d29884c335 Specify secondary temporary plotting folder 2020-05-05 20:10:05 -07:00
Mariano Sorgente 1c8815ab1a
Ms.double handshake (#203)
* Fix create plot issue, do not recreate plots that exist on another drive
* Fix double harvester handshake with farmer
* Full node sends ping to wallet
* Async constructor for harvester, and instance threadpool
2020-04-30 14:02:35 +09:00
Gene Hoffman 159a09a70f
Improved blockchain database - Merge pull request #197 from Chia-Network/ms.refactor
Improved blockchain database
2020-04-29 18:36:30 -07:00
Gene Hoffman a1eb20a38c
Mempool fix - Merge pull request #200 from Chia-Network/mempool_fix
Mempool fix
2020-04-29 14:40:07 -07:00
Yostra 5ce203ee8d unique test name 2020-04-29 13:45:05 -07:00
Yostra 0f65c3ec22 mempool fix 2020-04-29 13:41:42 -07:00
Matthew Howard 4feeb0c867 -updated tests to use new format for create_offer 2020-04-29 14:29:29 +01:00
Yostra adb5708619 flake 2020-04-28 14:03:21 -07:00
Yostra a41ca36054 fix db path 2020-04-28 13:39:11 -07:00
Mariano Sorgente ca8f8e1549
Fix test teardown 2020-04-28 19:17:32 +09:00
Mariano Sorgente 2d3c85f7f3
Add genesis to DB 2020-04-28 17:19:38 +09:00
Mariano Sorgente f4d8c22f94
Store unfinished blocks on disk, tips/lca, db changes, cleanup 2020-04-28 17:09:18 +09:00
Mariano Sorgente d88fa32746
Merge branch 'beta-1.4' of github.com:Chia-Network/chia-blockchain into wallet-tests 2020-04-28 12:37:01 +09:00
Yostra a54931d735 transaction history /value 2020-04-27 18:42:08 -07:00
Mariano Sorgente d4a96d3e1b
Don't reuse public keys, generate puzzles for all wallets (#192)
* Don't reuse public keys, generate puzzles for all wallets (100)
* Use the right start and end indeces
* Handle edge case with all used entries
2020-04-27 23:40:47 +09:00
Mariano Sorgente ffd439e79b
Start refactor 2020-04-27 22:10:32 +09:00
Mariano Sorgente 31cad985a1
Remove unused file 2020-04-27 14:52:11 +09:00
Mariano Sorgente 5d7fa99a9b
Add tests for wallet store 2020-04-27 14:51:12 +09:00
Mariano Sorgente de17942892
Merge branch 'beta-1.4' of github.com:Chia-Network/chia-blockchain into wallet-tests 2020-04-27 12:47:21 +09:00
Mariano Sorgente 36caabb372
Wallet tests 2020-04-25 20:13:57 +09:00
Matthew Howard a919b824a3 -removed unused view_offer
-changed view_offer to chia from mojo
2020-04-24 11:30:59 +01:00
Yostra 16cae38b18 time out assert 2020-04-24 01:59:33 -07:00
Yostra 4533761dc3 more time 2020-04-24 00:15:32 -07:00
Yostra 156b959f86 flake 2020-04-23 22:30:37 -07:00
Yostra 3752d466e8 create offer and zero coin automatically 2020-04-23 19:54:10 -07:00
Yostra 131848fe5b merge clean 2020-04-23 15:21:57 -07:00
Yostra d180793189 use Path 2020-04-23 15:09:34 -07:00
Matthew Howard 840f4eb101 black formatting 2020-04-23 20:26:01 +01:00
Matthew Howard 0f32884320 remove breakpoint 2020-04-23 16:44:02 +01:00
Matthew Howard 2e517fdd06 -added test for multicoin and zero-val generation for offer creator 2020-04-23 16:41:57 +01:00
Matthew Howard cccf6e4226 -select_coins(0) now works 2020-04-23 14:40:25 +01:00
Matthew Howard 04ba5de65e fixed test for trades 2020-04-23 13:46:06 +01:00
Matthew Howard baf2f84025 -commented tests 2020-04-22 16:27:35 -07:00
Yostra 517a8123ce longer sleep 2020-04-22 16:27:18 -07:00
Yostra 8fe558b32a more tests, more sleep 2020-04-22 16:27:00 -07:00
Yostra 00cea61686 more cleanup 2020-04-22 16:26:53 -07:00
Yostra c662c43d0b test trade works 2020-04-22 16:26:25 -07:00
Yostra 2be0e7b9f8 uncomment tests 2020-04-22 16:23:42 -07:00
Yostra 44e604b3fe longer sleep 2020-04-22 16:21:59 -07:00
Yostra 858888d127 sleep 1 sec 2020-04-22 16:21:36 -07:00
Matthew Howard b6c6dd68f1 -add websockets for more tradeoffer funcs
-small fixes to trade offer funcs
-black formatting
2020-04-22 16:12:00 -07:00
Yostra c3bfd837f2 comment out tests, except transactions 2020-04-22 16:11:34 -07:00
Matthew Howard 7c2c5c2d0a -added the ability to fetch wallet by colour
-added test for this
-added some trade offer related functions
2020-04-22 16:05:39 -07:00
Matthew Howard cca3f05a10 -changed set_used_up_to to no longer take index
-fixed bad call in test_wallet_sync, though that test is still failing
2020-04-22 16:05:33 -07:00
Matthew Howard 12c3df3ffb -python black format
-investigating multicolour spends and parent discovery
2020-04-22 16:03:40 -07:00
Matthew Howard 2d9fd53238 generate_zero_val now works 2020-04-22 16:03:23 -07:00
Yostra f47aac8b95 fix the scenario with change 2020-04-22 16:03:15 -07:00
Yostra adda69eff7 fix test 2020-04-22 16:03:07 -07:00
Yostra 988d9935bb unlink correct path 2020-04-22 16:02:58 -07:00
Yostra 8e6662d8dc don't use random bytes for db name, unlink path for testing 2020-04-22 16:02:50 -07:00
Yostra 63b56f275b cc wallet changes 2020-04-22 16:02:42 -07:00
Matthew Howard 0bbe02ade3 -wrote test for create_zero_val 2020-04-22 15:59:58 -07:00
Matthew Howard ddc86fcdb9 - seperated made make_eve_solution its own function
- made spelling of "colour" consistent
- removed create_zero_val from create wallet
- fixed create_zero_val
2020-04-22 15:59:47 -07:00
Yostra a267068f01 coloured coins receive coin 2020-04-22 15:59:35 -07:00
Matthew Howard 38e61976f6 -added test for generation
-ported relative amount spendbundle creation for offers
-made get_innerpuz more internally consistent
2020-04-22 15:54:43 -07:00
Mariano Sorgente 2705a4e75c
Fix test 2020-04-22 16:43:30 +09:00
Mariano Sorgente f6762b80fd
New hash to prime (breaking change) (#184)
* Uses new chia-vfd (chiavdf=0.12.7)
* Migration script replaces old puzzle hashes with new ones (as long as CHIA_ROOT is not set)
* New genesis block
* Fix bug in genesis block generation
* Increment protocol version to 0.14
2020-04-22 16:24:59 +09:00
Richard Kiss 2eb4fd7b8e Squashed commit of merge conflicts. 2020-04-21 23:31:20 -07:00
Mariano Sorgente b0464096b8 More accurate space estimation, and tests 2020-04-21 23:12:13 -07:00
Mariano Sorgente 83635f7c01 Small networking fixes 2020-04-21 22:55:21 -07:00
Yostra 2d536f24ae format 2020-04-21 22:55:21 -07:00
Yostra d425a41ad8 assert fee condition 2020-04-21 22:55:21 -07:00
Yostra 299753fd22 just use new ssl 2020-04-21 22:55:21 -07:00
Yostra d0b8a852c5 use tree hash 2020-04-21 22:55:21 -07:00
Mariano Sorgente 053185265e Display best iters in UI 2020-04-21 22:38:20 -07:00
Mariano Sorgente b2d3d9353b
Fix chia init plots issue 2020-04-08 18:33:42 +09:00
Mariano Sorgente 281b65a39c
Lint and fix wallet server startup 2020-04-08 17:02:04 +09:00
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
Mariano Sorgente 02aa39a667
Fix race condition in select coins, and order coins by age 2020-04-08 15:29:34 +09:00
Yostra 43bf5e794f consider accepted if already present 2020-04-07 13:15:09 -07:00
Yostra ce4b8ce5fa fix main wallet access 2020-04-07 12:20:56 -07:00
Yostra d4fe5e5cb3 Merge branch 'beta-1.1' into beta-1.2 2020-04-07 11:40:49 -07:00
Mariano Sorgente b5ebf6c494
Refactor puzzle store, tests, generate future puzzle hashes 2020-04-07 18:17:44 +09:00
Yostra 78349723f5 test invalid filter 2020-04-06 16:07:15 -07:00
Yostra 31b835cefd clean 2020-04-06 15:26:31 -07:00
Yostra bfc7196d7f add to mempool change 2020-04-06 15:25:08 -07:00
Mariano Sorgente 2e47378ab7
Remove useless host configs. Run rpc servers not on localhost. 2020-04-05 18:08:40 +09:00
Yostra 8ebf55bff7 simplify setup 2020-04-04 14:12:03 -07:00
Mariano Sorgente b077a7a02e Fee parent val (#145)
* Add validation of parent ids for coinbase and fees, and add 1 to height for fees
* Increment protocol version
* Add 1 to fee calculation
* Fix test
2020-04-03 05:26:00 +09:00
Mariano Sorgente dc637d4ec1
Block ordering (#142)
* Look at current block additions before removals
* Fix block ordering, and change state machine of wallet node
* Fix infinite recursion
* Fix some serious bugs with wallets/coinbases/reorgs and add testing
2020-04-02 02:53:33 +09:00
Richard Kiss e9299f8f73 Move src.path to src.util.path. 2020-03-31 18:31:01 -07:00
Richard Kiss 155d14aff9 Load setproctitle as runtime. 2020-03-31 18:12:31 -07:00
Mariano Sorgente 5de840f13b
Proper reorg transaction handling, fix fork finding, wallet only connects to local node if possible (#141) 2020-03-31 22:29:58 +09:00
Mariano Sorgente 920043c1d4
Tweak block validation, rename some files, and concentrate error codes 2020-03-31 02:27:22 +09:00
Mariano Sorgente e328f01f10
Lint properly, and fix Paths 2020-03-30 18:03:03 +09:00
Will Bendick 73abc0a3fd adds argument, reformats 2020-03-29 21:37:22 -07:00
Will Bendick a1bfc21654 adds agg_sig_me condition 2020-03-29 21:36:58 -07:00
Yostra 6e01eca711 db lock issue, use one connection 2020-03-29 18:32:51 -07:00
Richard Kiss 9b0e257580 Fix tests. 2020-03-29 15:23:27 -07:00
Yostra 0ce3d411a2 increase max value 2020-03-28 01:32:49 -07:00
Yostra 708caf9f27 select coins fix 2020-03-27 14:03:48 -07:00
Richard Kiss 0df69d52b1 Use chiavdf from pypi instead of from lib. 2020-03-27 11:03:29 -07:00
Mariano Sorgente f96ae11094
Wallet fixes (#131)
* Transaction status, and fixes
* Close websocket on ConnectionCloseError, and fix wallet bug
* More validation and better error messages
* Uncomment lines
* Fix tests
2020-03-27 23:30:07 +09:00
Yostra a59f35b142 send to three different peers 2020-03-27 00:56:57 -07:00
Gene Hoffman 08c5b9fb37 Merge branch 'integration' of https://github.com/Chia-Network/chia-blockchain into integration 2020-03-25 20:38:36 -07:00
Mariano Sorgente 09b332628e Fix lint 2020-03-25 20:38:35 -07:00
Mariano Sorgente b1a0245c7e Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into integration 2020-03-25 20:37:04 -07:00
Mariano Sorgente 81f41f7764
Fix puzzle store bug, no recursive JSON, big ints as strings in JSON 2020-03-25 17:15:31 +09:00
Yostra 53385608de benchmark chia cost unit, other cost stuff 2020-03-24 23:09:31 -07:00
Mariano Sorgente d7d3be2ab7
DB path for wallet, and search block field 2020-03-25 00:50:02 +09:00
Mariano Sorgente b3040a3623
Add full node display to electron 2020-03-24 21:18:07 +09:00
Mariano Sorgente 3bb3e9e4d6
Remove inkfish, use c++ prover for tests 2020-03-23 18:57:05 +09:00
Yostra d881eafe41 format 2020-03-20 22:33:41 -07:00
Yostra 7e4bc9fae0 fix vdf 2020-03-20 22:29:39 -07:00
Mariano Sorgente 2a388d3545
Fix tests 2020-03-21 01:24:48 +09:00
Yostra c7a4764c62 multipl wallets ui 2020-03-19 22:12:49 -07:00
Yostra 23b33605f7 format 2020-03-19 22:11:54 -07:00
Yostra 6094100f6a support multiple wallets (breaking) 2020-03-19 22:10:26 -07:00
Mariano Sorgente 94ae17cbe2
Fast sync working for wallet 2020-03-19 16:32:11 +09:00
Mariano Sorgente e83aa36b44
Add cli script, remove SSH ui and dependencies 2020-03-19 15:28:17 +09:00
Mariano Sorgente 324cae8dba
Progress on fast sync 2020-03-19 14:15:06 +09:00
Mariano Sorgente 90e8287926
Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into light-verification 2020-03-18 17:18:20 +09:00
Mariano Sorgente b1778095d6
New difficulty change and min_iters change, and light header verification 2020-03-18 17:17:59 +09:00
Yostra 10f5300805 propagate mempool on connect, test 2020-03-17 12:38:36 -07:00
Yostra d935dd4ec0 fix test 2020-03-16 22:42:25 -07:00
Yostra cc02b94560 test transaction broadcast; 2020-03-16 22:22:59 -07:00
Mariano Sorgente 1601d13ce0
Header block verification 2020-03-17 13:02:57 +09:00
Mariano Sorgente 3e74649930
Fix sync test 2020-03-12 15:05:28 +09:00
Mariano Sorgente 7b00daaeb3
Fix filter test 2020-03-12 13:44:40 +09:00
Mariano Sorgente 94c6be1d04
Fix fork point issue 2020-03-12 12:42:11 +09:00
Yostra 48052db0b3 mypy formating 2020-03-11 12:41:53 -07:00
Yostra cfbfc766c9 use protocol and comment out failign test 2020-03-11 12:41:53 -07:00
Yostra 29c7fc535d clean junk 2020-03-10 13:34:43 -07:00
Yostra b93a5a33e9 reorg in wallets 2020-03-10 12:58:42 -07:00
Yostra d8211f5257 give name for logging 2020-03-10 12:54:45 -07:00
Yostra fc41b4c38e return true if already in mempool 2020-03-09 16:54:03 -07:00
Yostra 79e474b420 one is enough 2020-03-09 16:27:56 -07:00
Yostra 894b49d756 format 2020-03-09 15:38:40 -07:00
Yostra f5fa74e9fe full node simulator 2020-03-09 15:23:04 -07:00
Yostra a35a67d0a1 fix test 2020-03-09 11:26:43 -07:00
Mariano Sorgente bb3ce76d8a
More wallet protocol tests, fix bbugs 2020-03-09 22:44:01 +09:00
Mariano Sorgente 25610a8a5b
Add full node tests, fix bug in request_proof_hashes 2020-03-09 16:45:32 +09:00
Mariano Sorgente aa4f0d9795
Fix bugs with wallet node 2020-03-09 15:05:24 +09:00
Mariano Sorgente d0b80f075c
Fix tests 2020-03-09 12:36:46 +09:00
Mariano Sorgente 284faa46e8
Almost have sync working 2020-03-06 17:23:03 +09:00
Yostra 6cf2d8ca52 close/clear all dbs 2020-03-04 15:39:56 -08:00
Mariano Sorgente 95981eaafc
Redefine wallet protocol and start implementing 2020-03-04 17:53:51 +09:00
Mariano Sorgente e372d362b4
Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into integration 2020-03-02 15:17:20 +09:00
Mariano Sorgente 3b0b7dfb72
Complete removal of body 2020-03-02 15:06:03 +09:00
Yostra 7cc023dac8 find items not in mempool filter, send them, some formatting 2020-02-28 17:54:44 -08:00
Yostra 7640fb08e8 Revert "more sleep"
This reverts commit 4808776c19.
2020-02-28 17:17:03 -08:00
Yostra 4808776c19 more sleep 2020-02-28 16:56:30 -08:00
Yostra 3dd659360c log time when raising 2020-02-28 16:55:42 -08:00
Yostra abf171aa2c don't add unnecessary blocks 2020-02-27 14:29:01 -08:00
Yostra 86252ce000 test coin consumed mempool condition 2020-02-27 13:44:24 -08:00
Yostra 2787901205 formatting 2020-02-27 12:39:59 -08:00
Yostra 3b27ddaa14 use persistant storage to store derivation paths 2020-02-27 12:37:32 -08:00
Mariano Sorgente e092bba0b6
Remove unused imports 2020-02-27 11:32:03 +09:00
Mariano Sorgente 88f71f8242
Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into integration 2020-02-27 11:31:01 +09:00
Mariano Sorgente cc3b51a1a1
Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into integration 2020-02-27 11:23:03 +09:00
Yostra c94fba4100 block cost stuff 2020-02-26 17:33:25 -08:00
Yostra 89980eae9c validate roots 2020-02-26 12:03:25 -08:00
Mariano Sorgente 521c476094
Full node tests 2020-02-26 15:42:30 +09:00
Yostra d53b4c9ca8 add addition and removal root to header 2020-02-25 16:15:23 -08:00
Yostra d7558bc181 test merkle set 2020-02-25 14:13:26 -08:00
Yostra d9b2685411 correct balance lookup, streamable fix 2020-02-24 12:41:17 -08:00
Yostra c8d32a5958 fix filter test 2020-02-24 10:54:45 -08:00
Yostra 7091834176 request addition protocol 2020-02-24 10:24:54 -08:00
Yostra f02ea59d5d include filter in header data 2020-02-24 10:24:54 -08:00
Yostra 5115577da2 expose api to bip158 binding 2020-02-24 10:24:54 -08:00
Mariano Sorgente 1906f4fca9
Fix test 2020-02-24 19:25:39 +09:00
Mariano Sorgente c90aa0984d
More full node tests 2020-02-24 17:14:48 +09:00
Mariano Sorgente 4b98c3706d
Continue full node tests 2020-02-24 14:40:36 +09:00
Yostra abbb85c350 wallet tools cache hack 2020-02-17 16:08:09 -08:00
Mariano Sorgente 3250f1f050
Start full node tests 2020-02-17 11:26:20 -08:00
Mariano Sorgente 386f29bce0
Full node tests 2020-02-14 12:48:41 -08:00
Mariano Sorgente 65d789a999
Hashing issue 2020-02-14 11:48:22 -08:00
Mariano Sorgente b92e7bb527
Merge latest changes 2020-02-14 10:23:23 -08:00
Mariano Sorgente 8440c128e6
Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into integration 2020-02-14 10:04:12 -08:00
Mariano Sorgente 179ccbb1b7
New full node protocol 2020-02-14 10:03:56 -08:00
Yostra 2267b8b007 more wallet stuff 2020-02-13 17:18:11 -08:00
Yostra 2480c92d75 confimed balance 2020-02-13 12:59:03 -08:00
Yostra f6032a158f close 2020-02-13 12:37:09 -08:00
Yostra ae1b07eec0 reformat 2020-02-13 12:15:36 -08:00
Yostra f9927e9a19 wallet stuff 2020-02-11 17:01:39 -08:00
Yostra 644f723e73 wallet protocol stubs 2020-02-11 13:00:41 -08:00
Mariano Sorgente 3baab5c6a7
Rearrange methods in blockchain.py 2020-02-11 10:37:43 -05:00
Mariano Sorgente 48901a02a7
Use standard hash everywhere 2020-02-10 19:07:20 -05:00
Mariano Sorgente 83ff47bb58
Don't await vdf server processes 2020-02-10 18:59:13 -05:00
Mariano Sorgente dd4126d1bf
Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into integration 2020-02-10 18:39:31 -05:00
Mariano Sorgente 1c0f7fee49
All ints in quality calculation, quality to quality string 2020-02-10 18:39:03 -05:00
Yostra 587c975d1d test assert time passed conditions 2020-02-10 12:19:16 -08:00
Yostra 733fa830bb test block age exceeds transaction 2020-02-10 12:05:50 -08:00
Yostra d57c0eb8a6 test assert block index excdeeds condiiton 2020-02-10 11:58:41 -08:00
Yostra ba5d4cdd07 tests assert coin consumed 2020-02-10 11:22:48 -08:00
Yostra e82ba315e6 test assert my coin id 2020-02-10 11:01:35 -08:00
Mariano Sorgente 25df8fe8df
Merge, lint 2020-02-10 12:25:28 -05:00
Mariano Sorgente 41bc8b0798
Fix timelord asyncio bug 2020-02-10 12:08:58 -05:00
Mariano Sorgente 7777661f5e
Peer protocol to full node protocol, and too many open plots no crash 2020-02-08 16:21:03 -05:00
Yostra 6b34bede0a refactor coin records 2020-02-08 02:23:58 -08:00
Yostra dd175c95e2 refactor condition tools 2020-02-08 02:21:45 -08:00
Mariano Sorgente 257e314077
Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into integration 2020-02-07 23:29:25 -05:00
Mariano Sorgente bef0209e52
Fix ui and RPC 2020-02-07 23:25:26 -05:00
Yostra 9aab599fc4 refactor farming_tools 2020-02-07 17:49:30 -08:00
Yostra 8c505c6802 refactor mempool, mempoolmanager 2020-02-07 16:51:09 -08:00
Yostra 0d7ef3f5ec remove transaction type 2020-02-07 16:42:38 -08:00
Yostra 0943af63bb move std hash to util 2020-02-07 16:42:37 -08:00
Mariano Sorgente ca14e9ed18
New objects 2020-02-07 18:18:25 -05:00
Mariano Sorgente 3542dcd273
Close down VDF server after handling requrest 2020-02-07 10:32:36 -05:00
Mariano Sorgente 1116329fd0
Reduce number of test plots 2020-02-07 10:16:45 -05:00
Mariano Sorgente 40c751ba72
Try to fix server 2020-02-07 01:08:17 -05:00
Mariano Sorgente 893e2198fd
Fix error in VDF server 2020-02-06 19:56:00 -05:00
Mariano Sorgente a04282a916
Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into new-protocol 2020-02-06 19:18:52 -05:00
Mariano Sorgente 31465b0269
Simulation test, vdf with variable discriminant size, farmer puzzle ahsh 2020-02-06 19:01:18 -05:00
Yostra 696345538c calculate block/base fee 2020-02-06 15:20:42 -08:00
Yostra 4d75599cb2 don't use programhash 2020-02-06 14:02:58 -08:00
Yostra 8a7e7015f3 rename unspent to CoinRecord 2020-02-06 12:42:09 -08:00
Mariano Sorgente 264bf5e485
Use pathlib.Path instead of os.path 2020-02-06 11:02:27 -05:00
Mariano Sorgente bda8f0e75e
Allow bytes in streamable 2020-02-06 10:12:33 -05:00
Mariano Sorgente 96f2e25867
Merge 2020-02-06 07:59:00 +09:00
Mariano Sorgente 52b42ecc88
Move height to header, and get everything running 2020-02-06 00:21:48 +09:00
Mariano Sorgente b6e2f2f5d3
Make tests pass 2020-02-05 22:33:03 +09:00
Mariano Sorgente 70c93ebe66
Merge branch 'db_headers' into integration 2020-02-05 21:07:18 +09:00
Mariano Sorgente 5468c25a09
Db headers, locks, pos dirs, and config (#88)
* New database table to store headers
* Loading blockchain only loads headers into memory instead of header blocks (header + proofs), speeds up the startup, and reduces normal operation memory usage by 80%
* Fix deadlock issues with store class
* Make memory store access synchronous, to reduce use of locks, this improves performance of block and unfinished block processing
* Remove locks from reads of DB, only lock for writes
* Cleaner configuration system with argparse
* Log to file by default, configurable to stdout
* Proof of space binary and create_plots scripts allow passing in temp and final directories
2020-02-05 09:42:57 +09:00
Yostra 73acc5a682 test blockchain for double spends and double output 2020-02-04 14:50:02 -08:00
Yostra 2589d1aa9c close stores everywhere 2020-02-04 13:54:20 -08:00
Yostra e0faa7c2e8 close all stores 2020-02-04 12:32:11 -08:00
Yostra 1cb46b2d6a close store 2020-02-04 11:39:49 -08:00
Yostra 7ed451836d clean, mypy, flake8 2020-02-04 11:39:49 -08:00
Yostra 5755909c5f fix some mypy errors 2020-02-04 11:39:49 -08:00
Yostra 807ad97f2a fix imports 2020-02-04 11:39:49 -08:00
Yostra aad7b4e908 cleaner way to find fork 2020-02-04 11:39:49 -08:00
Yostra 374d82df8a add test for blockchain 2020-02-04 11:39:49 -08:00
Yostra 82a611aad6 add option to mine transaction in blocktools 2020-02-04 11:39:49 -08:00
Yostra 6d0ba89dd4 use run_program 2020-02-04 11:39:49 -08:00
Yostra 74a4e8bb2a coinbase freeze 2020-02-04 11:39:49 -08:00
Yostra a7e3e4d700 typo 2020-02-04 11:39:49 -08:00
Yostra 3df867c5f6 check time exceeds for mempool 2020-02-04 11:39:49 -08:00
Yostra ccb7da08da mutable default arg 2020-02-04 11:39:49 -08:00
Yostra ecf25368ba test my id 2020-02-04 11:39:49 -08:00
Yostra f840e0d978 test block age exceeds 2020-02-04 11:39:49 -08:00
Yostra 9427152a58 index exceeds mempool test 2020-02-04 11:39:49 -08:00
Yostra 57632c9877 fix issues 2020-02-04 11:39:49 -08:00
Yostra cc796768aa changes 2020-02-04 11:39:49 -08:00
Yostra bb09b90c28 test higher fee per cost 2020-02-04 11:39:49 -08:00
Yostra a1f5cbaab0 wallet tools 2020-02-04 11:39:49 -08:00
Yostra d2e8c4e649 clear stores 2020-02-04 11:39:49 -08:00
Yostra f2085df1ea fix import 2020-02-04 11:39:49 -08:00
Yostra 6cc94c32f7 temporarily enable log 2020-02-04 11:39:49 -08:00
Yostra f3a6fd065d mempool tests 2020-02-04 11:39:49 -08:00
Yostra b7bff1585d enable passign puzzlehash for rewards 2020-02-04 11:39:49 -08:00
Yostra 677239a979 name a server 2020-02-04 11:39:49 -08:00
Yostra 5ea2599264 bugs 2020-02-04 11:39:49 -08:00
Yostra 81a91fe287 give fullnodes different names 2020-02-04 11:39:49 -08:00
Yostra 47665886e4 correct coinbase reward / fee reward 2020-02-04 11:39:48 -08:00
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