Commit Graph
7043 Commits
Author SHA1 Message Date
Matt Hauff 9dd04932fd Add REMARK to ConditionOpcodes (#12771)
* Add REMARK to `ConditionOpcodes`

* fix trailing whitespace
2022-08-10 15:15:59 -05:00
dustinface af48eff03b cmds: Drop unused chia_minor_release_number (#12357) 2022-08-10 15:14:37 -05:00
William Allen 602ddeddc6 Merge pull request #12881 from Chia-Network/checkpoint/main_from_release_1.5.1_c39d7ac64f94ed55c98025b3dcfca2cd39e90d86
checkpoint: into main from release/1.5.1  @ c39d7ac64f
2022-08-10 15:06:40 -05:00
Mariano Sorgente e682de7344 Early return from olivernyc (#12877) 2022-08-10 15:05:12 -05:00
Kyle Altendorf 04fb4b8803 skip setproctitle test (#12886)
* remove unittest class from setproctitle test

* actually skip the setproctitle test file
2022-08-10 10:41:42 -05:00
dustinface ee2671447d rpc: Recover _set_state_changed_callback call in start_rpc_server (#12872) 2022-08-10 10:40:46 -05:00
dustinface 7c9fb654a3 server|tests: Delay the harvester -> farmer connection in some tests (#12862)
* Introduce `Service.add_peer`

* Delay the harvester/farmer connection in some tests to avoid flakiness
2022-08-10 04:57:34 -05:00
Amine Khaldi 4af653946e Merge commit 'c39d7ac64f94ed55c98025b3dcfca2cd39e90d86' into checkpoint/main_from_release_1.5.1_c39d7ac64f94ed55c98025b3dcfca2cd39e90d86 2022-08-10 10:48:18 +01:00
Almog De Paz 2a51d7deaf wallet code reuse (#12310)
* validate wp from fork and fix bugs(pr #11826)
move WalletWeighProofHandler to wallet_node
remove code dupelication

* fix init bug
remove bad return path

* lint

* merge fixes
remove redundant ses_cache

* lint

* lint

* fix test

* lint

* assert state_manager is not None
2022-08-10 04:45:01 -05:00
dustinface da69ae6ad1 util: Raise in Keychain.add_private_key if the key already exists (#12747) 2022-08-10 03:13:21 -05:00
dustinface be2e02052d util: Simplify public key getters in Keychain (#12751) 2022-08-09 18:29:42 -05:00
Arvid Norberg f295d8899b add benchmark for MempoolManager.add_spendbundle (#12780)
* add benchmark for MempoolManager.add_spendbundle

* log warning if pre_validate_spendbundle takes too long
2022-08-09 18:29:00 -05:00
William Allen a4b0f51f3d Adding required-reviewers as CODEOWNERS (#12812) 2022-08-09 18:27:32 -05:00
dustinface 43d679dba3 pre-commit: Fix a venv activation issue on linux (#12822)
* pre-commit: Fix a venv activation issue on linux

I ended up with the same issue as in https://github.com/Chia-Network/chia-blockchain/pull/12235 and using `.` instead of `source` (Which is supposed to be the same?) fixed it.

* Make it all `sh`
2022-08-09 18:27:11 -05:00
dustinface 91bc4958d1 pre-commit: Reorder hooks by runtime (#12775)
Moving `black` and `mypy` up a bit, run `flake8` as last. New order:

```
Validate SQL statements
__init__.py files
black
Check Yaml
Fix End of Files
Trim Trailing Whitespace
Check for merge conflicts
Check python ast
Debug Statements (Python)
mypy
isort
flake8
```
2022-08-09 18:23:52 -05:00
dustinface 382f57fc7d util: Simplify key deletion in Keychain (#12750) 2022-08-09 18:23:30 -05:00
Jeff 0ea86b1079 Few additional sets of test SSL certs/keys for CI (#12702)
* Few additional sets of test SSL certs/keys for CI

* Track which sets of SSL test certs/keys are in use. Emits a warning if a set of test certs/keys are reused which still in use.

* Accidentally moved a set of certs/keys
2022-08-09 18:21:11 -05:00
William Allen bfb4aadfc5 Merge pull request #12868 from Chia-Network/checkpoint/main_from_release_1.5.1_76b173e36bd9cd9835b5d126015c5594dacfe45c
checkpoint: into main from release/1.5.1  @ 76b173e36b
2022-08-09 16:56:30 -05:00
Chris Marslender 87179bd673 Update the arm64 deb installer to also use the 1804 builder container (#12864)
* Update the arm64 deb installer to also use the 1804 builder container

* Bring steps more inline with the other docker workflow

* Fix github_workspace variables and make timeouts the same
2022-08-09 16:48:53 -05:00
wallentx 4074083a66 Merge commit '76b173e36bd9cd9835b5d126015c5594dacfe45c' into checkpoint/main_from_release_1.5.1_76b173e36bd9cd9835b5d126015c5594dacfe45c 2022-08-09 15:09:01 -05:00
Chris Marslender 6b0b7d72c1 Swap intel installer to 10.14 runners (#12735)
* Swap intel installer to 10.14 runners and swap to setup python wrapper forced to pyenv (since github's python versions don't support 10.14)

* Self-hosted cleanup steps

* Update to chia-network notarize cli
2022-08-09 13:10:22 -05:00
Sebastjan Trepca 4a98e92679 increased timeouts for less NFT test flakiness (#12847)
* increased timeouts for less flakiness

* a few more timeouts

* and some more

* more blocks
2022-08-09 09:31:22 -05:00
dustinface 244a9dcc91 tests: Drop redundant RpcServer instances (#12769)
Just use the ones started by the actual `Service`.
2022-08-08 20:05:20 -05:00
Kronus91 c39d7ac64f Fix a migration bug of NFT table change (#12817)
* 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

* NFT DB migration fix

* Resolve commit
2022-08-08 16:44:36 -05:00
Jeff 76b173e36b Bump chia-blockchain-gui submodule to 3c5edb88e38887b90b2f8a4398957bfc301c3047 (#12834)
Includes NFT <--> CAT offer support
2022-08-08 16:27:56 -05:00
Sebastjan Trepca 164fd158c8 nft wallet reorg fix (#12828)
* reorg fix

* refreshing nft coins
2022-08-08 14:45:54 -05:00
Arvid Norberg 8b70466a70 fix a few instances of coin name logging that would print binary-escaped strings instead of hex (#12818) 2022-08-07 14:16:52 -05:00
dustinface aa0e996ac5 util: Drop partially implemented BIP39 passphrase support (#12748) 2022-08-06 09:50:33 -05:00
dustinface 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 Nelson 2ab0fa8b0a fix ci (#12808) 2022-08-05 16:09:02 -05:00
Mariano Sorgente 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 Nelson 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 Lowe 8ec6fe9b92 Remove unused ping/pong code (#12779) 2022-08-05 13:27:37 -05:00
Kronus91 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 Hoshino 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 Nelson f1651e5df1 fix missing import
screw git
2022-08-05 19:04:53 +07:00
dustinface 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
Jack NelsonandMariano Sorgente 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 Norberg f562d96535 uncurry the puzzle once instead of 3 times (#12781) 2022-08-04 23:16:04 -05:00
Earle Lowe 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 Hauff 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 Nelson 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 Nelson 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 Nelson 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
Kronus91 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
Arvid Norberg fad414132e log blockchain database file used along with schema version on startup (#12737) 2022-08-04 14:47:02 -05:00
dustinface 777ffb2751 harvester: Log the plot refresh parameter on start (#12661) 2022-08-04 13:00:01 -05:00
dustinface 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
Izumi Hoshino 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
Arvid Norberg 67b45c92ea avoid redundant printing of puzzle program in NFT uncurry attempt (#12764) 2022-08-03 20:49:22 -05:00