Commit Graph
14659 Commits
Author SHA1 Message Date
Amine Khaldi b233d150c8 Adapt the datalayer file to this PR. 2022-07-16 18:03:18 +01:00
Amine Khaldi 18313573d3 Merge commit '90516263aa19afbfc4ef62947c8ac7e8c2889e32' into checkpoint/long_lived_atari_from_main_90516263aa19afbfc4ef62947c8ac7e8c2889e32 2022-07-16 17:12:58 +01:00
Kyle AltendorfandGitHub cacda585a1 Merge pull request #12431 from Chia-Network/checkpoint/long_lived_atari_from_main_a87e8e34aceb477741ca0384efdd1fe874d14c45
checkpoint: into long_lived/atari from main  @ a87e8e34ac
2022-07-16 12:11:22 -04:00
Amine Khaldi 4764b71dcd Merge commit 'a87e8e34aceb477741ca0384efdd1fe874d14c45' into checkpoint/long_lived_atari_from_main_a87e8e34aceb477741ca0384efdd1fe874d14c45 2022-07-16 17:02:55 +01:00
Kyle AltendorfandGitHub 3005c700a9 Merge pull request #12430 from Chia-Network/checkpoint/long_lived_atari_from_main_61fa0edc0242528b0de63a1e106ee66df3f50e81 2022-07-16 11:50:52 -04:00
Amine Khaldi bacff12243 Merge commit '61fa0edc0242528b0de63a1e106ee66df3f50e81' into checkpoint/long_lived_atari_from_main_61fa0edc0242528b0de63a1e106ee66df3f50e81 2022-07-16 16:49:45 +01:00
Kyle Altendorf d359d156d6 add jsonschema generation 2022-07-16 09:56:44 -04:00
Kyle AltendorfandGitHub 16072d229c Merge pull request #12429 from Chia-Network/checkpoint/long_lived_atari_from_main_69ea31f509f82c2a2352a3c50561607348800ce2 2022-07-16 09:31:46 -04:00
Amine Khaldi e43fff6943 Merge commit '69ea31f509f82c2a2352a3c50561607348800ce2' into checkpoint/long_lived_atari_from_main_69ea31f509f82c2a2352a3c50561607348800ce2 2022-07-16 13:26:17 +01:00
dustinfaceandGitHub 03b4bacb5c cmds: Move config loading into start/stop/passphrase commands (#12388)
I want to access the config in start/stop to print a warning if the `beta` section is in the config. The alternative to this PR would be to double load the config in start/stop, i think avoid loading twice makes sense but if there are objections about all this passing the config around let me know.
2022-07-15 21:10:31 -05:00
dustinfaceandGitHub f0a0f07116 daemon|server: Log chia_full_version_str in daemon and all services (#12356) 2022-07-15 21:08:30 -05:00
Kyle AltendorfandGitHub 11b210809b run pre-commit across platforms in ci (#12287)
* run pre-commit across platforms in ci

why?  because we have developers working on multiple platforms.

* pre-clean for pre-commit in ci

* chia setup python action

* fixup

* fix windows specific hinting

* no TypeAlias yet

* debug

* debug

* adjust activated.ps1

* verbose pre-commit

* exit better

* Revert "debug"

This reverts commit 93a100afc7.

* less debug

* less `|`

* Update .pre-commit-config.yaml

* Update activated.ps1
2022-07-15 21:08:07 -05:00
Arvid NorbergandGitHub 1fddb7aef1 add new_transaction() to DBWrapper2 which creates a nested transaction, and make write_db() just add writes to the existing transaction (#12275) 2022-07-15 21:07:43 -05:00
Jack NelsonandGitHub d5bf4d8b59 Expand select_coins rpc (#12360)
* change type to uint64, 128 is too big anyway

* add new options to select_coins endpoint

* oops

* add tests and finalize

* oops
2022-07-15 20:50:41 -05:00
Jack NelsonandGitHub 7fda9596af Replace existing simulator config & Fix simulator (#12072)
* redesign simulator config loader

* edit initial config file and use it in start_simulator

also final lint cleanup

* small change

* aarggggghhhh

LINTTTTTTTTTTTTTTTT

* fix lint for the last time

DAMN END OF LINE

* Add Types & change port

* fix config loading for tests

* change config options

remove unnecessary options & change ports back

* Add additional config options for old simulator

* Get working simulator & implement the requirements

i hope my code makes sense:)

* remove extra part of config

* fix config typos

* add callback for autofarm

we can call this to tell the node to farm a block

* add auto farm rpc to simulator

* add plot_directory to config

add separate plot dir to avoid issues where the plot dir is shared with tests and an assert fails

* remove port from config

no longer needed due to existing gui simulator being broken

* switch to dedicated plot creation function

* modify api for greater block customization

Added block type option & amount of block option

* disable auto farm for tests

breaks them all ;)
Also made sure to run autofarm while a transaction is in mempool if the mode was just changed

* change farm_block for the better

* clean up autofarm

remove unnecessary optional

* update create block tools and allow additional plot creation tweaks

& do requested fixes

* change to k18's

* minor nitpick

* testing some changes

stop reading these descriptions, just ask me on keybase

* change plot directory name stuff

* add editing of root level keys

* use config_overrides

* update plot info

* re separate create_block_tools

* revert some changes as requested

change back get_plot_dir & undo change to asyncio.run

* replace unnessary catch while adding plot locations

switch to better if logic

* combine simulator_bt function into main

fix block_tools logic too

* fix lint

windows bad

* test auto_farming

* remove change that causes more harm then good

* move test over and unflake it

* make test do the bare minimum

* add proper block waiting or wait avoidance

* fix failing test

* add new rpc client & a small fix

* add new test & add some minor changes to start_sim to support it

New test tests whole user facing simulator with real keychain, gui and daemon.

* merge fixes

* update block-cache version

CHANGE TO MY USER, REVERT THIS LATER

PLS REVERT BEFORE MERGE

fix version

* Revert "update block-cache version"

This reverts commit 3afbbc5f51.

* block args from reaching simulator

* clean up test plot creation

* remove extra bt's being called

this reduces load time

* fix stupid bug

* damn lint

* Revert "remove extra bt's being called"

This reverts commit f78debcc26.

* Revert "clean up test plot creation"

This reverts commit d006a1a196.

* align with 12204

* rename RPC's for clarity

* disable cache error when not running in automated mode

* update tests with new rpc's

oops i forgor

* finalize sim api

* something funky going on

* Revert "something funky going on"

This reverts commit afa1ddde27.

* fix config

* add get_farming_ph rpc

* remove random simulation thing, why are we even using this.

* update tests

* simplify test code & fix lint

* lol one of my own pr's broke another one of my pr's

git funny
2022-07-15 20:49:40 -05:00
Kyle AltendorfandGitHub 2552c74d30 Merge pull request #12425 from Chia-Network/checkpoint/long_lived_atari_from_main_e6290b840728d8582901086c5f19ffdc53a2a4d0 2022-07-15 19:11:07 -04:00
Amine Khaldi 29ecd4f324 Merge commit 'e6290b840728d8582901086c5f19ffdc53a2a4d0' into checkpoint/long_lived_atari_from_main_e6290b840728d8582901086c5f19ffdc53a2a4d0 2022-07-16 00:09:11 +01:00
Kyle AltendorfandGitHub 4fa1c6d10e Merge pull request #12424 from Chia-Network/checkpoint/long_lived_atari_from_main_00c80ae6078f2c97765fe52b2a79aef5225d76d9 2022-07-15 19:08:02 -04:00
Amine Khaldi d8846cc668 Merge commit '00c80ae6078f2c97765fe52b2a79aef5225d76d9' into checkpoint/long_lived_atari_from_main_00c80ae6078f2c97765fe52b2a79aef5225d76d9 2022-07-16 00:05:39 +01:00
Kyle AltendorfandGitHub 48f66c77eb Merge pull request #12423 from Chia-Network/checkpoint/long_lived_atari_from_main_0f20f6081e93e7fcc5cbfb750a347edba7c2ca1f
checkpoint: into long_lived/atari from main  @ 0f20f6081e
2022-07-15 19:04:35 -04:00
Amine Khaldi fe1336c23a Merge commit '0f20f6081e93e7fcc5cbfb750a347edba7c2ca1f' into checkpoint/long_lived_atari_from_main_0f20f6081e93e7fcc5cbfb750a347edba7c2ca1f 2022-07-16 00:03:34 +01:00
Kyle AltendorfandGitHub 9e7a0b71ee Merge pull request #12422 from Chia-Network/checkpoint/long_lived_atari_from_main_721ff43201c478b1db5a9e1eb697081320cb0daa
checkpoint: into long_lived/atari from main  @ 721ff43201
2022-07-15 18:57:10 -04:00
Amine Khaldi 136344637c Merge commit '721ff43201c478b1db5a9e1eb697081320cb0daa' into checkpoint/long_lived_atari_from_main_721ff43201c478b1db5a9e1eb697081320cb0daa 2022-07-15 23:45:20 +01:00
Kyle AltendorfandGitHub ddbb43d53b Merge pull request #12421 from Chia-Network/checkpoint/long_lived_atari_from_main_b6065189779a859dad3603a5335f0cbcd18e34e8
checkpoint: into long_lived/atari from main  @ b606518977
2022-07-15 18:44:09 -04:00
Amine Khaldi 1e1005d099 Merge commit 'b6065189779a859dad3603a5335f0cbcd18e34e8' into checkpoint/long_lived_atari_from_main_b6065189779a859dad3603a5335f0cbcd18e34e8 2022-07-15 23:39:33 +01:00
Kyle AltendorfandGitHub 966e9294bb Merge pull request #12420 from Chia-Network/checkpoint/long_lived_atari_from_main_99d58eb4245e335fc0fed4d6c12d2612d4186e4e
checkpoint: into long_lived/atari from main  @ 99d58eb424
2022-07-15 18:37:59 -04:00
Amine Khaldi cbf3e4742e Merge commit '99d58eb4245e335fc0fed4d6c12d2612d4186e4e' into checkpoint/long_lived_atari_from_main_99d58eb4245e335fc0fed4d6c12d2612d4186e4e 2022-07-15 23:37:17 +01:00
Kyle AltendorfandGitHub 844ff46b94 Merge pull request #12419 from Chia-Network/checkpoint/long_lived_atari_from_main_8665e21fd71a4d0a15fae2f9f9c94f395597bc64
checkpoint: into long_lived/atari from main  @ 8665e21fd7
2022-07-15 18:36:08 -04:00
Amine Khaldi d0812d2435 Merge commit '8665e21fd71a4d0a15fae2f9f9c94f395597bc64' into checkpoint/long_lived_atari_from_main_8665e21fd71a4d0a15fae2f9f9c94f395597bc64 2022-07-15 23:35:16 +01:00
Kyle AltendorfandGitHub 49fd87f143 Merge pull request #12418 from Chia-Network/checkpoint/long_lived_atari_from_main_dbd74e61df8dfe069a3707fc580604fbc70e0880
checkpoint: into long_lived/atari from main  @ dbd74e61df
2022-07-15 18:33:53 -04:00
Amine Khaldi f60989f644 Merge commit 'dbd74e61df8dfe069a3707fc580604fbc70e0880' into checkpoint/long_lived_atari_from_main_dbd74e61df8dfe069a3707fc580604fbc70e0880 2022-07-15 23:31:48 +01:00
Kyle AltendorfandGitHub 1d7a23ee22 Merge pull request #12417 from Chia-Network/checkpoint/long_lived_atari_from_main_69f746856bb9754180641987ab1a6149ba8fa6ca
checkpoint: into long_lived/atari from main  @ 69f746856b
2022-07-15 18:30:28 -04:00
Arvid NorbergandGitHub acc8b7c98d Optimize wallet set_spent() (#12391)
* optimize WalletCoinStore.set_spent() to just update the required fields in the DB

* overwriting an existing record with WalletCoinStore.add_coin_record() is an error
2022-07-15 17:16:59 -05:00
Amine Khaldi a3e75ae74e Merge commit '69f746856bb9754180641987ab1a6149ba8fa6ca' into checkpoint/long_lived_atari_from_main_69f746856bb9754180641987ab1a6149ba8fa6ca 2022-07-15 23:00:15 +01:00
Kyle AltendorfandGitHub 8d448a972f Merge pull request #12416 from Chia-Network/checkpoint/long_lived_atari_from_main_83bc1ee332722555b2338d65b4e8b9556d20cf65 2022-07-15 17:58:26 -04:00
Amine Khaldi 0d5cc7e187 Merge commit '83bc1ee332722555b2338d65b4e8b9556d20cf65' into checkpoint/long_lived_atari_from_main_83bc1ee332722555b2338d65b4e8b9556d20cf65 2022-07-15 22:56:32 +01:00
Kyle AltendorfandGitHub 5b9d3c8139 Merge pull request #12415 from Chia-Network/checkpoint/long_lived_atari_from_main_4fd8e6fa593c1e0978d9c977dd1a7746248147ce 2022-07-15 17:53:06 -04:00
Amine Khaldi e5eeeb3512 Merge commit '4fd8e6fa593c1e0978d9c977dd1a7746248147ce' into checkpoint/long_lived_atari_from_main_4fd8e6fa593c1e0978d9c977dd1a7746248147ce 2022-07-15 22:48:17 +01:00
Kyle AltendorfandGitHub 4a3087191a Merge pull request #12414 from Chia-Network/checkpoint/long_lived_atari_from_main_4230af1a59768f6a4f9578408f810d7d2114c343 2022-07-15 17:46:42 -04:00
Amine Khaldi dd4f4e1fbb Merge commit '4230af1a59768f6a4f9578408f810d7d2114c343' into checkpoint/long_lived_atari_from_main_4230af1a59768f6a4f9578408f810d7d2114c343 2022-07-15 22:45:40 +01:00
Kyle AltendorfandGitHub c067626cdc Merge pull request #12413 from Chia-Network/checkpoint/long_lived_atari_from_main_458697b519e432bb6ede7132fdaaba55e43e9042 2022-07-15 17:44:09 -04:00
Amine Khaldi 92cc3fde24 Remove remaining workflow files. 2022-07-15 21:57:16 +01:00
Amine Khaldi 41fe1a32c0 Merge commit '458697b519e432bb6ede7132fdaaba55e43e9042' into checkpoint/long_lived_atari_from_main_458697b519e432bb6ede7132fdaaba55e43e9042 2022-07-15 21:51:36 +01:00
Kyle Altendorf 304a304fee pylint ignore 2022-07-15 16:40:53 -04:00
Kyle Altendorf d53d67dfcf 'register' the bytes and bytes32 fields 2022-07-15 16:38:32 -04:00
Kyle AltendorfandGitHub b2b6163d4a Merge pull request #12410 from Chia-Network/checkpoint/long_lived_atari_from_main_a375e3cb8febbc2a0125e7039dab57bfc854b364 2022-07-15 16:14:56 -04:00
Kyle Altendorf 04080653c9 preliminary (marshalled) data layer make and take offer routes 2022-07-15 15:57:54 -04:00
Amine Khaldi 020cfad0fb Merge commit 'a375e3cb8febbc2a0125e7039dab57bfc854b364' into checkpoint/long_lived_atari_from_main_a375e3cb8febbc2a0125e7039dab57bfc854b364 2022-07-15 19:20:13 +01:00
Kyle AltendorfandGitHub 58c1cf5ffe Merge pull request #12409 from Chia-Network/checkpoint/long_lived_atari_from_main_1aeeffedbecebddcdbac45acf34f6b966b36be3b 2022-07-15 14:19:02 -04:00
Amine Khaldi ebd7fe0b49 Merge commit '1aeeffedbecebddcdbac45acf34f6b966b36be3b' into checkpoint/long_lived_atari_from_main_1aeeffedbecebddcdbac45acf34f6b966b36be3b 2022-07-15 19:17:00 +01:00