Commit Graph
14659 Commits
Author SHA1 Message Date
dustinfaceandGitHub 820889a316 rpc: Improve RPC server start/stop (#12768)
* rpc: Improve RPC server start/stop

* `RpcServer.stop` -> `RpcServer.close`
2022-08-06 01:07:41 -05:00
Jack NelsonandGitHub 2ab0fa8b0a fix ci (#12808) 2022-08-05 16:09:02 -05:00
Mariano SorgenteandGitHub e314040d8d No network type (#12783)
* No network type

* Use selected network

* remove NETWORK_TYPE

* Don't warn on invalid key, and remove from config

* Remove bytes32

* Put back the warning log
2022-08-05 13:53:02 -05:00
Jack NelsonandGitHub 105f02993f Move simulator tests over to new file, to allow other programs to use it (#12759)
* Separate test file at Cameron's request

this lets other tools easily use these tests

* fix accidental text duplication
2022-08-05 13:52:39 -05:00
Earle LoweandGitHub 8ec6fe9b92 Remove unused ping/pong code (#12779) 2022-08-05 13:27:37 -05:00
Kronus91andGitHub 2fa9f768ea Nft reorg (#12665)
* Hanlde NFT reorg

* Fix pre-commit

* Change approach & add more unit tests

* Add adjust test timeout

* Fix unit tests

* Fix unit tests

* Revert unit test changes

* Unit test

* Unit test

* Unit test

* Remove limit

* Resolve comments

* Fix pre-commit
2022-08-05 13:27:08 -05:00
Izumi HoshinoandGitHub 48a8347c83 Fixed an issue where it sometimes tried to remove a non-existent win cert file (#12797) 2022-08-05 13:25:09 -05:00
Jack NelsonandMariano Sorgente f1651e5df1 fix missing import
screw git
2022-08-05 19:04:53 +07:00
dustinfaceandGitHub 4611d0aa43 util: Move all keychain related errors into chia.util.error (#12756)
Also derive them from `KeychainException` and name them consistently.
2022-08-05 02:05:58 -05:00
0dd5391f40 Simulator Final touches (#12703)
* add new rpc and add tests.

I added, get_all_blocks rpc, and expanded the get_all_puzzle_hashes rpc.

* lint pass

* update plot directory for simulator

* return peak height on new block farm

* expand test coverage

* fix plot directory craziness

* simulator sync override

* Add new simulator networktype

* add logging to simulator

* Fix race condition, mempool and confirm

* add reorg seed

* farm block if block 0 sim & fix unsynced for sim

* lint

* oops i forgot to lint

* switch to detecting simulator in network type

also remove inline genesis generation

* fix config loading to use correct variable

Co-authored-by: Mariano Sorgente <sorgente711@gmail.com>
2022-08-05 01:23:18 -05:00
Arvid NorbergandGitHub f562d96535 uncurry the puzzle once instead of 3 times (#12781) 2022-08-04 23:16:04 -05:00
Earle LoweandGitHub 39ef58ef61 New test files with CAT2 coins (#12683)
* New test files with CAT2 coins

* Remove unused test file
2022-08-04 23:13:29 -05:00
Matt HauffandGitHub 44b2568cd6 Block summaries of CAT1 offers in the RPC and CLI (#12730)
* Block summaries of CAT1 offers in the RPC

* block CLI too

* manually decompress/deserialize

* black

* Add test

* pre-commit
2022-08-04 20:38:43 -05:00
Jack NelsonandGitHub ff8ecb35a0 Fix no keys loaded error by making KeychainProxy automatically reconnect when a connection is lost (#12782)
* Add proper types to daemon client & keychain

* pre type pass on keychain proxy

* add auto restarting keychain proxy

* finalize keychain proxy v2

* move event calls

* fix close on timeout

* fix possible key leak in logging

* fix last little error

* log on disconnection & reduce duplicate code

* Update client.py
2022-08-04 20:28:58 -05:00
Jack NelsonandGitHub 9588949cfa add extra messages to daemon (#12666)
add extra messages to daemon

add if for sanity

Oops pycharm
2022-08-04 20:28:23 -05:00
Jack NelsonandGitHub f648f7e52b rename testnet constants to default constants, because they are the base for all networks (#12691)
* mild annoyance

* Update default_constants.py
2022-08-04 18:36:07 -05:00
Kronus91andGitHub fba150627c Add bulk cancel API (#12427)
* Add bulk cancel API

* Add cancel_all flag

* Add asset ID

* Resolve comments

* Fix pre-commit
2022-08-04 16:31:27 -05:00
Amine Khaldi d6aa113cf5 Reflect the change on datalayer related code. 2022-08-04 21:40:16 +01:00
Amine Khaldi 90331f39e0 Merge commit '8ec56d1901315a5efb13202023e15930349ae504' into checkpoint/long_lived_atari_from_main_8ec56d1901315a5efb13202023e15930349ae504 2022-08-04 20:55:51 +01:00
Arvid NorbergandGitHub fad414132e log blockchain database file used along with schema version on startup (#12737) 2022-08-04 14:47:02 -05:00
Kyle AltendorfandGitHub 2f75afb7c0 Merge pull request #12794 from Chia-Network/checkpoint/long_lived_atari_from_main_280f462071e5fe1b7883cefac73712789e22b664 2022-08-04 12:18:44 -07:00
dustinfaceandGitHub 777ffb2751 harvester: Log the plot refresh parameter on start (#12661) 2022-08-04 13:00:01 -05:00
dustinfaceandGitHub e5297f411d util: Unify lockfile handling (#12541)
* util: Unify lockfile handling

This patch:
- Renames `util.lock.lock_by_path` to `util.lock.lock_path` and improves it by using `FileLock`
- Unifies all places where we create lock files to use `chia.util.lock.lock_path`
- Changes the daemon lockfile from `start-daemon.launching` to `daemon.lock` like we have it with all `<service>.lock` in the `run` folder
- Drops the `fastener` dependency

* Move the not keyring related sync tests into `test_lockfile.py`
2022-08-04 12:59:39 -05:00
Amine Khaldi e32c0595ef Merge commit '280f462071e5fe1b7883cefac73712789e22b664' into checkpoint/long_lived_atari_from_main_280f462071e5fe1b7883cefac73712789e22b664 2022-08-04 18:36:04 +01:00
Kyle AltendorfandGitHub bc8527b152 Merge pull request #12793 from Chia-Network/checkpoint/long_lived_atari_from_main_371f76e377c197b6a53899c72650f9854c26fd0c
checkpoint: into long_lived/atari from main  @ 371f76e377
2022-08-04 10:35:07 -07:00
Amine Khaldi 5279f2b999 Merge commit '371f76e377c197b6a53899c72650f9854c26fd0c' into checkpoint/long_lived_atari_from_main_371f76e377c197b6a53899c72650f9854c26fd0c 2022-08-04 18:32:31 +01:00
Kyle AltendorfandGitHub b404588cf4 Merge pull request #12792 from Chia-Network/checkpoint/long_lived_atari_from_main_8552a94db744cc165af93035d80862951fa0875e 2022-08-04 10:27:30 -07:00
Amine Khaldi e2b63feaa4 Merge commit '8552a94db744cc165af93035d80862951fa0875e' into checkpoint/long_lived_atari_from_main_8552a94db744cc165af93035d80862951fa0875e 2022-08-04 18:20:50 +01:00
Kyle AltendorfandGitHub 328dedd773 Merge pull request #12791 from Chia-Network/checkpoint/long_lived_atari_from_main_9a4316f96eeb92a06d5ceaf94387d349c5ea9537 2022-08-04 10:19:54 -07:00
Amine Khaldi b702f79ed0 Merge commit '9a4316f96eeb92a06d5ceaf94387d349c5ea9537' into checkpoint/long_lived_atari_from_main_9a4316f96eeb92a06d5ceaf94387d349c5ea9537 2022-08-04 18:06:22 +01:00
Kyle AltendorfandGitHub 9fc724b8c1 Merge pull request #12790 from Chia-Network/checkpoint/long_lived_atari_from_main_293bf6e64fc365d43e13d3809a62dbae15f624bc 2022-08-04 10:04:57 -07:00
Amine Khaldi 226cd3d099 Merge commit '293bf6e64fc365d43e13d3809a62dbae15f624bc' into checkpoint/long_lived_atari_from_main_293bf6e64fc365d43e13d3809a62dbae15f624bc 2022-08-04 18:03:56 +01:00
Izumi HoshinoandGitHub 4c87c99d15 Improve CI performance (#12523)
* Optimized CI execution times

* Fixed a lint error

* Update GUI cache keys for linux

* Added `git status` and `git submodule` to build_xxx-installer.sh
2022-08-04 12:03:50 -05:00
Kyle AltendorfandGitHub 12ac2f82ea Merge pull request #12789 from Chia-Network/checkpoint/long_lived_atari_from_main_c2100929a446a35c18be1527e407dbd0e344e209 2022-08-04 10:03:08 -07:00
Amine Khaldi 64fc91edcd Merge commit 'c2100929a446a35c18be1527e407dbd0e344e209' into checkpoint/long_lived_atari_from_main_c2100929a446a35c18be1527e407dbd0e344e209 2022-08-04 17:52:42 +01:00
Kyle AltendorfandGitHub 2fee4bd5f5 Merge pull request #12788 from Chia-Network/checkpoint/long_lived_atari_from_main_e5779eb9686c75ae2233f1a670a6af70492d3773 2022-08-04 09:50:12 -07:00
Amine Khaldi 08e00e33a4 Merge commit 'e5779eb9686c75ae2233f1a670a6af70492d3773' into checkpoint/long_lived_atari_from_main_e5779eb9686c75ae2233f1a670a6af70492d3773 2022-08-04 17:48:12 +01:00
Kyle AltendorfandGitHub 4ee4357a50 Merge pull request #12787 from Chia-Network/checkpoint/long_lived_atari_from_main_69025e0d17f089a7a5c168340646cf37796a24f7 2022-08-04 09:47:24 -07:00
Kyle Altendorf 6fd1caf137 Merge branch 'long_lived/atari' into atari-offer_rpc_stubs 2022-08-04 09:29:46 -07:00
Amine Khaldi 09b56dec77 Merge commit '69025e0d17f089a7a5c168340646cf37796a24f7' into checkpoint/long_lived_atari_from_main_69025e0d17f089a7a5c168340646cf37796a24f7 2022-08-04 17:28:52 +01:00
Florin Chirica 46c8e62d7d Checkpoint. 2022-08-04 18:27:44 +02:00
Kyle AltendorfandGitHub d35ffb78cd Merge pull request #12786 from Chia-Network/checkpoint/long_lived_atari_from_main_539d9b53fd560433445e341c72bd89a63c108eb1 2022-08-04 09:25:31 -07:00
Amine Khaldi ef2e35ff80 Merge commit '539d9b53fd560433445e341c72bd89a63c108eb1' into checkpoint/long_lived_atari_from_main_539d9b53fd560433445e341c72bd89a63c108eb1 2022-08-04 17:23:52 +01:00
Kyle AltendorfandGitHub e1a1b22ec0 Merge pull request #12785 from Chia-Network/checkpoint/long_lived_atari_from_main_3e5a0686235d8ff040c1b9391e8246e4a8c363ee 2022-08-04 09:22:57 -07:00
Amine Khaldi b1b6278603 Merge commit '3e5a0686235d8ff040c1b9391e8246e4a8c363ee' into checkpoint/long_lived_atari_from_main_3e5a0686235d8ff040c1b9391e8246e4a8c363ee 2022-08-04 17:21:04 +01:00
Kyle AltendorfandGitHub e76385da54 Merge pull request #12774 from Chia-Network/checkpoint/long_lived_atari_from_main_1205418f224db9f48830d1c6ca7a8cad89fb213b 2022-08-04 09:19:12 -07:00
Florin Chirica 4f7fe15054 Merge branch 'long_lived/atari' into fc.atari_discovery 2022-08-04 16:31:52 +02:00
Arvid NorbergandGitHub 67b45c92ea avoid redundant printing of puzzle program in NFT uncurry attempt (#12764) 2022-08-03 20:49:22 -05:00
Jack Nelson ef271368f8 other refactor changes: one main cmd function 2022-08-03 16:26:00 -04:00
Jack NelsonandWilliam Allen b2c058970f new peer command changes
These changes are purely for the chia peer command

Co-Authored-By: William Allen <william.allentx@gmail.com>
2022-08-03 16:14:22 -04:00