Commit Graph

69 Commits

Author SHA1 Message Date
Mariano Sorgente a76446eba9
Speedup normal sync and wallet sync (#5590)
* Correctly return from bytes without parsing

* Huge speedup for wallet sync

* Lint

* Only construct CoinRecord when necessary

* Punt on creation of coin

* Removing warning log

* Flaky test

* Finally fix flaky test
2021-05-20 10:42:22 -07:00
Adam Kelly 15d4938a8c
Please add comments (#5565)
* Please add comments

* Fix issue

* More blocks

Co-authored-by: Adam Kelly <aqk@aqk.im>
Co-authored-by: Mariano <sorgente711@gmail.com>
2021-05-20 11:40:36 +09:00
Bill Blanke 207c83eabb tweak timeouts 2021-05-19 16:25:58 -07:00
Bill Blanke 18ccda9310 wait after farm_new_transaction_block 2021-05-19 13:44:09 -07:00
Bill Blanke 50ff07e687 wait after farm_new_transaction_block 2021-05-19 13:40:36 -07:00
Bill Blanke a0927402ac wait after farm_new_transaction_block 2021-05-19 13:30:42 -07:00
Yostra 108647112c
Wallet (#4887)
* spent height

* handle generator reorg

* tx cache

* coin cache

* rebuild cache if write fails

* save last few messages new_peak while syncing

* don't use dupe func

* tx reorg test

* lock not needed

* lint

* lock

* modify properly

* this shouldn't hit a disk ever

* use same number

* notify wallet only once, lock when getting a balance

* lock only if unspent coin records is None

* assert spent

* lint

* Add test for prev generator

Co-authored-by: Mariano <sorgente711@gmail.com>
2021-05-19 12:06:48 -07:00
matt-o-how 637177519a
Add announcements for standard tx (#3023)
* changed bahviour of wallet and wallet tools for standard solutions

* black formatting wallet_tools

* added a test for hypothetical stolen zero_output coin

* swap to sha256 from sha256tree for message

* fix wallet_tools version, address lint issues

* correctly int_from_bytes

* fix uninstantiated key in dict

* Comment out broken test

* Fix types (used SerializedProgram)

Co-authored-by: Mariano <sorgente711@gmail.com>
2021-04-30 03:13:00 +09:00
Richard Kiss 569ca16f50 Use `sed` to change imports from `src` to `chia`. 2021-04-04 21:41:39 -07:00
Mariano Sorgente 764d425b95
Don't use the cache to get transactions (#1301)
* Don't use the cache to get transactions

* Increase timeout
2021-03-15 13:48:01 -07:00
Gene Hoffman b5ce8c9e66
Isort take 3 (#1213)
* isort in a black friendly way

* isort but debug superlinter later
2021-03-09 18:27:27 -08:00
Yostra 2e407fe35a block tool fix, colour coins multi coin spend fix, wallet max send amount 2021-02-17 12:57:12 -08:00
Yostra f0a317761a fn speedup, transaction cost limit, max send amount 2021-02-17 12:57:12 -08:00
Mariano Sorgente a3684dc8eb
Remove sub blocks and chia wallet cli fixes (#913)
* Remove sub block start

* Intermediate commit, many replacements

* Fix wallet table name

* Fix tests

* chia wallet cli fixes
2021-02-12 12:24:33 -08:00
Mariano Sorgente 927e0d6913 Fix prevalidation and optimize some tests 2021-01-19 10:53:04 -08:00
Yostra cbf62d9af7 name 2021-01-12 17:02:22 -05:00
Yostra cbd786aea8 flake mypy 2021-01-12 17:02:22 -05:00
Yostra 7af3443d56 pool / farm reward categorization + db change 2021-01-12 17:02:22 -05:00
Yostra 1cb4ca2b9f test tx count 2021-01-12 17:02:22 -05:00
Yostra 5fd4d71388 tests 2021-01-12 17:02:21 -05:00
Yostra 2a2c621bb0 form 2021-01-12 17:00:54 -05:00
Yostra 1640de53f7 wallet tests 2021-01-12 17:00:54 -05:00
Yostra 290f5235e4 flake black mypy 2021-01-12 17:00:54 -05:00
Yostra e3284a4706 reorg 2021-01-12 17:00:54 -05:00
Yostra d27315511f zombie, rpc 2021-01-12 17:00:54 -05:00
Yostra aafa9f0698 transaction 2021-01-12 17:00:54 -05:00
Yostra 16004ae650 correct reward 2021-01-12 17:00:53 -05:00
Mariano Sorgente 1e716b5e56 Flake8 tests 2021-01-12 17:00:53 -05:00
Mariano Sorgente ea3ae083a2 Comment out tests 2021-01-12 17:00:53 -05:00
Mariano Sorgente fff9ccb026 Got simulation test to pass 2021-01-12 17:00:53 -05:00
Yostra 75598f20dc wallet simple sync 2021-01-12 17:00:53 -05:00
Yostra d6ef88fa08 wallet 2021-01-12 17:00:53 -05:00
Mariano Sorgente c018b26716 Coin store reorgs and mempool tests 2021-01-12 17:00:53 -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
Yostra ed08e25655 flake8 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 de7d49fb5a stash 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
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
Gene Hoffman 4107cbebe0 black tests/ 2020-10-01 11:07:12 -07:00
Mariano Sorgente 966b5bb989 Reformat using python black 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
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 4ec019411a Fix more tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente 73398e0159 Remove challenge signature 2020-07-16 13:05:43 -07:00