Commit Graph

161 Commits

Author SHA1 Message Date
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 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
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
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 eff85763f7 Fix tests and start with chia wallet 2020-10-01 11:07:12 -07:00
Mariano Sorgente 5303db737b Test passing 2020-10-01 11:07:12 -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 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
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
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
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
Yostra 8b13aa0810 correct path 2020-07-16 13:05:43 -07:00
Yostra e90866ffa9 tests cleanup 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 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 e0d55993fe Implement new farmer and harvester protocol 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
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 2c8efb7db2 Some more small improvements 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 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
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
Mariano Sorgente f4d8c22f94
Store unfinished blocks on disk, tips/lca, db changes, cleanup 2020-04-28 17:09:18 +09:00
Yostra a54931d735 transaction history /value 2020-04-27 18:42:08 -07: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 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
Richard Kiss 2eb4fd7b8e Squashed commit of merge conflicts. 2020-04-21 23:31:20 -07:00
Yostra d425a41ad8 assert fee condition 2020-04-21 22:55:21 -07:00
Mariano Sorgente 02aa39a667
Fix race condition in select coins, and order coins by age 2020-04-08 15:29:34 +09: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 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
Mariano Sorgente e328f01f10
Lint properly, and fix Paths 2020-03-30 18:03:03 +09:00
Richard Kiss 9b0e257580 Fix tests. 2020-03-29 15:23:27 -07:00
Yostra 708caf9f27 select coins fix 2020-03-27 14:03:48 -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
Mariano Sorgente 2a388d3545
Fix tests 2020-03-21 01:24:48 +09:00