Commit Graph
14659 Commits
Author SHA1 Message Date
paulhainsworth-chiaandGitHub 4c69dfd83e changelog 1.2.7 (#8503) 2021-09-16 15:34:01 -07:00
Kyle Altendorf 0df73425e6 Preliminary exploration of a data layer skeleton 2021-09-15 21:31:41 -04:00
Arvid NorbergandGitHub e4b9db08cd execute the sqlite pragmas only once, at the lever where the database is opened. Also, say FULL instead of 2, to make it clearer what the pragma is doing (#5993) 2021-09-15 10:57:13 -07:00
OliverandGitHub 8c9b7e2bfb Special case height 0 to avoid querying all unspent coins (#8413) 2021-09-14 10:40:37 -07:00
Matt HauffandGitHub e18a71376d Make SpendBundle.debug() use the default genesis challenge by default (#8431) 2021-09-14 10:39:40 -07:00
9d59079bfa add ids to the return response of start_plotting (#7416)
* add ids to the return response of start_plotting

* black formatting

* Update chia/daemon/server.py

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>

* Update server.py

updated a comment in order to get build actions to rerun

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
2021-09-14 10:38:10 -07:00
William Blanke a7e3c23277 updated gui to 0ef042ac3aa8cb6f1181f2ed70776c173fe17707 2021-09-13 14:29:23 -07:00
Tobias "Knight" SandGitHub f21d14d02d Fix shown permissions (#8450) 2021-09-13 13:20:52 -07:00
dustinfaceandGitHub ada12b3f42 tests: Fix rmtree call in create_pool_plot (#8463) 2021-09-13 13:20:36 -07:00
Jeff CruikshankandGitHub fd7bba6ae5 Ensure that config.yaml and keyring.yaml aren't partially written-to (#8379)
* Ensure that the initial config isn't partially written-to

* Fixed linter error

* Use os.replace instead of shutil.move

* Tests for reading/writing config.yaml

* Linter fixes
2021-09-13 13:20:19 -07:00
Jeff CruikshankandGitHub 1ac7e58140 Added validate_keyring_passphrase RPC. Includes a test in test_daemon. (#8325)
Some minor refactoring to support writing tidier RPC tests.
2021-09-13 13:19:52 -07:00
Chris MarslenderandGitHub d172efa3a3 Allow host to be configurable for timelord launcher (#8434)
* Let the timelord laucher connect to a configurable hostname

* Use 'host' to be more consistent with the other config sections

* Add timelord launcher host to initial config
2021-09-10 17:00:10 -07:00
paulhainsworth-chiaandGitHub 5d75defa1e Changelog1.2.6 (#8423)
* changelog 1.2.6
2021-09-09 16:11:16 -07:00
dustinfaceandGitHub ab9ae7e990 plotting: Some refactoring of PlotManager.refresh_batch.process_file (#8380)
* plotting: Refactor file exists check in `process_file`

* plotting: Refactor processing of the `ThreadPoolExecutor.map()` result

I might miss something but imo the use of `reduce` here just reduces
readability and has no value.

* plotting: Let `process_file` return `Optional[PlotInfo]`
2021-09-08 15:23:01 -07:00
William Blanke f692360aa2 updated bls to 1.0.6 2021-09-08 14:47:44 -07:00
Arvid NorbergandGitHub 0b92c89e7d Conditions parser (#8393)
* tests for invalid list terminators in conditions

* bump clvm_rs version
2021-09-08 14:46:25 -07:00
dustinfaceandGitHub 85e176fe31 pre-commit: Update some hooks (#8309)
* pre-commit: Update `flake8` to 3.9.2

* pre-commit: Update `pre-commit-hooks` to 4.0.1

* pre-commit: Update `black` to 21.8b0
2021-09-07 18:18:43 -07:00
dustinfaceandGitHub ba293f65c8 plotting: Drop some redundant code (#8308)
* plotting: Drop some redundant `None` checks

* plotting: Drop redundant `stat_info`
2021-09-07 18:18:17 -07:00
dustinfaceandGitHub fe6837218c plotting: Don't reload all plot paths for each batch, do it once upfront (#8368) 2021-09-07 16:29:09 -07:00
dustinfaceandGitHub 64a8249d75 plotting|tests: Fix two PlotsRefreshParameter instantiations (#8367)
* tests: Set `batch_size` to `2` in `setup_plots`

The idea here was to test something smaller than the plots we load.

Fix after 17dea1b708.

* plotting: Set `batch_sleep_milliseconds` to `0` in `check_plots`

The idea here was to have less sleep time since we don't need to give 
other threads the chance to jump in. It was `1` before but `0` makes 
more sense imo.

Fix after 17dea1b708.
2021-09-07 14:02:19 -07:00
YostraandGitHub c353048efb Bugfix for the task queue buildup (#8315)
* fix bug

* remove except
2021-09-07 14:01:23 -07:00
0096f755a1 DID Update Merge (#8129)
* fixed the bugs related to DID puzzles

* change test so that wallets recover into other wallets

* fix parent_info fetching when recovering

* fix did_test

* delete did tests related to singleton behaviours as that is tested elsewhere

* linting fixes

* update hash commit for did_innerpuz.clvm

* update DID wallet RPC calls

* more lint fixes

* delete further references to deprecated did_spend function

* fix bug in wallet state manager related to falsely detecting pool create

* added did_rpc test

* make sure amounts are uint64

* lint fixes

* Fix deadlock in DID wallet creation, and introduce create_new_did_wallet API call

* rename solution_to_pool_state

* Remove tests dir from packages

* added potential fix

* Allow getting unconfirmed balance from wallet_state_manager when under lock

* Remove a deadlock from create_new_did_wallet

* Update DID wallet test to use async check for farmed chia in wallet setup

* Fix unsigned arithmetic error

* Make DID wallet tests compatible with WalletStateManager lock checking

* check if removal belongs to the wallet

* unconfirmed

* did test cleanup

* fix temppuzhash to be an innerpuz

* clean up DID Wallet, add test for previously broken case

* added state_change call when coin added
added did_info for transaction sent

* update delete wallet parameters

* add comments to DID innerpuz

* fix duplicating bug with tx store

* re-enable did tests

* fix cc wallet bare raise

* remove unused assignation

* fix bare spend in did_wallet

* fix small bug

* messages are a cons box where the first value denotes type of message

* cc_wallet uses new parameter for get_confired_balance

* updates to the puzzle based upon suggestion by Richard

* update git submodule chia-blockchain-gui to did_branch

* updated gui to did_branch 76f9e6cea9f58a30984580b594631f3ae2679752

* updated gui to 041ac79be4af360d856a6527a4b8f4a074415a9a

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
Co-authored-by: Yostra <straya@chia.net>
Co-authored-by: William Blanke <wjb98672@gmail.com>
2021-09-07 12:48:41 -07:00
William Blanke cd38fc3ec6 updated gui to 041ac79be4af360d856a6527a4b8f4a074415a9a 2021-09-07 10:51:36 -07:00
dependabot[bot]andGitHub 4ef9a84661 Bump sortedcontainers from 2.3.0 to 2.4.0 (#5387) 2021-09-07 09:04:47 -07:00
Arvid NorbergandGitHub 6d60bfd58d add debug option to log all SQL commands (#8324) 2021-09-03 14:13:45 -07:00
dustinfaceandGitHub 2db9944687 plotting|util: Adjust plot refresh parameter (#8275) 2021-09-02 08:23:52 -07:00
dustinfaceandGitHub 17cb41ae16 plotting|tests: Cache plot data in PlotManager (#8009) 2021-09-02 08:22:48 -07:00
Chris MarslenderandGitHub 8ef39bb6bb Revert "bugfix" (#8298)
* Revert "bugfix (#3280)"

This reverts commit 0fb0dd43b9.

* Remove duplicate check
2021-09-01 17:10:29 -07:00
maohuazhuandGitHub 0fb0dd43b9 bugfix (#3280) 2021-09-01 10:58:57 -07:00
Kyle AltendorfandGitHub 5ef8202f2c Use negative amount to indicate send in wallet get_transactions output (#7990)
* Use negative amount to indicate send in wallet get_transactions output

* label as Amount sent: / Amount received:, not 1 / -1
2021-09-01 09:50:40 -07:00
dustinfaceandGitHub 17dea1b708 plotting|util|tests: Fix and test re-trying of plots which failed to load (#8279)
* Revert "plotting: Fix failed_to_open_filenames re-try interval"

This reverts 8a8abc41a8 which is part of 
#7848. Seems like i confused myself there.

* plotting|util: Introduce `retry_invalid_seconds` in plot refresh params

* plotting: Cleanup `failed_to_open_filenames`

* tests: Test re-try of plots which failed to load
2021-09-01 09:21:29 -07:00
Chris MarslenderandGitHub 745ad49f7d Random bluebox proofs (#8280)
* get random uncompact proofs from instead of always starting at the earliest uncompact

* Broadcast the messages from full_node to bluebox all at once instead of in multiple requests

* Fix lint issues

* Log when proof replacement is successful

* Remove old "batches_finished" logic
2021-08-31 12:42:06 -07:00
Jeff CruikshankandGitHub 5587375c03 RPC updates to support keyring migration and passphrase requirements (#8059)
* Added migrate_keyring daemon RPC support.
Passphrase requirements (min length, empty allowed) are now communicated to callers of the keyring_status RPC.
Refactored the keyring migration code to support interactive and non-interactive modes.

* Minor fixes for error handling during migration

* Cleaned up checking passphrase requirements

* Added a comment explaining why a failure is returned early in migrate_keyring if the keyring is already migrated

* Support for notifying the GUI and daemon when keyring status changes occur, including migration
2021-08-31 10:24:45 -07:00
Gene HoffmanandGitHub f18b217e5e Search for python newest to oldest (#8244)
See https://github.com/Chia-Network/chia-blockchain/issues/8135
2021-08-31 10:22:27 -07:00
Michael GraczykandGitHub 461fe82587 Fix type of FileKeyring.keyring_path (#8258)
This type is always non-None as it is assigned in __init__ from a call that returns non-None Path
2021-08-31 10:21:34 -07:00
Arvid NorbergandGitHub e32ddb765b calling SpendBundle.additions() or CoinSpend.additions() runs the CLVM program and parses the conditions outputs. It can be expensive and should not be done willy nilly (#8221) 2021-08-31 08:03:14 -07:00
Arvid NorbergandGitHub 463b971613 break problematic dependency where the streamable infrastructure depends on Program, G1Element, G2Element and PrivateKey. (#8237) 2021-08-31 08:02:40 -07:00
Arvid NorbergandGitHub 3f67425d06 simplify the block_tools test facility. We don't need to parse out the full conditions, just know what the total cost of the generator is (#8236) 2021-08-31 08:01:35 -07:00
Arvid NorbergandGitHub 70fb97c986 make TestCostCalculation deterministic and check against a specific cost (#8274) 2021-08-31 08:01:03 -07:00
paulhainsworth-chiaandGitHub 39ab18cb90 changelog1.2.5 (#8245) 1.2.5 2021-08-27 12:20:50 -07:00
Kyle AltendorfandGitHub f3be3897e9 only use the last line of chia version output in installhelper.py (#8239)
https://github.com/Chia-Network/chia-blockchain/issues/8234

The warning that is being output by `chia version` is causing confusion
when trying to parse the version.  This change ignores the warning by
only trying to parse the last line of the output as the version.  Other
changes should be considered such as not outputting the warning for
small commands like `--help` and `version`.

```
$ chia version
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@             WARNING: UNPROTECTED SSL FILE!              @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for '/home/altendky/repos/chia-blockchain/mozilla-ca/cacert.pem' are too open. Expected 0644
One or more SSL files were found with permission issues.
Run `chia init --fix-ssl-permissions` to fix issues.
1.2.5.dev0
```
2021-08-27 10:42:07 -07:00
Chris MarslenderandGitHub 64ba38f3b7 Test install/install-gui scripts (#8241) 2021-08-27 09:27:12 -07:00
Chris MarslenderandGitHub 86fbcf8249 Clean up a few more potential leftover files in chia-blockchain-gui (#8230)
* Clean up a few more potential leftover files in chia-blockchain-gui

* Make shellcheck happy
2021-08-26 20:22:05 -07:00
paulhainsworth-chiaandGitHub 4f8ab5a92b changelog 1.2.4 (#8229)
* changelog 1.2.4
1.2.4
2021-08-26 16:23:02 -07:00
Chris MarslenderandGitHub aa68ec2e05 Update chiavdf to 1.0.3 (#8228) 2021-08-26 16:17:24 -07:00
dustinfaceandGitHub 4130551b23 cmds|server|util: Fix, refactor and improve SSL permission checks (#8211)
* server|util: Refactor `verify_ssl_certs_and_keys`

Let it take two lists instead of one with an tuple holding optional
paths.

* util: Introduce `get_ssl_perm_warning`

* util: Drop some redundant brackets

* util: Introduce `get_all_ssl_file_paths`

* util: Print warnings for CLI only

* cmds|util: Call `check_ssl` for all CLI commands
2021-08-25 15:32:17 -07:00
wjblankeandGitHub a2de2d8f30 up request block rate limit for faster sync (#8204) 2021-08-25 10:25:40 -07:00
Chris MarslenderandGitHub 63860ee467 Update configure testnet commands to set dns introducer (#8205) 2021-08-25 09:23:51 -07:00
Chris MarslenderandGitHub 9c91f9ae5c Swap back to non-chia notarize-cli (#8199)
* Swap back to non-chia notarize-cli

* Update node for mac to 14.x - newer syntax in PRs on notarize-cli require the new version

* Have cleanup script get rid of our other global node packages so that 12->14 transition works
2021-08-24 14:04:14 -07:00
Kyle AltendorfandGitHub a72995495e Correct * to ** kwargs unpacking in time_out_assert() (#8160) 2021-08-24 10:56:42 -07:00