Commit Graph
14659 Commits
Author SHA1 Message Date
Matt HauffandGitHub c7ea56114d Remove unnecessary uint64 cast (#10235) 2022-02-15 10:23:21 -08:00
Kyle Altendorf 7563afd42f Debug PEP 440 local versions all of a sudden (#10241)
* empty

* Ban setuptools 60.9.1
2022-02-15 11:27:32 -05:00
Kyle AltendorfandGitHub 605e1c9da4 Debug PEP 440 local versions all of a sudden (#10241)
* empty

* Ban setuptools 60.9.1
2022-02-15 07:38:57 -08:00
98971de9d5 pre-commit: Add a new hook to run isort (#8827)
* pre-commit: Add a new hook to run `isort`

* contributing: Add hint about `isort`

* add isort to dev deps, ignore existing .py files, use black profile

* long list to lines not comma delimited

* isort: Update and sort ignore list to match latest `main`

* add bash command line to generate isort extend skip list (#3)

* add bash command line to generate extend skip list

* tidy

* isort: More files to ignore after rebase

* tests: Fix `test_wallet_user_store.py` after rebase

* Some fixes after rebase

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-15 07:28:53 -08:00
Florin Chirica d37a0e708e Checkpoint deterministic randomness. 2022-02-15 15:58:33 +02:00
matt 9d86d49062 update to new version of singleton
black
2022-02-15 13:34:15 +00:00
Kyle AltendorfandGitHub 65c0829f66 madMAx executable discovery error handling cleanup (#9501)
* Add missing version=None for

* Log errors in get_madmax_install_info() instead of printing
2022-02-14 22:28:42 -08:00
William AllenandGitHub ff88892e73 git short hash in dev artifact (#10195)
* Adding build-linux-arm64-installer changes

* Adding changes to build installers to include short hash in dev artifact

* Fixing s3 dmg path for azure pipelines dev build

* Testing shell: bash for win workflow

* flipping slashes for bash env

* Formatting build windows installer workflow

* Reformatting build windows installer workflow
2022-02-14 22:25:09 -08:00
Kyle AltendorfandGitHub bd845f5d3a Test CLI installer on Rocky (#10134)
* Test CLI installer on Rocky

* Add Rocky support to install.sh

* Update test-install-scripts.yml

* oops

* also sudo for rocky install.sh testing

* fix indentation

* oops
2022-02-14 22:24:19 -08:00
Kyle AltendorfandGitHub ae9b7f4e7d Disable CentOS 8 install script check (#10237) 2022-02-14 22:23:56 -08:00
41717337e6 This patch enables fees for the plotnft commands - create, claim, joi… (#9968)
* This patch enables fees for the plotnft commands - create, claim, join, and leave.

It also corrects a mismatch in the wallet code that appeared to expect Announcement objects, but actually required bytes.

* Update to using Announcement class. Publish both claim tx and fee tx for correct wallet accounting.

* Update keysearch for new wallet

* Update test for fee, and update wallet_id invariant

* Rename variable tracking coin in absorb SpendBundle

* Update RPC failure cmdline diagnostic

* Remove fee parameter in sign method. Add publish transaction method. Add  entry in RPC API replies.

* Fix fee tx in absorb. Update absorb tests to test for fees

* conflict

* lint

Co-authored-by: William Blanke <wjb98672@gmail.com>
2022-02-14 20:07:06 -08:00
Kyle AltendorfandGitHub cc63c7017b Remove deprecated initial_num_public_keys_new_wallet from initial-config.yaml (#10221)
https://github.com/Chia-Network/chia-blockchain/blob/231ef6faf20fba7463831a5015edee649a1d5d49/CHANGELOG.md
> Fixed issues where the wallet code would not generate enough addresses when looking for coins, which can result in missed coins due to the address not being checked. Deprecated the config setting initial_num_public_keys_new_wallet. The config setting initial_num_public_keys is now used in all cases.
2022-02-14 12:53:47 -08:00
Kyle AltendorfandGitHub 884ebd902b remove chia.util.clvm pass-through file (#10130)
* remove chia.util.clvm pass-through file

* in tests too
2022-02-14 12:52:14 -08:00
229eea9b55 Log slow block height (#10160)
* improve logging of blocks that are slow

* add profiler to test_full_sync

* Update tools/test_full_sync.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-14 12:51:21 -08:00
Chris MarslenderandGitHub eb3ed142e0 Crawler RPC (#10141)
* Add crawler RPC server

* Generate private keypair for crawler

* Bring over cleanup changes from the last closed PR

* Update the crawler RPC information to be its own subsection within seeder

* Add sleep before crawling to let the daemon connection get set up

* Wait for the actual callback to not be None, instead of just a random sleep interval

* Rework crawler/dns seeder to use the daemon + normal chia start process rather than the old system intended for the standalone repo

* Update configure testnet to work with seeder config

* Add back the crawler/seeder options from the standalone version

* Remove the check for none/sleep. Not needed when this is started by the daemon

* Add real data to the get_peer_counts endpoint

* Lint

* Fix calls to configure from init

* Turns out we still might sometimes move too quick before daemon/state changed callback is ready

* Add peer counts in the state_changed callback method

* Add a setting for peer_connect_timeout in the seeder: section so we can control it just for crawler

* start_seeder

* Pass config/root_path to the DNSServer so it can also use the configured crawler DB Path

* change in () instead of if/or

* Remove unnecessary return
2022-02-14 11:48:35 -08:00
Chris MarslenderandGitHub 366b6d090d Update pyinstaller version (#10113) 2022-02-14 11:48:19 -08:00
Mariano SorgenteandGitHub 7fa1861def Ms.wallet refactor (#10146)
* wallet fixes

* Don't show false positive synched

* Code cleanup and lint

* Fixes

* Revert issue

* Fix reorg issue

* WIP wallet node

* More wallet refactor

* More wallet changes

* More

* Fix subscription bugs

* Fix some tests

* Fix pool tests

* More tweaks

* Lint and small issues

* call update_ui at the correct points

* Small changes

* new peak queue

* Fix peer height issue

* Rollback more for safety, and tweak logging

* Small WSM style fixes

* Change fork point in long_sync

* More fixes with real world testing

* Fix reversed filter

* Fix function name

* Fix coin store bug properly

* Raise CancelledError

* Fix rollback issue

* Lint

* Small fix

* Fix CAT issue

* Fix test trades race condition

* Fix test trades race condition

* Try to reduce flakiness

* Test coin store and fix additional method

* Improve flakiness
2022-02-14 11:28:36 -08:00
Kyle AltendorfandGitHub 3125460d1e Merge pull request #10180 from Chia-Network/fc.fix_rpc
Try to fix RPC.
2022-02-14 14:00:01 -05:00
Kyle AltendorfandGitHub d24c9943f0 Merge pull request #10168 from Chia-Network/optimize_singleton_v1.1
Optimize Singleton v1.1
2022-02-14 13:59:41 -05:00
matt 12c121e694 finish RPC tests 2022-02-14 17:47:28 +00:00
Matt Hauff c4665f5d44 Comments by @altendky 2022-02-14 09:30:23 -07:00
Florin Chirica b61346bad2 Lint. 2022-02-14 17:55:08 +02:00
Florin Chirica 85e52e73bd Flake8. 2022-02-14 17:40:33 +02:00
Florin Chirica 271f1033dd Add optimizations. 2022-02-14 17:20:25 +02:00
Matt Hauff 48fcda8bb2 Optimize 1 to ONE 2022-02-14 08:15:32 -07:00
matt 0667f2c9a9 save newer coin info over older info 2022-02-14 14:53:19 +00:00
Florin ChiricaandGitHub 0b397b6a85 Merge branch 'atari' into fc.fix_rpc 2022-02-14 14:11:25 +02:00
Arvid NorbergandGitHub e47958605a Tolerate missing hints (#10207)
* update db-upgrade test to run faster, and also parameterized on whether the hints table is present

* tolerate missing hints table in db conversion function
2022-02-11 18:30:56 -08:00
fc95c638a3 Update to handle the NodeJS 16 dependency (#9921)
* preliminary testing of in-directory n on ubuntu always

* Use more n chiaminejp (#9971)

* Added n as a local npm dependency

* Fixed an issue where `install.sh` always tried to run `sudo apt install bc -y` even if `bc` is installed already

* Added validations and useful outputs for `start-gui.sh`

* Fixed lint error and use shell functions for readability

* Replace tags with spaces

* Skip installing python39 on RH like OS if it is already installed

* Fixed an issue where start-gui.sh failed silently if venv is not activated

* Suppressed message from pacman

* Support CentOS7

* Fixed typo

* Reduced unnecessary install messages

* Fixed end of file

* Added npm_global/__init__.py to pass CI

* Fixed lint errors

* Install python/sqlite from source on AMZN2. Clear old venv when changing python version on install

* Suppress unnecessary command outputs

* Suppress outputs

* Added centos7/8 to install test

* A minor fix

* Fixed yaml syntax error

* Fixed an issue where test-install-scripts failed in CentOS

Co-authored-by: ChiaMineJP <admin@chiamine.jp>
2022-02-11 18:30:19 -08:00
Arvid NorbergandGitHub 54053178bf remove constraint on v1 database 'peak'-index. Constraints like this require at least sqlite 3.9 (2015) (#10199) 2022-02-11 13:05:13 -08:00
ChiaMineJPandGitHub 4494c66cf3 Update version prop in package.json of gui (#10192)
* Update version prop in package.json of gui

* Added type hints

* Fixed a lint error
2022-02-11 13:04:45 -08:00
William Blanke b091a528d0 updated to 8365b7c89bedc98ecc785161e07be440413e62ba 2022-02-11 12:36:29 -08:00
dustinfaceandGitHub b229211ea5 farmer: Move some member instantiations into Farmer.__init__ (#10179) 2022-02-11 12:34:34 -08:00
dustinfaceandGitHub ed70c2663a farmer: Wait until xch_target_address is in the config in setup_keys (#10185)
* farmer: Wait until `xch_target_address` is in the config in `setup_keys`

* farmer: Reload config in `setup_keys` before `xch_target_address` checks
2022-02-11 12:33:53 -08:00
Kyle AltendorfandGitHub 8e773454da Merge pull request #10143 from Chia-Network/get_root_with_status 2022-02-11 14:37:25 -05:00
Matt Hauff a7f7862b3e Remove debugging puzzle 2022-02-11 12:32:00 -07:00
Matt Hauff e9b2bfc551 Inline some functions and remove some useless arguments 2022-02-11 12:29:29 -07:00
matt 2181c4df3b mint NFT with RPC calls test 2022-02-11 17:46:24 +00:00
Kyle Altendorf d8d0b653a0 update mypy strict list 2022-02-11 12:16:44 -05:00
Florin Chirica ca6745cb15 Initial commit key value hinting. 2022-02-11 14:29:49 +02:00
wjblankeandGitHub 231ef6faf2 updated changelog (#10184)
* updated changelog
2022-02-10 14:26:30 -08:00
Florin ChiricaandGitHub d6e4063249 Type checking. 2022-02-10 21:52:25 +02:00
Florin ChiricaandGitHub a3f86eabf7 Update data_layer_rpc_api.py 2022-02-10 21:35:24 +02:00
Florin ChiricaandGitHub ff8dc90b2b Default to 0.0.0.0 2022-02-10 21:05:53 +02:00
Florin Chirica 960d119ee6 Try to fix RPC. 2022-02-10 20:52:35 +02:00
matt 3b939d87d9 fix adding duplicates bug 2022-02-10 17:21:43 +00:00
matt 3f6fe58128 send it back and remove NFTs after they're sent 2022-02-10 16:27:58 +00:00
matt 6709920e1b receive and send it back! 2022-02-10 14:41:56 +00:00
almog 9e6e41cc8d test get_history rpc 2022-02-10 16:18:38 +02:00
almog c0d8aaa1a4 lint 2022-02-10 13:43:01 +02:00