Commit Graph

1071 Commits

Author SHA1 Message Date
Mariano Sorgente 4fc8e4e0b3 ensure_future -> create_task, and full mempool test 2021-01-12 17:00:52 -05:00
Mariano Sorgente 9fff8e54e9 More node tests 2021-01-12 17:00:52 -05:00
Mariano Sorgente 6d8c8be087 Separate out timelord api 2021-01-12 17:00:52 -05:00
almog 45942160e3 correct end of sub epoch, bad vdfs 2021-01-12 17:00:52 -05:00
almog e990b8e264 find last ses in recent reward chain 2021-01-12 17:00:52 -05:00
almog 4dd437d443 find last ses in recent reward chain 2021-01-12 17:00:52 -05:00
Mariano Sorgente 6135a6ab77 More tests 2021-01-12 17:00:52 -05:00
Mariano Sorgente 4e0f9df075 More testing and networking fixes 2021-01-12 17:00:52 -05:00
Mariano Sorgente a501f2adff Factor out waiting for a specific response 2021-01-12 17:00:52 -05:00
Mariano Sorgente 4c575638a8 Renamings and networking fixes 2021-01-12 17:00:52 -05:00
Mariano Sorgente ab8e36e310 Allow launching service without connecting to daemon 2021-01-12 17:00:52 -05:00
almog 542c3004e3 change test params 2021-01-12 17:00:52 -05:00
almog c096e1416d change test params 2021-01-12 17:00:52 -05:00
almog e5cdbe0a9c fix bug in make_weight_proof 2021-01-12 17:00:52 -05:00
almog 47778a3ec8 weight_proofs, bug fixes, unit testing 2021-01-12 17:00:52 -05:00
almog ac8eaf70fc validate summaries, test fails 2021-01-12 17:00:52 -05:00
almog 501e90a4cd change to 400 blockchain 2021-01-12 17:00:52 -05:00
almog 357ee54886 test map_summaries 2021-01-12 17:00:52 -05:00
Mariano Sorgente b27ba1a49b More testing 2021-01-12 17:00:52 -05:00
Mariano Sorgente 273fe0355b Basic full node networking tests 2021-01-12 17:00:52 -05:00
Mariano Sorgente e1c1f6c341 Basic test to add blocks to node 2021-01-12 17:00:52 -05:00
Mariano Sorgente e874c73529 Infusion point tests 2021-01-12 17:00:52 -05:00
Mariano Sorgente 8a769ed9cb Start working on new infusion point cache 2021-01-12 17:00:52 -05:00
almog 3533b1787b fix start difficulty in test 2021-01-12 17:00:52 -05:00
almog f05e1a421a weight_proof.py tests, bug fixes, find last ses by weight 2021-01-12 17:00:52 -05:00
almog 6e9166b20c weight_proof.py tests, bug fixes 2021-01-12 17:00:52 -05:00
Mariano Sorgente 62628b3086 More test for full node store, and bug fixes 2021-01-12 17:00:52 -05:00
Mariano Sorgente 7d4c844455 Make blocks smaller by removing vdf input 2021-01-12 17:00:52 -05:00
Mariano Sorgente 883aea234c Basic full node store tests passing 2021-01-12 17:00:52 -05:00
almog 0d5c22516f dont validate blocks for weight proof tests 2021-01-12 17:00:52 -05:00
Yostra 936420f718 all tests 2021-01-12 17:00:52 -05:00
Yostra ed08e25655 flake8 tests 2021-01-12 17:00:52 -05:00
Yostra 11e59b085a fix all 2021-01-12 17:00:52 -05:00
Yostra 858d12b6a2 more tests 2021-01-12 17:00:52 -05:00
Yostra cdafa1d3e7 full node send_all_first_reply 2021-01-12 17:00:52 -05:00
Yostra ba021fcbfa setup nodes 2021-01-12 17:00:52 -05:00
Yostra de7d49fb5a stash 2021-01-12 17:00:52 -05:00
Yostra 99fa3af1a3 full node 2021-01-12 17:00:52 -05:00
Yostra db1cdf5056 more tests 2021-01-12 17:00:52 -05:00
Yostra f9319a1669 full node checkpoint 2021-01-12 17:00:52 -05:00
Yostra 6a3eafbda1 cc tests 2021-01-12 17:00:52 -05:00
Yostra f9901dabbe rl tests 2021-01-12 17:00:52 -05:00
Yostra afb83e7923 rpcs 2021-01-12 17:00:52 -05:00
Yostra c874bf3ad2 add wallet tests 2021-01-12 17:00:52 -05:00
Yostra 8a9518a320 test_wallet & peer discovery 2021-01-12 17:00:52 -05:00
Yostra 7c079cf143 networking 2021-01-12 17:00:52 -05:00
Mariano Sorgente ea52b71ff5 Fix test 2021-01-12 17:00:52 -05:00
Mariano Sorgente 0cf7eb7850 Fix issues with empty slots after epochs 2021-01-12 17:00:52 -05:00
almog eb1cddbee4 failing to validate 1000 block chain 2021-01-12 17:00:52 -05:00
almog 651e0997fd try load test blocks from disc 2021-01-12 17:00:52 -05:00
almog 500fcc486f make proof sanity, small merge fixes 2021-01-12 17:00:52 -05:00
Mariano Sorgente 66b06a6d1c Rename fields and fix iterations bug 2021-01-12 17:00:52 -05:00
almog 63e3b85fae weight proof, refactor, bigger chain for tests, logs 2021-01-12 17:00:52 -05:00
almog 1023e38331 create persistent test database copy 2021-01-12 17:00:52 -05:00
almog 44fa74c6d1 refactor finishes_sub_epoch 2021-01-12 17:00:52 -05:00
Mariano Sorgente 2d63bbbfa5 Fix long range reorg bug 2021-01-12 17:00:52 -05:00
Mariano Sorgente e9d2b1f761 IPS-> slot iters. Faster tests 2021-01-12 17:00:52 -05:00
Mariano Sorgente ad2cffd0c4 Add reorg tests and fix reorg bug 2021-01-12 17:00:52 -05:00
Mariano Sorgente bd66feb9ec More updates to farming, and fix memory leak 2021-01-12 17:00:52 -05:00
Mariano Sorgente 516d87bc16 More blockchain tests 2021-01-12 17:00:52 -05:00
Yostra bdb0a3d88f some after rebase cleanup 2021-01-12 17:00:52 -05:00
Mariano Sorgente 0c6e0f6d2c More testing 2021-01-12 17:00:52 -05:00
Mariano Sorgente 069535e52e More difficulty fixes and tests 2021-01-12 17:00:52 -05:00
Mariano Sorgente 3f064e529c Fix difficulty adjustment bug 2021-01-12 17:00:52 -05:00
Mariano Sorgente cf84a9f339 Fix genesis bad signage point rc 2021-01-12 17:00:52 -05:00
Mariano Sorgente d90d76446b Reorganize and refactor. Tests passing 2021-01-12 17:00:52 -05:00
Mariano Sorgente bf012e4eea Fixes to cc VDF and tests 2021-01-12 17:00:51 -05:00
almog 07bd1005d1 combine proofs by sub_slot, more validation logic 2021-01-12 17:00:51 -05:00
almog eafdf665da make_weight_proof fixes
tests
2021-01-12 17:00:51 -05:00
almog 1e8cab6fbc more validate_weight 2021-01-12 17:00:51 -05:00
Mariano Sorgente a55649847f Switch to signage point based iters 2021-01-12 17:00:51 -05:00
Mariano Sorgente e9f6ce4a74 More tests 2021-01-12 17:00:51 -05:00
Mariano Sorgente 0fe16fd007 Coin store tests 2021-01-12 17:00:51 -05:00
Mariano Sorgente 0bd26de3cf Update block store tests 2021-01-12 17:00:51 -05:00
almog 7a8981b637 refactor weight proof 2021-01-12 17:00:51 -05:00
almog 8d786007c8 start weight proof tests 2021-01-12 17:00:51 -05:00
Mariano Sorgente 026c4006fb More full node protocol, and difficulty fixes 2021-01-12 17:00:51 -05:00
Mariano Sorgente b1df2c7f1a Overflow blocks tests 2021-01-12 17:00:51 -05:00
Mariano Sorgente 91db5efd1d Fix empty slots issue 2021-01-12 17:00:51 -05:00
Mariano Sorgente 351b09ed23 Fix empty sub slots 2021-01-12 17:00:51 -05:00
Mariano Sorgente d5143625ff Some reorganization, full node stuff, and timelord protoc9ol 2021-01-12 17:00:51 -05:00
Mariano Sorgente cf46fb8406 Fix block tools icc issue 2021-01-12 17:00:51 -05:00
Mariano Sorgente 230ff44a4c Update timelord protocol 2021-01-12 17:00:51 -05:00
Mariano Sorgente 1f0952f848 Major progress on full node and store 2021-01-12 17:00:51 -05:00
Mariano Sorgente 2883e9942c Extract block creation 2021-01-12 17:00:51 -05:00
Mariano Sorgente b203baa2bc Fix new sub-epoch 2021-01-12 17:00:51 -05:00
Mariano Sorgente 292da475f2 Overflow sub-blocks in new sub-epoch 2021-01-12 17:00:51 -05:00
Mariano Sorgente b465b7a7cd Correct vdf for overflow 2021-01-12 17:00:51 -05:00
Mariano Sorgente dcd61d0102 Overflow blocks created 2021-01-12 17:00:51 -05:00
Mariano Sorgente 0c506abfd2 500 blocks 2021-01-12 17:00:51 -05:00
Mariano Sorgente e463782b6f Difficulty adjustment fix 2021-01-12 17:00:51 -05:00
Mariano Sorgente 88e49d6230 First sub-epoch passingh 2021-01-12 17:00:51 -05:00
Mariano Sorgente 35c01bf6b0 Fix typo 2021-01-12 17:00:51 -05:00
Mariano Sorgente 5da9dfd1ed Change to slot sub_slot 2021-01-12 17:00:51 -05:00
Mariano Sorgente aaeb726920 Remove logging 2021-01-12 17:00:51 -05:00
Mariano Sorgente 107a32077f Some vdf fixes 2021-01-12 17:00:51 -05:00
Mariano Sorgente 37308390e7 3 blocks added 2021-01-12 17:00:51 -05:00
Mariano Sorgente 0e3e12fafa Get second block added to chain 2021-01-12 17:00:51 -05:00
Mariano Sorgente 5dd586f1e6 Fix signage point validation bug 2021-01-12 17:00:51 -05:00
almog 5397a076ac more block_tools.py logic
refactor to smaller pices
2021-01-12 17:00:51 -05:00
Mariano Sorgente 5f6454927b Logic for get consecutive blocks 2021-01-12 17:00:51 -05:00
Mariano Sorgente 91775e914c Factor out block within block tools 2021-01-12 17:00:51 -05:00
almog 352369b4f4 block_tools.py refactor
test chain with 2 blocks
2021-01-12 17:00:51 -05:00
Mariano Sorgente d5de16843e Recursive replace test utility 2021-01-12 17:00:51 -05:00
Mariano Sorgente 476304b43b Simplify tests 2021-01-12 17:00:51 -05:00
Mariano Sorgente 4a14bde38d More genesis tests 2021-01-12 17:00:51 -05:00
Mariano Sorgente 2ae7960ff0 Overflow genesis block 2021-01-12 17:00:51 -05:00
Mariano Sorgente b0b7b4ee79 Genesis block validated successfully 2021-01-12 17:00:51 -05:00
Mariano Sorgente a81282e2b7 Fix reward claim validation 2021-01-12 17:00:51 -05:00
Mariano Sorgente e1877620f5 Fix VDF verification 2021-01-12 17:00:51 -05:00
almog b040990331 add test get_vdf_info_and_proof (fails)
fix genesis block filter in block_tools.py
2021-01-12 17:00:51 -05:00
Mariano Sorgente 6d8e0e0473 More progress on validation 2021-01-12 17:00:51 -05:00
Mariano Sorgente 04dee699a5 Progress on adding genesis block 2021-01-12 17:00:51 -05:00
Mariano Sorgente 42b6912829 Block store tests 2021-01-12 17:00:51 -05:00
Mariano Sorgente 8511f4d644 Almost have block_store tests running 2021-01-12 17:00:51 -05:00
Mariano Sorgente ec76b746de Start making changes to update tests 2021-01-12 17:00:51 -05:00
Mariano Sorgente d5d14f807a ICP -> SP 2021-01-12 17:00:51 -05:00
Mariano Sorgente f7d0aa3213 refactor difficulty adjustment and ips 2021-01-12 17:00:51 -05:00
Gene Hoffman b7e9f53e39 Fix MD lint, more missing imports, more black 2021-01-12 17:00:50 -05:00
Gene Hoffman ac28327101 Fix some low hanging LGTM - Black. Stay out of the way... 2021-01-12 17:00:50 -05:00
Mariano Sorgente 26ed01c4ab Start work on full node 2021-01-12 17:00:50 -05:00
Mariano Sorgente 4a894175ff Simplified mempool 2021-01-12 17:00:50 -05:00
Mariano Sorgente 218985b40f New farmer protocol and harvester 2021-01-12 17:00:50 -05:00
Mariano Sorgente 1228ecf77b Add test for iters 2021-01-12 17:00:50 -05:00
Mariano Sorgente c83f2907d9 change some test constants 2021-01-12 17:00:50 -05:00
Mariano Sorgente 453e87441b Simplify blockchain class and full node stores 2021-01-12 17:00:50 -05:00
Bill Blanke 22072e3b6e fix test 2021-01-12 17:00:50 -05:00
Will Bendick 511e99835f updates taproot to use AGGSIGME 2021-01-12 17:00:49 -05:00
Will Bendick 3d2c44fb50 fixes aggsig test in mempool 2021-01-12 17:00:49 -05:00
Will Bendick 8791c93b04 uses taproot for standard transactions 2021-01-12 17:00:49 -05:00
Richard Kiss 71ed6e6c75 Use `Program.to` instead of `Program`. 2021-01-12 17:00:49 -05:00
Matthew Howard 5f537c62e7 appeased superlinter black requests 2021-01-12 17:00:49 -05:00
Matthew Howard fe6a830c98 fixed aggsig_me bug in wallet_tool 2021-01-12 17:00:49 -05:00
Will Bendick 5bc7bffa69 rate limited chialisp update (#482)
* adds chialisp generator

* updates WHOLE_PUZZLE_WITH_CLAWBACK

* updates CLAWBACK

* updates WHOLE_PUZZLE

* updates AGGSIG_ENTIRE_SOLUTION

* fixes indentation

* updates MODE_TWO

* updates CREATE_LOCK

* updates MODE_TWO_ME_STRING

* updates CREATE_CONSOLIDATED

* updates TEMPLATE_SINGLETON_RL_2

* fixes args calculation bug

* updates TEMPLATE_MY_PARENT_ID_2

* updates RATE_LIMIT_PUZZLE

* updates CREATE_NEW_COIN

* updates CREATE_CHANGE

* updates TEMPLATE_MY_ID

* updates TEMPLATE_BLOCK_AGE

* updates TEMPLATE_MY_PARENT_RL

* updates TEMPLATE_MY_PARENT_ID

* fixes lint

* updates rl_make_aggregation_solution

* updates make_clawback_solution

* updates rl_make_solution_mode_2

* updates solution_for_rl

* updates rl_make_aggregation_puzzle

* fixes typo

* adds negative tests
2021-01-12 17:00:49 -05:00
Richard Kiss 46cce43474 Use `service_kwargs_for_wallet`. 2020-10-13 14:40:12 -07:00
Richard Kiss 421b8e1987 Some minor bug fixes. Make `bt.config` return a deep copy. 2020-10-13 13:48:14 -07:00
Richard Kiss f333def7dd Use `service_kwargs_for_full_node(_simulator)?`. 2020-10-12 17:46:40 -07:00
Richard Kiss 589d7a0621 Use `service_kwargs_for_farmer`. 2020-10-12 16:05:20 -07:00
Richard Kiss 9c6f00c3d7 Use `service_kwargs_for_[timelord|introducer]`. 2020-10-12 15:28:17 -07:00
Richard Kiss f5ff886df4 Test `service_kwargs_for_harvester`. 2020-10-12 11:54:32 -07:00
Richard Kiss 7bbf64fa18 Greatly simplify `Service`. 2020-10-09 15:56:52 -07:00
Richard Kiss c91d75058b Simplify RPC tests. 2020-10-09 11:17:10 -07:00
Richard Kiss b3cfc18765 Use config file rather than "127.0.0.1". 2020-10-09 09:22:47 -07:00
Richard Kiss ef5b8b8dab Refactor some `ConsensusConstants` stuff. 2020-10-08 15:57:50 -07:00
Richard Kiss 0749337358 Simplify an RPC test. 2020-10-08 13:31:39 -07:00
fchirica 1dd49d5bce Fix test. 2020-10-06 14:47:31 -07:00
Richard Kiss 117e08bc03 Remove many references to `get_pool_wallet_tool`. 2020-10-02 18:06:44 -07:00
Richard Kiss 72f1012adc Remove more `WalletTool` references. 2020-10-01 18:15:51 -07:00
Richard Kiss 075cea3217 Remove many `WalletTool` references. 2020-10-01 17:28:18 -07:00
Richard Kiss f42b64fb98 Don't use dummy wallet. 2020-10-01 15:09:28 -07:00
Richard Kiss d4d32c3ab1 Improve p2_delegated_puzzle_or_hidden_puzzle. 2020-10-01 15:09:28 -07:00
Gene Hoffman 81f26ca38b Fix LGTM, update CHANGELOG 2020-10-01 11:07:12 -07:00
fchirica 62dbbf7f81 Try to fix simulation test. 2020-10-01 11:07:12 -07:00
fchirica afaf077529 Lint, increase timeouts. 2020-10-01 11:07:12 -07:00
Mariano Sorgente d4051b72b9 Ms.fixtest (#432)
* New chiapos API

* Fix flake

* Move to chiapos 0.12.30 to fix segfaults

* Black

* change stripe size to 2000

* chiavdf to 0.12.25

* Revert "chiavdf to 0.12.25"

This reverts commit f7f596ce16425c8bc61af43387d6e64023d2ef5e.
chiavdf has a timelord compile error on MacOS.

* Increase default -b

* Plotter GUI test

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Yostra <straya@chia.net>
2020-10-01 11:07:12 -07:00
Mariano Sorgente 13b634249a Ms.plottest (#431)
* Fix harvester test
2020-10-01 11:07:12 -07:00
Will Bendick 54a4fcd6d1 fixes tests 2020-10-01 11:07:12 -07:00
Will Bendick 9070f26717 fixes lint 2020-10-01 11:07:12 -07:00
Will Bendick 38d3fcb75e adds fees to send_clawback_transaction 2020-10-01 11:07:12 -07:00
Will Bendick 8d50da67ec adds fees to add_rate_limited_funds 2020-10-01 11:07:12 -07:00
Will Bendick 4d2f3e2597 adds fees to rate limited wallet transactions 2020-10-01 11:07:12 -07:00
Will Bendick 4710409529 adds fee to admin wallet creation 2020-10-01 11:07:12 -07:00
Richard Kiss b3e157e8ca Don't use `Wallet.wallet_info` because it's private. 2020-10-01 11:07:12 -07:00
Florin Chirica 5b17e1cf23 Peer gossip. (#414)
* Initial commit.

* mypy

* Fix start service logic.

* Fix AddressManager tests.

* Experimentally increase timeout.

* Attempt to fix test.

* Flake8 typo

* Print traceback for CI build.

* Revert exception catching to gain more logs.

* Add serialization.

* Try to hack simulation test.

* Add debug info. Connect peers more often.

* Try to fix full node gossip.

* Remove introducer protocol from full node.

* Update request_peers test.

* Flake8 the test.

* Add sqlite.

* Address some review comments.

* Try to remove Peers() everywhere but introducer.

* flake8

* More linting.

* Limit other types of inbound connections.

* Initial commit new code.

* AddressManager tests working.

* flake8, mypy, some tests.

* More flake8.

* Tweak gossip protocol.

* Catch more connection failures.

* First attempt wallet gossip.

* Add wallet gossip test.

* Add back global signal handler.

* Resolve some SuperLinter issues.

* Fix some bugs.

* More linting.

* Lint.

* Attempt to improve network connectivity.

* Small fixes.

* Lint.

* Lint.

* Checkpoint address relay.

* Some fixes.

* Fix db path.

* Lint.

* Small fixes.

* Fix bugs.

* flake8, improve speed test simulation.

* py.black

* LGTM, other small fixes.

* Don't self connect.

* py.black

* Punish self connections even more.

* One more attempt to fix self connection.

* Don't connect to the introducer if I have all peers.

* Catch bugs.

* Fix typo.

* Type checking.

* Lint, catch timestamp bug.
2020-10-01 11:07:12 -07:00
Will Bendick f83e256a14 fixes lint 2020-10-01 11:07:12 -07:00
Will Bendick 3bfe892a30 fixes rebase 2020-10-01 11:07:12 -07:00
Will Bendick ebde6e8467 fixes lint 2020-10-01 11:07:12 -07:00
Will Bendick dedf422a76 cleanup 2020-10-01 11:07:12 -07:00
Yostra afbec4160f make agg work 2020-10-01 11:07:12 -07:00
Will Bendick 7ce1e44654 incomplete coinagg 2020-10-01 11:07:12 -07:00
Yostra 438a4a121c black tests 2020-10-01 11:07:12 -07:00
Yostra e2ac44d017 fix multi receive, add multi send 2020-10-01 11:07:12 -07:00
Richard Kiss a57db60697 Fix tests. 2020-10-01 11:07:12 -07:00
Richard Kiss 8505550be5 More wallet simplifications. Placeholder for looking up
secret key by public key.
2020-10-01 11:07:12 -07:00
Richard Kiss 431ab0bf70 Use `Program` instead of `src.util.clvm`. 2020-10-01 11:07:12 -07:00
Yostra f1295bf82c save block timestamp 2020-10-01 11:07:12 -07:00
Gene Hoffman 4107cbebe0 black tests/ 2020-10-01 11:07:12 -07:00
Mariano Sorgente 6f183f7eee Improve wallet sync performance 2020-10-01 11:07:12 -07:00
Mariano Sorgente 966b5bb989 Reformat using python black 2020-10-01 11:07:12 -07:00
Mariano Sorgente 7f5868a590 Fix RL test 2020-10-01 11:07:12 -07:00
Mariano Sorgente be7267021d Fix Block.js bug and slow RL wallet bug 2020-10-01 11:07:12 -07:00
Mariano Sorgente eff85763f7 Fix tests and start with chia wallet 2020-10-01 11:07:12 -07:00
Mariano Sorgente fa2fea9d79 Finish wallet rpc tests 2020-10-01 11:07:12 -07:00
Mariano Sorgente 97cbadc51f More refactoring of rpcs and wallet 2020-10-01 11:07:12 -07:00
Mariano Sorgente 08ac82001c Refactor RPCs 2020-10-01 11:07:12 -07:00
Mariano Sorgente 5303db737b Test passing 2020-10-01 11:07:12 -07:00
Mariano Sorgente b791bf1da8 Cleaner send_transaction flow and more wallet rpc testing 2020-10-01 11:07:12 -07:00
Mariano Sorgente 9ed6949099 More test 2020-10-01 11:07:12 -07:00
Gene Hoffman 8168aeda9a Breaking changes to prepare for peer gossip later (#401)
* Initial commit breaking changes.

* Import some missing types.

* mypy.

* Lint.

Co-authored-by: fchirica <fchirica96@gmail.com>
2020-09-14 15:38:55 -07:00
Richard Kiss 1fd67f9605 Simplify `tests/keys.py`. 2020-09-14 15:38:55 -07:00
Yostra 0f44dc5cff lint 2020-09-14 15:38:55 -07:00
Yostra d37a8978ce don't run in tests 2020-09-14 15:38:55 -07:00
Richard Kiss 6a85d353f7 Fix some lint problems by reformatting with `black`. 2020-09-14 15:38:55 -07:00
Matthew Howard 6e34096e10 fixed the final test 2020-09-14 15:38:55 -07:00
Matthew Howard a47649354a fix one of the tests values 2020-09-14 15:38:55 -07:00
Matthew Howard 958c597043 fixed bug where different colours were overwriting eachother in trade response 2020-09-14 15:38:55 -07:00
Yostra e1b89617e2 correct wallet id 2020-09-14 15:38:55 -07:00
Matthew Howard db5b9a9a6f added a new test which is analagous to the first test before 2020-09-14 15:38:55 -07:00
Matthew Howard 9682025a21 pass first test 2020-09-14 15:38:55 -07:00
Matthew Howard 3e4d3b8bd8 Development on trade update (not working) 2020-09-14 15:38:55 -07:00
Matthew Howard 0882821c4c first pass at updating cc_wallet
trades do not work
2020-09-14 15:38:55 -07:00
Gene Hoffman 57c5e19353 Move to Super Linter 3.9.2 - now lint Black, flake8, mypy (#390)
* Try Super Linter at 3.9.0 and add linters

* 3.9.1 and set validate all to false

* Back to 3.9.1 and use only true VALIDATE_

* Place superlint in debug mode

* Try fix from 3.9.2

* black source. Start fixing flake8 issues

* Black tests, out of debug

* Black setup.py do to merge conflict
2020-09-14 15:38:55 -07:00
Mariano Sorgente 429d7874a0 Fix lint, and catch harvester drive access failure 2020-09-14 15:38:55 -07:00
Will Bendick dcb38e8897 fixes lint 2020-09-14 15:38:55 -07:00
Will Bendick f4a8ee98c1 fixes clawback rpc 2020-09-14 15:38:55 -07:00
Will Bendick 069497f113 adds clawback tests 2020-09-14 15:38:55 -07:00
Richard Kiss fc36f8a4da A couple more refactor tweaks. 2020-09-14 15:38:55 -07:00
Richard Kiss bdddbefe70 Massively change clvm for cc wallet. 2020-09-14 15:38:55 -07:00
Mariano Sorgente 774307dce1 Changes for bls 0.2.3 (#354)
* Start of changes for bls 0.2.3
* Make remaining changes for new blspy
* Add migration for 1.0b9
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2020-08-18 10:59:45 -07:00
Will Bendick 0623c420f3 fixes test 2020-08-18 10:59:45 -07:00
Yostra 9667e1c783 cleanup 2020-08-18 10:59:45 -07:00
Will Bendick 5db837c06b removes broken test for incomplete clawback implementation 2020-08-18 10:59:45 -07:00
Will Bendick 472ae48e5f merge 2020-08-18 10:59:45 -07:00
Yostra bd47491903 comment last line 2020-08-18 10:59:45 -07:00
Yostra 506beae9bd fix tests 2020-08-18 10:59:45 -07:00
Yostra 7cf822864d rl changes 2020-08-18 10:59:45 -07:00
Will Bendick 05036950ad adds zero fee to test 2020-08-18 10:59:45 -07:00
Will Bendick 1728565a31 implements get_wallet_balance method rpc for rate limited wallet 2020-08-18 10:59:45 -07:00
Will Bendick c86ee0f5a5 adds test for receving coin from rl wallet 2020-08-18 10:59:45 -07:00
Will Bendick 0c2d22ccc4 fixes api to use strings instead of bytes 2020-08-18 10:59:45 -07:00
Will Bendick 54802d6971 fixes bug in rl_set_user_info expecting a Coin instead of a json dict 2020-08-18 10:59:45 -07:00
Will Bendick 4066cb7a73 finishes send transaction rpc api for rate limited wallet 2020-08-18 10:59:45 -07:00
Yostra aaa44e8a92 fix test 2020-08-18 10:59:45 -07:00
Will Bendick fa27a5d780 adds rpc tests 2020-08-18 10:59:45 -07:00
Yostra f05fd1d20c already a tx_record 2020-08-18 10:59:45 -07:00
Yostra 24bd21985f format 2020-08-18 10:59:45 -07:00
Yostra 5d53bd25d7 clean spend/sign; expose bug in clvm puzzle 2020-08-18 10:59:45 -07:00
Yostra 5bdb5e90eb tests 2020-08-18 10:59:45 -07:00
Yostra a3b678a1f0 rl wallet create walelt 2020-08-18 10:59:45 -07:00
Yostra c0622ec1d1 first take 2020-08-18 10:59:45 -07:00
Yostra 94e4afc652 add file necryption 2020-08-18 10:59:45 -07:00
Mariano Sorgente 52ecf97aba Ms.fix test (#331)
* Try to fix tests, and migrate 1.8 -> 1.9
* Stop the service after closing connections
2020-07-27 16:01:18 -07:00
Mariano Sorgente 700eaad9e0 Ms.1.8bugs3 (#326)
* harvester fixes
* Improve networking stability
* Fix wallet shutdown
* Allow chia keys sign and chia keys verify
* Dislpay the public key also
* Retry loading invalid plots, handle drive disconnection
* Confirm before deleting plots
* Improve error message WIP
* XImproved error message for importing keys
* Uncomment process.kill
* Fix merge error with restore backup
* Fixed markdown
* Switch button order, and fix request_peers
* Consolidate styles
* Set ci's to timeout after 60 minutes has elapsed
* plot directories and memory buffer
* Fix flake8
* Update chiapos, chiavdf, chiabip158, and blspy

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com>
2020-07-27 16:01:18 -07:00
Richard Kiss 392b21bdaf Make `MAX_COIN_AMOUNT` an int. Remove obsolete helpers. 2020-07-27 16:01:18 -07:00
Richard Kiss 470b0c8c76 Use attributes instead of dictionary keys. 2020-07-27 16:01:18 -07:00
Yostra ca27da0744 fix tests 2020-07-27 16:01:18 -07:00
Yostra b9cc0aec99 restore backup ui 2020-07-27 16:01:18 -07:00
Yostra 512c513abb generic backup 2020-07-27 16:01:18 -07:00
Yostra 4042871ae6 user setitngs 2020-07-27 16:01:18 -07:00
Richard Kiss 52091044e4 Use `constants` instead of `dic` overrides for tests set-up. 2020-07-27 16:01:18 -07:00
Richard Kiss a1bd2d945f Make a few type checks less strict. 2020-07-27 16:01:18 -07:00
Richard Kiss 423efbc448 Don't use `copy` for constants. 2020-07-27 16:01:18 -07:00
Richard Kiss afb5d32fb2 Use `ConsensusConstants` in Harvester. 2020-07-27 16:01:18 -07:00
Mariano Sorgente 550642c789 Minor repairs and fix BIP39 and add tests (#310)
* Logging of plot num, num proofs found, and fix rpc edge case
* Revert add -> append, and python black
* Fix list/set issue
* Correct BIP39 spec and test vectors
* Fix create mnemonic UI
2020-07-16 13:05:43 -07:00
Richard Kiss a263cc1c8c Use `clvm` via `src.util.clvm` to better control what API is accessed. 2020-07-16 13:05:43 -07:00
Mariano Sorgente 194e0c24ea New blspy, key formats, and new plot format (#309)
* Bump blspy-ietf
* wip lots of errors
* Respond to bram feedback, use eip 2334 for keys
* Fix most tests, use latest blspy
* Improve simulation test constants
* Fixed issue with plotting and reading plots
* Fix simulation test
* Override puzzle hash if we don't have key, for safety. Bump protocol version
* Fix superlint issue
* Switch to 1.0 proof of space format
* Temporary genesis block
* Update chiabip158, chiavdf versions

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Alex Wice <alex@chia.net>
2020-07-16 13:05:43 -07:00
Mariano Sorgente 8dca011f5e Change simulation constants and initialize correct height for full node (#308)
* Change simulation constants and initialize correct height for full node
2020-07-16 13:05:43 -07:00
Yostra 49deb0d93b post merge cleanup 2020-07-16 13:05:43 -07:00
Yostra a1a2242ee5 benchmark 2020-07-16 13:05:43 -07:00
Yostra b74a030d22 flake8 tests 2020-07-16 13:05:43 -07:00
Yostra 8b13aa0810 correct path 2020-07-16 13:05:43 -07:00
Yostra 1dcc13f2e2 simulator constants 2020-07-16 13:05:43 -07:00
Yostra e940bf24fe timeout 2020-07-16 13:05:43 -07:00
Yostra 900dbdc54e timeout 2020-07-16 13:05:43 -07:00
Yostra 7edc7bf660 more time 2020-07-16 13:05:43 -07:00
Yostra 6f406562b3 timeout assert 2020-07-16 13:05:43 -07:00
Yostra 24297ff26e formatting and constants for simulation 2020-07-16 13:05:43 -07:00
Yostra e90866ffa9 tests cleanup 2020-07-16 13:05:43 -07:00
Yostra ffb39ace45 block tool move 2020-07-16 13:05:43 -07:00
Yostra e6688d407f flake 2020-07-16 13:05:43 -07:00
Yostra b27eca06d4 fix trades 2020-07-16 13:05:43 -07:00
Yostra 9ebcc611ac more tests 2020-07-16 13:05:43 -07:00
Yostra b71db7219a test 2020-07-16 13:05:43 -07:00
Yostra 3f3e384f71 update trade status when farmed 2020-07-16 13:05:43 -07:00
Yostra e4775fca14 test trades 2020-07-16 13:05:43 -07:00
Yostra 39df102000 secure trade cancel: 2020-07-16 13:05:43 -07:00
Yostra bd4ed110df trade store 2020-07-16 13:05:43 -07:00
Yostra a211200bb6 cancel trades 2020-07-16 13:05:43 -07:00
Yostra bb6efc9f56 trade 2020-07-16 13:05:43 -07:00
Yostra d45f81c626 accepted offer history 2020-07-16 13:05:43 -07:00
Yostra 19b28f20fc trade history 2020-07-16 13:05:43 -07:00
Yostra 65203e9862 stashing changer remotly 2020-07-16 13:05:43 -07:00
Mariano Sorgente 04e4a6fa51 Remove logging 2020-07-16 13:05:43 -07:00
Mariano Sorgente 4ba329bd3e Remove randomness from tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente 22bca02451 Don't recreate block tools in simulator 2020-07-16 13:05:43 -07:00
Mariano Sorgente f6696531e4 Reduce the calls to keychain keyring 2020-07-16 13:05:43 -07:00
Mariano Sorgente dfb1750a04 Log level warning 2020-07-16 13:05:43 -07:00
Mariano Sorgente 04edeb5255 Speed up tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente 392c045e7e Attempt to fix tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente ef92f2940a Move plotting code to src/plotting 2020-07-16 13:05:43 -07:00
Mariano Sorgente 2ee946c371 chia plots cli program 2020-07-16 13:05:43 -07:00
Mariano Sorgente 96480bf860 Fix flake8 lint 2020-07-16 13:05:43 -07:00
Mariano Sorgente cfcc804cea Supress pylint sorted dict warning 2020-07-16 13:05:43 -07:00
Gene Hoffman 2c3197ba46 Correctly disable erroneous pylint error 2020-07-16 13:05:43 -07:00
Gene Hoffman 074fed031f flake8 and mypy only pypi upload flow - also when linters collide... 2020-07-16 13:05:43 -07:00
Gene Hoffman b157afd03b Disable pylint in test_proof_of_space - Specify PYTHONPATH 2020-07-16 13:05:43 -07:00
Gene Hoffman 0034838ffa Modify some test clean ups - fix Ubuntu 20.04 bug in install.sh 2020-07-16 13:05:43 -07:00
Gene Hoffman 7b34716ef4 Fix test_block_store - fix self._get_fingerprint_and_entropy - pylint 2020-07-16 13:05:43 -07:00
Gene Hoffman 2e25ca131c Fix flake8 - clean up tests and add to flake8 - lint src upload to pypi 2020-07-16 13:05:43 -07:00
Mariano Sorgente 13a6434404 New genesis block, fix timeout 2020-07-16 13:05:43 -07:00
Mariano Sorgente 14f1970f8e Improve daemon 2020-07-16 13:05:43 -07:00
Mariano Sorgente 5df7a189e6 Update changelog 2020-07-16 13:05:43 -07:00
Mariano Sorgente 9212cb507f Get UI working with new format 2020-07-16 13:05:43 -07:00
Mariano Sorgente 4367ed36e7 Fix local simulation 2020-07-16 13:05:43 -07:00
Mariano Sorgente 2fc6f89603 Keychain with pbkdf2 and passphrase support 2020-07-16 13:05:43 -07:00
Mariano Sorgente a1b4392bb1 Tests passing 2020-07-16 13:05:43 -07:00
Mariano Sorgente 4ec019411a Fix more tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente 1d59fee788 New Bram protocol changes and full node tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente 73398e0159 Remove challenge signature 2020-07-16 13:05:43 -07:00
Mariano Sorgente 0dea6db7cd Remove raw keychain keys, update block tools with new protocol 2020-07-16 13:05:43 -07:00
Mariano Sorgente 7b5fd7d740 Validate that the hash of the signature is correct 2020-07-16 13:05:43 -07:00
Mariano Sorgente e0d55993fe Implement new farmer and harvester protocol 2020-07-16 13:05:43 -07:00
Mariano Sorgente fdee2f2d5c Replace plots.yaml with in-file keys 2020-07-16 13:05:43 -07:00
Mariano Sorgente 1055ee3ea2 Remove localhost references, and fix connection bug 2020-07-16 13:05:43 -07:00
Richard Kiss 7dd0df2a50 Use `bt.root_path` instead of global. 2020-07-16 13:05:43 -07:00
Richard Kiss 617d6896e2 Pass `starting_height` explicitly, not in `dic`. 2020-07-16 13:05:43 -07:00
Richard Kiss e83e7db3ce Pass `clvm_cost_ratio_constant` to `calculate_cost_of_program`. 2020-07-16 13:05:43 -07:00
Richard Kiss 9220b90373 Explicitly pass `discriminant_size_bits` to `TimeLord`. 2020-07-16 13:05:43 -07:00
Richard Kiss 0175cf64eb Use `constants_for_dic`. 2020-07-16 13:05:43 -07:00
Richard Kiss 97150f8abd Fix test. 2020-07-16 13:05:43 -07:00
Richard Kiss f8d06946cd Use `make_test_constants_with_genesis`. 2020-07-16 13:05:43 -07:00
Richard Kiss e4f3050667 Use `ConsensusConstants` in many more places. 2020-07-16 13:05:43 -07:00
Richard Kiss 13525e824f Pass in `consensus_constants` to `TimeLord`. 2020-07-16 13:05:43 -07:00
Richard Kiss be8f973fa2 Pass constants into `Farmer`. 2020-07-16 13:05:43 -07:00
Richard Kiss aa66d1d13d Remove `from src.consensus.constants import constants`. 2020-07-16 13:05:43 -07:00
Richard Kiss f812cdc72d Remove path never taken. 2020-07-16 13:05:43 -07:00
Mariano Sorgente 6b5e17d734 Change test log level back to WARNING 2020-07-16 13:05:43 -07:00
Mariano Sorgente 8c67ead4f4 Fix connection issues 2020-07-16 13:05:43 -07:00
Mariano Sorgente 7d87638b8b Remove localhost references, and fix connection bug 2020-07-16 13:05:43 -07:00
Mariano Sorgente 8ae737e74a Change logging level to WARNING in tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente 9c748cfec4 Try to speed up with new BlockTools 2020-07-16 13:05:43 -07:00
Mariano Sorgente b0356d5810 Use setup_nodes constants everywhere 2020-07-16 13:05:43 -07:00
Mariano Sorgente 2c8efb7db2 Some more small improvements 2020-07-16 13:05:43 -07:00
Mariano Sorgente fa39350758 Fix some more tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente 116ee138b8 Remove sleeps from tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente c0441391b8 Start working on test speeds 2020-07-16 13:05:43 -07:00
Mariano Sorgente 51889d3601 Improve unfinish blocks load test 2020-07-16 13:05:43 -07:00
Mariano Sorgente 35822c8796 Ms.networking2 (#284)
* Improve test speed with smaller discriminants, less blocks, less keys, smaller plots
* Add new RPC files
* Refactor RPC servers and clients
* Removed websocket server
* Fixing websocket issues
* Fix more bugs
* Migration
* Try to fix introducer memory leak
* More logging
* Start client instead of open connection
* No drain
* remove testing deps
* Support timeout
* Fix python black
* Richard fixes
* Don't always auth, change testing code, fix synced display
* Don't keep connections alive introducer
* Fix more LGTM alerts
* Fix wrong import clvm_tools
* Fix spelling mistakes
* Setup nodes fully using Service code
* Log rotation and fix test
2020-07-16 13:05:43 -07:00
fchirica c6015c98aa Try to resolve the error in Ubuntu python 3.8 2020-07-16 13:05:43 -07:00
fchirica e4b5454959 Unpack all in rpc test 2020-07-16 13:05:43 -07:00
fchirica 03e0788e82 Yield sanitizer as well. 2020-07-16 13:05:43 -07:00
fchirica a9445fb8d1 Fix introducer task. 2020-07-16 13:05:43 -07:00
fchirica 284c5a50a0 Initial commit sanitizer 2020-07-16 13:05:43 -07:00
Bill Blanke bee2e7a2a8 update for new pos 2020-06-08 17:17:48 -07:00
Mariano Sorgente bff3c2ffa2 Add plots, and fix rpc full node 2020-06-08 17:17:48 -07:00
Mariano Sorgente c9bf65377f Apply black formatting 2020-06-08 17:17:48 -07:00
Richard Kiss 14792e840e Always use `~/.chia/test-plots` as test-plotting directory. 2020-06-08 17:17:48 -07:00
Richard Kiss bd8d20aeb3 Use test plots in `$CHIA_ROOT/test_plots` if it exists. Use
a temporary directory for `root_path` in `BlockTools`.
2020-06-08 17:17:48 -07:00
Richard Kiss 1c262ac77f Make `Timelord._shutdown` sync. 2020-06-08 17:17:48 -07:00
Richard Kiss fb53c59247 Factor out `DEFAULT_ROOT_PATH`. 2020-06-08 17:17:48 -07:00
Richard Kiss 0335623368 Use `Harvester.__init__` instead of `create`. 2020-06-08 17:17:48 -07:00
Richard Kiss 4f67cc2641 Have `timelord._manage_discriminant_queue` push messages into queue itself. 2020-06-08 17:17:48 -07:00
Richard Kiss 62564b998d Refactor `start_harvester` into `start_service`. 2020-06-08 17:17:48 -07:00
Richard Kiss d1f0483023 Make `start_server` return an `asyncio.AbstractServer`. Wait
on that for servers.
2020-06-08 17:17:48 -07:00
Richard Kiss c65a78fb7f Factor out `start_server`. 2020-06-08 17:17:48 -07:00
Richard Kiss fff78556ab Move config out of `Introducer`. 2020-06-08 17:17:48 -07:00
Richard Kiss 9090ef0176 Refactor some messages into `introducer_protocol`. 2020-06-08 17:17:48 -07:00
Richard Kiss 1b1ee7bc4b Factor out `_start_bg_tasks` from timelord. 2020-06-08 17:17:48 -07:00
Matthew Howard e20dfc8307 Revert "added duplicate sigs where needed"
This reverts commit 5a4b7a022aeb22a5eb34bbd0fa4fc8167578119b.
2020-06-01 08:56:59 -07:00
Matthew Howard c9f3a8cdeb added duplicate sigs where needed 2020-06-01 08:56:59 -07:00
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