Commit Graph
44 Commits
Author SHA1 Message Date
Arvid NorbergandGitHub 56804a0b4c optimize wallet tool by not caching the puzzle_hash -> derivation index, but caching puzzle_hash -> secret key (which is the lookup we're actually interested in). This avoids duplicating the actual derivation (#11154) 2022-04-13 12:13:25 -07:00
Mariano SorgenteandGitHub 890c7d3754 Fix remaining linting issues (#10962)
* FIx remaining linting issues

* Revert type:ignore

* Revert token_bytes change
2022-04-02 13:22:55 -07:00
687ea720e3 New RPC get_coin_records_by_hint - Get coins for a given hint (#10715)
* RPC endpoint to retrieve coins by hint

* RPC client update for get_coin_records_by_hint

* start writing tests for get_coin_records_by_hint

* Address linting concerns.

* Address flake8. Fix the get_coin_ids() call.

* convert hint to bytes32

* tests for get_coin_records_by_hint

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2022-03-17 08:48:09 -07: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
Kyle AltendorfandGitHub 8291f0221a Make the sized bytes types hint compatible (#9369)
* Rework sized bytes for type hinting compatibility

* add a bunch of type: ignores

* this will be handled elsewhere

* noqa E501 instead of changing code

* normalize comment plurality

* @classmethod

* Revert "@classmethod"

This reverts commit 95db80e339.

* add ignore in benchmarks

* just E501 again...

* add some new type: ignores
2021-12-02 09:43:39 -08:00
1073f9d5dd mypy: warn_unused_ignores = true (and remove some) (#9085)
* mypy: warn_unused_ignores = true (and remove some)

* catch up

* type checking tweaks

* precommit uses mypy --no-warn-unused-ignores

* revert a bit

* precommit explanatory comment

* Update .pre-commit-config.yaml

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2021-11-23 12:44:53 -08:00
4fddb5cdf1 Full node changes required for CAT / Standalone (#8616)
* full node changes

* hint store

* finish coin state tracking, mypy, flake8

* type hints

* bump protocol version

* change wallet tool for testing hint list

* mypy

* add check for state, future proof hint db for multiple hints per coin

* get hint rename

* clean

* Update chia/consensus/blockchain.py

Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>

Co-authored-by: Mariano Sorgente <3069354+mariano54@users.noreply.github.com>
Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>
2021-09-29 15:04:29 -07:00
Arvid NorbergandGitHub 750a2759a3 test agg sig conditions (#7962)
* agg sig conditions always take two args

* extend test a bit, add comment

* unit test agg sig parser where args list is not null terminated

* fix formatting
2021-08-10 15:26:29 -07:00
Richard KissandGitHub 6cf29102f9 Rename coin solution to coin spend (#6841)
* Rename `CoinSolution` as `CoinSpend` everywhere.

* Run `black` everywhere.
2021-07-12 16:31:27 -07:00
Arvid NorbergandGitHub 7b1fc9afa7 fix duplicate-output test to not also do a double-spend (#7176) 2021-07-08 09:58:34 -07:00
Arvid NorbergandGitHub 0368544c84 validate more aspects of conditions earlier (#6654)
* validate more aspects of conditions earlier, in the process clvm execution is offloaded to

* more tests

* use as_int() in SExp rather than int_from_bytes()

* put condition parser tests in its own test class

* capitalize module-scope variable

* abbreviate enum names in parse_condition_args

* use a more realistic cost per byte in test_rom

* merge parse_coin_id and parse_hash, since they are identical
2021-06-23 09:49:23 -07:00
Arvid NorbergandGitHub 42fde9a8d4 move chia.util.block_tools and chia.util.wallet_tools into tests (#6799)
* move chia.util.block_tools and chia.util.wallet_tools into tests

* only depend on block_tools when we actually run the wallet in test mode
2021-06-16 11:12:26 -07:00
YostraandGene Hoffman 1dcc13f2e2 simulator constants 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 1d59fee788 New Bram protocol changes and full node tests 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 73398e0159 Remove challenge signature 2020-07-16 13:05:43 -07:00
YostraandRichard Kiss 2d536f24ae format 2020-04-21 22:55:21 -07:00
YostraandRichard Kiss d425a41ad8 assert fee condition 2020-04-21 22:55:21 -07:00
YostraandRichard Kiss d0b8a852c5 use tree hash 2020-04-21 22:55:21 -07:00
Mariano SorgenteandGitHub dc637d4ec1 Block ordering (#142)
* Look at current block additions before removals
* Fix block ordering, and change state machine of wallet node
* Fix infinite recursion
* Fix some serious bugs with wallets/coinbases/reorgs and add testing
2020-04-02 02:53:33 +09:00
Mariano Sorgente 920043c1d4 Tweak block validation, rename some files, and concentrate error codes 2020-03-31 02:27:22 +09:00
Will BendickandYostra 73abc0a3fd adds argument, reformats 2020-03-29 21:37:22 -07:00
Mariano SorgenteandGitHub f96ae11094 Wallet fixes (#131)
* Transaction status, and fixes
* Close websocket on ConnectionCloseError, and fix wallet bug
* More validation and better error messages
* Uncomment lines
* Fix tests
2020-03-27 23:30:07 +09:00
Mariano Sorgente 88f71f8242 Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into integration 2020-02-27 11:31:01 +09:00
Mariano Sorgente cc3b51a1a1 Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into integration 2020-02-27 11:23:03 +09:00
Yostra c94fba4100 block cost stuff 2020-02-26 17:33:25 -08:00
Mariano Sorgente c90aa0984d More full node tests 2020-02-24 17:14:48 +09:00
Yostra abbb85c350 wallet tools cache hack 2020-02-17 16:08:09 -08:00
Mariano Sorgente 3250f1f050 Start full node tests 2020-02-17 11:26:20 -08:00
Mariano Sorgente 386f29bce0 Full node tests 2020-02-14 12:48:41 -08:00
Mariano Sorgente 65d789a999 Hashing issue 2020-02-14 11:48:22 -08:00
Mariano Sorgente 25df8fe8df Merge, lint 2020-02-10 12:25:28 -05:00
Yostra dd175c95e2 refactor condition tools 2020-02-08 02:21:45 -08:00
Mariano Sorgente 893e2198fd Fix error in VDF server 2020-02-06 19:56:00 -05:00
Mariano Sorgente a04282a916 Merge branch 'integration' of github.com:Chia-Network/chia-blockchain into new-protocol 2020-02-06 19:18:52 -05:00
Yostra 4d75599cb2 don't use programhash 2020-02-06 14:02:58 -08:00
Mariano Sorgente 70c93ebe66 Merge branch 'db_headers' into integration 2020-02-05 21:07:18 +09:00
Yostra 7ed451836d clean, mypy, flake8 2020-02-04 11:39:49 -08:00
Yostra 5755909c5f fix some mypy errors 2020-02-04 11:39:49 -08:00
Yostra 6d0ba89dd4 use run_program 2020-02-04 11:39:49 -08:00
Yostra 3df867c5f6 check time exceeds for mempool 2020-02-04 11:39:49 -08:00
Yostra ccb7da08da mutable default arg 2020-02-04 11:39:49 -08:00
Yostra 57632c9877 fix issues 2020-02-04 11:39:49 -08:00
Yostra cc796768aa changes 2020-02-04 11:39:49 -08:00
Yostra a1f5cbaab0 wallet tools 2020-02-04 11:39:49 -08:00