Commit Graph

5616 Commits

Author SHA1 Message Date
Matt Hauff
974e29c0dd
Create a CAT lineage store (#10181)
* Create a CAT lineage store

* Lint

* Fix migration

* Forgot await

* Bad SQL statement

* fix precommit

Co-authored-by: wjblanke <wjb98672@gmail.com>
2022-02-17 08:10:17 -08:00
Kyle Altendorf
f6e479cc07
Improve StructStream hints to support decimal and other parameters like int itself (#9949)
* Improve StructStream hints to support decimal and other parameters like int itself

* get SupportsIndex from typing_extensions
2022-02-17 07:35:13 -08:00
Arvid Norberg
34159d3529
optimize get_block_generator() (#10104)
* optimize get_block_generator()

* add a v1 compatible get_generator() to speed up get_block_generator() with v1 databases. Add test. Add error log in case generator_from_block() fails.

* speed up test_full_block_utils
2022-02-17 07:32:29 -08:00
Kyle Altendorf
d1516f9e00
import ConditionOpcode from actual definition (#10132) 2022-02-17 07:30:36 -08:00
Jack Nelson
b794d78b28
Fix memory leak in sync_store.py (#10216)
* switch to orderdict and use fifo

* workaround for older python versions

* oops

* Update sync_store.py

* fixed

* move comment for clarity

* Update sync_store.py
2022-02-17 07:29:42 -08:00
Kyle Altendorf
1df6793d51
filterwarnings = error (#10240)
* filterwarnings = error

* ignore some warnings

* Update pytest.ini
2022-02-17 07:28:55 -08:00
Kyle Altendorf
c50ac761fa
do not generate __init__.py in .pytest_cache (#10270) 2022-02-17 07:27:22 -08:00
Kyle Altendorf
5d2770cbdd
extend pools test workflow timeout to 60 minutes (#10271) 2022-02-16 19:10:37 -08:00
Arvid Norberg
a7c73e4125
use synchronous sqlite3 library in db conversion function (#10259) 2022-02-16 16:21:25 -08:00
Jeff
4920a464c1
Remove the "Cleaning up temp keychain in dir" message to reduce noise. (#10264)
* Remove the "Cleaning up temp keychain in dir" message to reduce noise.

* Remove unnecessary temp variable
2022-02-16 18:51:56 -05:00
Kyle Altendorf
767974cb93
reinstate pre-existing signal configuration on windows for services (#10263) 2022-02-16 15:26:03 -08:00
Kyle Altendorf
df858701e4
Ban setuptools 60.9.2 (#10269) 2022-02-16 15:21:00 -08:00
Arvid Norberg
ce533879e2
run pytest in strict asyncio mode. add missing @pytest.mark.asyncio (#10230) 2022-02-16 11:01:04 -05:00
Jeff
f8a6c54e1a
Fix to allow debugging services when launched alongside the GUI (#10233)
* Daemon RPCs `start_service` and `is_running` will additionally check
self.connections to determine if the service is running. When launching
services manually (e.g. when debugging), the GUI was attempting to have
the daemon relaunch an already-running service.

* Update chia/daemon/server.py

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

* Updates per feedback

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-15 14:43:50 -08:00
Arvid Norberg
0464265734
use monotonic clock in benchmarks (#10242) 2022-02-15 14:42:51 -08:00
Matt Hauff
f5ade1564c
Announcement hash should never be None (#8965)
* Announcement hash should never be None

* Allow origin ID to be anywhere in the coin set

* mypy

* Change to for/else format

* Fix comment

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

* Style change to loop

* tiny bad merge

* Add test

* Lint

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-15 14:42:07 -08:00
Gene Hoffman
7df694ffe3
Remove Azure MacOS CI build (#10231) 2022-02-15 15:27:41 -07:00
Chris Marslender
20a7078960
Update the GHA build for intel mac to work as the primary release workflow (#10232)
* Update the GHA build for intel mac to work as the primary release workflow

* Add dev hash logic to GHA version of intel mac installer
2022-02-15 15:27:31 -07:00
Kyle Altendorf
220e845d51
shutdown the weight proof process pool (#10163)
* shutdown the weight proof process pool

* use a context manager for the weight proof process pool executor

* record of the debug code

* mostly cleaned up

* suppress sync task cancellation propagation when awaited while closing

* breakup multi-second WeightProofHandler.validate_weight_proof with async sleeps

* move awaiting of sync task until after existing cancellation

* properly handle shutdown file with a new instance each time and a context manager

* cleanup
2022-02-15 12:22:23 -08:00
Matt Hauff
c7ea56114d
Remove unnecessary uint64 cast (#10235) 2022-02-15 10:23:21 -08:00
Kyle Altendorf
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
dustinface
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
Kyle Altendorf
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 Allen
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 Altendorf
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 Altendorf
ae9b7f4e7d
Disable CentOS 8 install script check (#10237) 2022-02-14 22:23:56 -08:00
Adam Kelly
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 Altendorf
cc63c7017b
Remove deprecated initial_num_public_keys_new_wallet from initial-config.yaml (#10221)
231ef6faf2/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 Altendorf
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
Arvid Norberg
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 Marslender
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 Marslender
366b6d090d
Update pyinstaller version (#10113) 2022-02-14 11:48:19 -08:00
Mariano Sorgente
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
Arvid Norberg
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
Kyle Altendorf
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 Norberg
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
ChiaMineJP
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 8365b7c89b 2022-02-11 12:36:29 -08:00
dustinface
b229211ea5
farmer: Move some member instantiations into Farmer.__init__ (#10179) 2022-02-11 12:34:34 -08:00
dustinface
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
wjblanke
231ef6faf2
updated changelog (#10184)
* updated changelog
2022-02-10 14:26:30 -08:00
wjblanke
419f88f296
updated soft fork to 2300000 (#10170) 2022-02-09 18:02:06 -08:00
Yostra
6315cb4a4b
Try all nodes when fetching a parent. (#10152)
* try all nodes

* lint
2022-02-09 16:19:02 -08:00
Pavel Yakovlev
8b4ab4bfde
fix full sync on DB v2 (#10157)
* Update hint_store.py

* Update db_upgrade_func.py

* Fix a hint by black.

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2022-02-09 09:11:01 -08:00
William Blanke
3b160139f8
pinned to gui to df2fb1a8e2 2022-02-08 21:19:43 -08:00
Jeff
2314f47ecc
Post a state change when an offer is added or soft-cancelled. More offer (#10153)
state changes may be needed in the future, but for now the GUI will be
able to refresh wallet balances in response to offer soft-cancellation
and addition.
2022-02-08 17:58:59 -08:00
Jeff
67705e0907
Ensure wallet/db directory exists before attempting to migrate a wallet (#10151)
db from standalone_wallet/wallet/db.
2022-02-08 16:51:30 -08:00
William Blanke
68bca61df0
updated gui to 866077d961 2022-02-08 13:01:33 -08:00
Chris Marslender
66fae97b76
Don't return from sync_changed - create payloads list and pass it along (#10149) 2022-02-08 12:58:53 -08:00
Mariano Sorgente
613cdc47f2
Ms.wallet fixes (#10094)
* wallet fixes

* Don't show false positive synched

* Code cleanup and lint

* Fixes

* Revert issue

* Fix reorg issue

Co-authored-by: wjblanke <wjb98672@gmail.com>
2022-02-07 16:38:45 -08:00