Commit Graph
14659 Commits
Author SHA1 Message Date
matt 915f15cdee added dlo related test 2021-11-16 13:29:42 +00:00
matt c75173dc99 add claim offer related functions to dl and dlo wallets 2021-11-15 14:54:33 +00:00
Kyle Altendorf 34ca4d89f5 explicit exceptions etc for data store 2021-11-12 15:16:14 -05:00
Kyle Altendorf 731ddf3f7e adjust data store proof of inclusion 2021-11-12 10:47:55 -05:00
Kyle Altendorf 2f1431555b nit 2021-11-12 09:15:56 -05:00
Kyle Altendorf 27ab2c83bc remove node status column from tests 2021-11-12 08:53:56 -05:00
matt d7618c8cba further along test development 2021-11-11 17:50:54 +00:00
Kyle Altendorf 901e492e5b lint 2021-11-11 09:05:01 -05:00
Kyle Altendorf 5bd8b3dbaa Merge branch 'main' into atari 2021-11-11 08:57:35 -05:00
William Blanke d2b6f28a3c bumped blspy to 1.0.7 2021-11-10 11:26:50 -08:00
Florin ChiricaandGitHub 13a49c7a2e Fix wallet gossip. (#8709)
* Increase wallet sleep.

* Fix wallet gossip.

* Type checking.

* Add callable.

* Address comment.

* Remove Callable.
2021-11-10 10:39:56 -08:00
Earle LoweandGitHub cd0be3bd2c Update CA submodule to latest (#9219) 2021-11-10 09:50:21 -08:00
matt 6282c4ff99 first crack at datalayeroffer wallet 2021-11-10 17:23:37 +00:00
almog 4c950d06c8 fix typeing 2021-11-10 17:08:43 +02:00
almog c1d3c58056 add change status test 2021-11-10 17:06:20 +02:00
almog 356e4796be add change status test 2021-11-10 17:06:02 +02:00
almog 3b61afe672 add status to Root add test 2021-11-10 16:52:29 +02:00
almog ec9d256b65 remove redundant column from queries 2021-11-10 16:42:56 +02:00
almog dfd6b650c0 remove unneeded node status column 2021-11-10 16:33:04 +02:00
Kyle Altendorf e4a67e9be6 fixup 2021-11-10 09:12:11 -05:00
almog c8f0967659 add status columns to node and root tables 2021-11-10 15:21:29 +02:00
JeffandGitHub c889d08756 Start plotting the next valid item in the queue, not the last (#9205) 2021-11-09 13:43:35 -08:00
William Blanke 9051fc168a updated gui to 5e84f869fd80794dbd8c2c31aa7ca923e1b91154 2021-11-09 13:36:04 -08:00
JeffandGitHub dfc6b7b835 Fixes for the --passphrase-file option (#9166)
* Fix support for --passphrase-file when using chia start

* Strip trailing CR/LFs when reading the passphrase from a file

* Improve error handling when --passphrase-file specifies a bad passphrase

* Handle case where the default passphrase is cached

* Formatting change made by black

* Escape hatch for the unlikely case that someone is using a passphrase with trailing CR/LFs
2021-11-09 11:00:06 -08:00
Kyle AltendorfandGitHub f2b3042550 Stop generating the chia root symlink generation if the directory is not created (#8829)
* Stop generating the chia root symlink generation if the directory is not created

* add missing updated -core-util.yml workflows

* Revert "add missing updated -core-util.yml workflows"

This reverts commit 83fd901fb8.
2021-11-09 10:59:32 -08:00
Kyle AltendorfandGitHub 4c1f032e3a Use same CI triggers for super linter workflow as for tests (#9173)
The existing setup results in the super linter not being run on `main` and being run twice for PRs and once for non-PR branches.  The new setup runs for `main`, any tag, and any PR.  This is consistent with the existing test workflows.

Consider https://github.com/Chia-Network/chia-blockchain/blob/54eb13c66d1e8c169cd241c129ddc60cd487871a/.github/workflows/build-test-ubuntu-core-ssl.yml#L6-L14 as an example.
2021-11-09 10:58:39 -08:00
dustinfaceandGitHub f3526a909d tests|github|pre-commit: Improve build-workflows.py and make it a pre-commit hook (#8728)
* tests: Move `default_replacements` into `generate_replacements`

* tests: Directly use `root_test_dirs`

Instead of passing it into `subdirs`

* tests: Make `build-workflow.py` callable from everywhere

* tests: Adjust the output of `build-workflows.py`

* tests: Add `-f` to `build-workflows.py` to allow failing on CI

* github: Run `build-workflows.py`

* pre-commit: Run `build-workflows.py` as first hook

* tests: Skip DID wallet tests until they are reliable and fixed

* tests: Skip `test_using_legacy_cryptfilekeyring`

* tests|github: Drop `root_test_dirs` and just search in all directories

This removes the requirement to add new test directories to the 
`testconfig.py`. This change uncovered two more tests which were not 
enabled on CI because their parent dir's were not added to 
`root_test_dirs`.
- `tests/weight_proof/test_weight_proof.py`
- `tests/util/test_struct_stream.py`

* tests|github: Don't list test files, use `tests/dir/tests_*.py` instead

* test: Improve workflow update checks by comparing old vs new

Instead of doing a `git diff` which can lead to false positives if there
are other local changes unlrelated to test workflows. This also fixes
the issue that newly added files were not tracked by `git diff` which
means the script / the CI would trigger an alert.

* tests: Adjust `build-workflows.py` to work as expected on windows

* tests: Read/Write in bytes to avoid and detect unexpected `\r\n`

* tests: Skip `test_pool_cmdline.py`
2021-11-09 10:57:40 -08:00
JeffandGitHub 1fd7197df0 CLI fixes for plotting with madmax (#9197)
* Fixed waitforcopy when using madmax CLI

* Fixed madmax CLI usage with the tmptoggle -G option

* Don't specify a default for tmpdir2

* Removed defaults for tmp/tmp2/final dirs. Values must be provided.
2021-11-09 10:52:09 -08:00
almog 4f8e407279 try init wallet_manager with datalayer service, cli broken 2021-11-08 17:57:31 +02:00
almog 95083d768c try to make rpc tests pass 2021-11-07 15:00:30 +02:00
J. EckertandGitHub 54eb13c66d Je.bug template (#9167)
* Update bug_report.md

new bug submission template

* new issue form

This form replaces the old with dropdowns and required text fields.

* Update bug_report.yaml

corrected config with better validations
2021-11-06 13:40:59 -07:00
FazendaPoolandGitHub a27c10ae50 Farmer reports Chia version to the Pool without breaking protocol (#9067)
* famer reports chia version to pool without breaking protocol

* fix linting

* fix linting
2021-11-04 20:24:46 -07:00
paulhainsworth-chiaandGitHub b74a3f3849 changelog1.2.11 (#9137)
* changelog1.2.11
1.2.11
2021-11-04 17:17:00 -07:00
YostraandGitHub 39c9bc1a41 change constant (#9130) 2021-11-04 15:29:43 -07:00
Adam KellyandGitHub 869f39893c Plotnft fees cmdline fix (#9129)
* Add fees to plotnft commandline and RPCs

* Return calculated fee based on number of transactions

* Extend tests to support fees. Default fee to 0 if not present in RPC call.

* Make plotnft cmdline fees use XCH, like

* fix validator

* cmdline tests

* Remove duplicate option
2021-11-04 15:29:11 -07:00
Chris MarslenderandGitHub 284d05b364 Add cleanup action to m1 to make sure we start wiht a fresh WD (#9126) 2021-11-04 15:38:55 -05:00
Chris MarslenderandGitHub f93787d942 ARM64 installer updates (#9120)
* Refactor the whole workflow to run in a container rather than just one step

* Update to chianetwork/ubuntu-18.04-builder:latest image

* Remove some steps that install things that are now pre-baked to the container

* Remove caches for now

* Update path to github workspace

* Add clean workspace action

* Fix linux installer artifact path
2021-11-04 15:19:06 -05:00
Adam KellyandGitHub 996f518810 Plotnft fees (#9116)
* Add fees to plotnft commandline and RPCs

* Return calculated fee based on number of transactions

* Extend tests to support fees. Default fee to 0 if not present in RPC call.
2021-11-04 10:44:36 -07:00
8a028c3594 Ms.mempool locking (#9050)
* Prority locking to consensus

* Remove pstats

* Linting

* Do some stuff outside of lock

* Fix startup

* Add log timings

* Try some different locking

* Add limit

* catch excp

* CLVM inside lock

* Try using a semaphore instead

* use events for lock queue

* test

* Add logging for message types

* type

* remove seed

* check new peak waiters

* correct FullNodeAPI self.full_node.new_peak._waiters typo

* correct logging string typos

* only warn about new_peak Waiters if there is at least 1

* remove no-longer-accepted parameter to FullNode.peak_post_processing()

* only warn about respond_transaction Waiters if there is at least 1

* lint

* Change some constants

* Small fix and logging changes

* Put message types outside

* Change some log levels so we can test with info

* More logging

* Increase rate limits but decrease paralelism

* tweaks

* Log dropped tx

* Fix pool rpc test

* Test fixes

* Mempool optimization

* Remove from seen if fails

* Increase queue sizes

* Message types info

* More test and logging

* Small changes to networking just in case

* Decrease logging

* Decrease logging even further

* Decrease logging even further even further

* Decrease logging 3

* Transaction queue

* Don't cancel tasks or close connection

* Cancel tasks on disconnect (for shutdown purposed)

* Fix typo

* Catch cancelled

* Do multiple at a time

* More accurate farmer response time

* More efficiently create tasks

* Increase queue size and priority by fee

* Revert priority

* Don't re-request too many times for dropped TX

* Handle cancelled error so we don't go into a bad state

* Catch cancelled in syncing tasks

* Reduce new_peak_sem to improve performance

* Less bytes conversion

* Missing file, and 2 workers for CLVM

* Validate BLS in a new thread

* tests

* Change semaphore constants

* correct a cancellation triggered exception and assertion

* Fix send_transaction, dont use BaseException, fix tests

* Fix more tests

* only log transaction handler cancellation in debug

* typing in log

* move unfinished validation to diff proc

* it is asyncio.CancelledError

* Add a test for bad signature

* Fix more tests, reduce logging, lint

* One more lint

* blockchain tests, pass bytes directly, single call

* Try to fix rl_wallet failures

* Fix mempool test

* catch everything

* Don't test RL wallet

* Fix more tests and return error code

* Improve error handling in multiprocess

* Add pre-validation time

* Add pre-validation time in logs, and revert pytest.ini changes

* Add log correctly

* Ms.bls cache experiment (#9115)

* Logging for cache

* Less logging

* Return to original plan

* Clean up

* Remove coment

* Remove log

* formalize LockQueue shutdown

* Comments

* Fix blockchain test

* Improve cache

* Remove logs

* Fix sign_coin_spends

* Fix pool wallet

Co-authored-by: Kyle Altendorf <sda@fstab.net>
Co-authored-by: Yostra <straya@chia.net>
2021-11-04 09:29:05 -07:00
JeffandGitHub c80208cda9 Terminate madmax/bladebit on Windows on Ctrl-C (#9113) 2021-11-04 08:59:13 -07:00
wjblankeandGitHub c1796c3b63 switch to forked dnspython v2.2.0 (#9107) 2021-11-03 16:45:16 -07:00
wjblankeandGitHub 1c201c49d5 510 (#9109)
5.1.0 multidict
2021-11-03 16:44:29 -07:00
Kyle AltendorfandGitHub eb62a28519 Add missing .name() in WalletStateManager.get_filter_additions_removals() (#8958) 2021-11-02 08:44:43 -07:00
matt 64e20308d9 added test for report function
fixed some wallet announcement stuff
2021-11-02 16:33:21 +04:00
justinenglandandJustin England 479f89c9b0 friendlier class calls 2021-11-01 22:39:26 -06:00
justinenglandandJustin England acea2fccb4 black 2021-11-01 22:39:26 -06:00
justinenglandandJustin England 7aee94c82b removing is not none 2021-11-01 22:39:26 -06:00
justinenglandandJustin England a7581a4692 adding any variable device 2021-11-01 22:39:26 -06:00
justinenglandandJustin England 99cbdedc1c using None again 2021-11-01 22:39:26 -06:00
justinenglandandJustin England f79f07ab98 changing bool to string 2021-11-01 22:39:26 -06:00