Commit Graph
19 Commits
Author SHA1 Message Date
Matt HauffandGitHub 40db4635a8 [LABS-245] Enable PEP604 Ruff rules (#20269)
* Enable PEP604 Ruff rules

* Fix harcoded signature in test

* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00
Richard KissandGitHub cbfd5a53a2 Move chia.consensus.fee_estimate_store to chia.full_node (#19705)
The `chia.protocols` module no longer depends upon `chia.full_node`
2025-06-12 11:13:53 -07:00
6050235bdb [CHIA-3043] Add (hopefully) non-controversial ruff rules (#19684)
* Add (hopefully) non-controversial ruff rules

* mypy-exclusions.txt

* PIE

* Fix pre-commit?

* PYI

* RSE

* S + ignores

* Whitespace fix

* Re-add build-init-files.py

* Add comment about security ignores

* Update mypy-exclusions.txt

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

* Fix the executable status of build-init-files.py

* Set executable bit for tools/run_block.py and readd shebang

* Fix new errors

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-06-11 08:36:08 -07:00
Richard KissandGitHub 5617026604 The chia.protocols module no longer depends upon chia.full_node. (#19661) 2025-06-02 10:38:17 -05:00
Kyle AltendorfandGitHub e446d6b726 use chia_rs directly for sized ints (#19303)
* use chia_rs directly for sized ints

* Update data_layer_rpc_api.py
2025-02-24 14:33:09 -08:00
Matt HauffandGitHub 604fc1feb0 [CHIA-1732] Add Ruff specific linting rules (#18845)
* Add Ruff specific linting rules

* Further tighten ignore list

* Address comments by @altendky

* One more comment @altendky
2024-11-14 15:58:12 -07:00
6c90a76b56 Tighten up ruff ignore list (#18837)
* Tighten up ruff ignore list

* Okay that fix was indeed unsafe

* enable type-name-incorrect-variance

* enable literal-membership

* enable non-augmented-assignment

* enable useless-return

* enable global-variable-not-assigned

* -

* fixup

* Clean up roff.toml from annotations

* use ignore instead of explicit re-export

* use more descriptive names

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-11-12 12:19:31 -07:00
Kyle AltendorfandGitHub 9c8557a1f8 Remove Python 3.8 support and update source to 3.9 standards (#18687)
* manual python 3.8 removals

* poetry

* pyupgrade

* black

* isort

* manually tidy imports

* work around shadowed type

* catch up build network protocol files for pyupgrade changes

* placate pylint

* re-enable 20.04

* placate flake8
2024-10-16 14:21:15 -07:00
Almog De PazandGitHub 3cecc27dd2 ad.fee_estimation_fixes (#18262) 2024-07-08 09:45:03 -07:00
Arvid NorbergandGitHub 5a5cb2e58e simplify fee estimator by not leaking MempoolItem into its interface (#14685) 2023-02-27 16:34:11 -06:00
Kyle AltendorfandGitHub ff5ef6e073 remove leading newlines from indented code blocks (#14653)
* remove leading newlines from indented code blocks

* catch another one
2023-02-23 21:53:48 -06:00
Adam KellyandGitHub 06eb18217e Test get_bucket_index (#14294)
* Test get_bucket_index

* Apply epsilon to test constants

* Simplify get_bucket_index
2023-01-13 11:16:23 -06:00
Adam KellyandGitHub b71eaa0a8e Call method to process transactions added to mempool in Fee Estimator (#14290) 2023-01-06 14:18:52 -06:00
Adam KellyandGitHub 8e764eb05e Fix computation of moving averages (#14288) 2023-01-06 11:59:30 -06:00
Adam KellyandGitHub d658de4e08 Refactor get_bucket_index (#14270) 2023-01-05 10:56:23 -06:00
Adam KellyandGitHub 2762490fd1 Create logger object in module instead of passing it in (#14173) 2022-12-16 20:52:47 -06:00
Adam KellyandGitHub ecb413d888 Remove incorrect log warning message. (#13857)
Remove incorrect log warning message. The Bitcoin fee estimator is designed to ignore calling remove_tx multiple times for the same tx.
2022-11-09 14:18:38 -06:00
Adam KellyandGitHub 4dfa87c31b Fix math error in pass/fail percentage calculation (#13653) 2022-10-18 19:59:52 -05:00
Adam KellyandGitHub 73e9d15cf7 Fee estimation. (#13645) 2022-10-18 09:12:22 -05:00