Jude Allred
28ad73bb80
PR iterations -- Tidy structured error type.
...
-- rename structuredError.structuredMessage to message
-- remove the legacy 'message' field from structuredError.data, allow the top level 'error' string to preserve that for us.
-- remove the 'originalError' field from structuredError
-- rename structured_errors to rpc_errors
2026-02-11 13:41:00 -05:00
Jude Allred
4db6e4e954
Test repair
2026-02-11 13:41:00 -05:00
Jude Allred
8f11d892ff
Use structured RPC errors
2026-02-11 13:40:56 -05:00
Earle Lowe and GitHub
b6c777ec3b
Add context handler features to MempoolManager ( #20343 )
...
* Add context handler features to MempoolManager
* No need to manually shut_down mempoolmanager
* Fix up issues with ordering in full node
* Fix dumb programmer issues
* Fix up some bugbot issues
* Move timing to inside context manager
* fix wrong indent
2025-12-15 09:48:34 -08:00
Earle Lowe and GitHub
6f5c201fc8
Convert to use rpcclient context to ensure proper teardown cleanup ( #20329 )
2025-12-15 09:45:26 -08:00
Amine Khaldi and GitHub
e129562e53
CHIA-2515 Simplify MempoolItem by constructing SpendBundle on demand from its components ( #20123 )
...
Simplify MempoolItem by constructing SpendBundle on demand from its components.
2025-10-06 18:30:13 -07:00
Arvid Norberg and GitHub
f17dedd5be
bump chia_rs dependency ( #20023 )
2025-09-05 06:31:21 -07:00
Matt Hauff and GitHub
a803dc0fa6
[CHIA-3633] August 2025 pass of Ruff linting rules ( #19929 )
...
* Enable Ruff `PLR1704` (`redefined-argument-from-local`)
* Enable Ruff `PLR5501` (`collapsible-else-if`)
* Enable Ruff `PLW2901` (`redefined-loop-name`)
* bad change
* Enable Ruff `RUF043` (`pytest-raises-ambiguous-pattern`)
* Enable Ruff `RUF046` (`unnecessary-cast-to-int`)
* Enable Ruff `RUF052` (`used-dummy-variable`)
* Remove unused ignore `UP006`
* One mis-signaled regex
* Comments by @altendky
* bad change, my bad
2025-08-11 14:39:12 -07:00
Richard Kiss and GitHub
4e6038ba3b
Simplify dependencies wrt chia.server ( #19895 )
...
Remove some dependencies in `chia.server`.
2025-08-06 12:03:47 -07:00
Kyle Altendorf and GitHub
32ca9c0804
by service not layer ( #19715 )
...
* by service not layer
* monkey patch fixup
2025-06-16 14:31:51 -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
Kyle Altendorf and GitHub
a90f04ff48
move chia.types.aliases to chia.server.aliases ( #19535 )
...
* move `chia.types.aliases` to `chia.server.aliases`
* touchup
2025-04-25 13:15:04 -05:00
Kyle Altendorf and GitHub
fcd20ce543
more chia_rs directly ( #19520 )
...
* more `chia_rs` directly
* maybe
* undo, kinda
2025-04-21 14:05:05 -05:00
Kyle Altendorf and GitHub
46aa20a1ce
use chia_rs directly for spend bundle conditions ( #19470 )
2025-04-07 10:25:05 -07:00
Matt Hauff and GitHub
a6a5a35c7d
[CHIA-1251] Add puzzle hash generation to action scopes ( #19283 )
...
* (squash) Add puzzle hash generation to action scopes
* Add comment for unused/last_index
2025-04-03 15:34:07 -05:00
Amine Khaldi and GitHub
8b2b830da6
CHIA-2538 Remove no longer needed item_inclusion_filter in the mempool ( #19367 )
...
Remove no longer needed item_inclusion_filter in the mempool.
2025-03-13 11:51:23 -07:00
Kyle Altendorf and GitHub
d50b6e0883
use chia_rs directly for sized bytes ( #19326 )
2025-02-28 09:35:25 -08:00
Kyle Altendorf and GitHub
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
Kyle Altendorf and GitHub
30c4ef2689
use chia_rs directly for consensus constants ( #19301 )
2025-02-21 10:03:17 -08:00
Arvid Norberg and GitHub
aff979242e
bump chia_rs to 0.18.0 ( #19133 )
2025-01-14 08:26:34 -07:00
Matt Hauff and GitHub
2808ee2446
[CHIA-1681] Replace black with Ruff ( #18813 )
...
* Replace black with Ruff
* Change build_network_protocol_files.py
2024-11-04 15:22:18 -07:00
Matt Hauff and GitHub
73e4a5bbea
[CHIA-1680] Finish replacing flake8 with Ruff ( #18802 )
...
* Apply ruff unsafe fixes
* Manually fix tuples with `as`
* Remove all references to flake8
2024-11-04 08:59:57 -07:00
Arvid Norberg and GitHub
f15d0047a2
Move spend_sim.py into tests ( #18743 )
...
* move spend_sim into tests
* use run_block_generator2() instead of get_name_puzzle_conditions() in CostLogger. It's only used to compute the cost of a spend bundle, in tests.
2024-10-22 12:08:40 -07:00
Kyle Altendorf and GitHub
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
Arvid Norberg and GitHub
837f0e2d47
bump chia_rs dependency ( #18695 )
...
bump chia_rs dependency and accomodate for changes to SpendBundleConditions and run_block_generator()
2024-10-11 13:43:31 -07:00
matt-o-how and GitHub
b1893c7f8d
Rename Spend to SpendConditions ( #18438 )
...
* initial commit
* more test fixes
* avoid using try except
* black
* isort tests
* fix line endings
* only support current version of chia_rs
2024-08-14 09:25:49 -07:00
Arvid Norberg and GitHub
956894dbd0
use rust version of SpendBundle ( #17430 )
2024-07-08 09:47:28 -07:00
Almog De Paz and GitHub
3cecc27dd2
ad.fee_estimation_fixes ( #18262 )
2024-07-08 09:45:03 -07:00
Arvid Norberg and GitHub
6dceabe2d3
[CHIA-691] simplify MempoolItem ( #18143 )
...
make MempoolItem and InternalMempoolItem contain the SpendBundleConditions directly, rather than the NPCResult. A mempool item is guaranteed to be valid, so the error state of NPCResult will never be engaged anyway.
2024-07-08 09:44:49 -07:00
8eb41c59d7
bump chia_rs to 0.7.0 ( #17909 )
...
* bump chia_rs to 0.7.0 and transition using sized ints and sized bytes from chia_rs
* transition StructStream to use the version from chia_rs
* Initial port of ConsensusConstants to Rust
* Revert max cost calculation to use int for now
* Remove SizedBytes, since it was moved to chia_rs
* Remove test_struct_stream, since it was moved to chia_rs
* use [0] * 100 instead of bytes(100)
* restore wallet_rpc_api, and make type hints match JsonDict (Any)
* fixup ConsensusConstants; restore return value of calculate_prefix_bits()
* fixup ConsensusConstants; construct int for intermedate cost values
* fixup ConsensusConstants; construct int for intermedate cost values
* fixup: transition StructStream to use the version from chia_rs
* revert changing type annotations for json dict
---------
Co-authored-by: Rigidity <me@rigidnetwork.com >
2024-04-26 08:06:25 -07:00
Amine Khaldi and GitHub
960274899e
Move SimulatorFullNodeService type alias to start_simulator ( #17875 )
...
Move SimulatorFullNodeService type alias to start_simulator.
2024-04-18 14:26:36 -07:00
Kyle Altendorf and GitHub
a89222a428
move tests ( #17209 )
...
* prep
* verify source and installed tests match
* move
* remove move script
2024-03-14 10:19:20 -07:00