4283 Commits
Author SHA1 Message Date
Arvid Norberg 7d555feba3 Spin slower send_transaction() (#17166)
we currenly spin-wait for hearing back whether a transaction made it into the mempool or not (in FullNodeAPI.send_transaction()). We currently spin in a very tight loop, which appears to hog a significant amount of CPU. Increase the sleep to spin slower
2024-01-02 14:05:10 -07:00
Arvid Norberg 507899ff19 Mempool multifetch (#17139)
* update type annotation for CoinStore.get_coin_records to support both List and Set

* update the mempool to fetch multiple coin records per query

* optimize the slow-path of updating the mempool by fetching all coin records up-front, in a single sql query
2023-12-22 16:29:39 -06:00
wjblanke a4cab829ed Performance tweaks (#17155)
* changed default peers from 80 to 40. switched auto db_sync default to NORMAL instead of FULL

* fixed default

* add defaults to config query
2023-12-22 16:28:31 -06:00
Arvid Norberg 55c064a292 improve performance of total_mempool_fees() and total_mempool_cost() (#17107)
* improve performance of total_mempool_fees() and total_mempool_cost()

* log when updating the mempool using the slow-path

* extend test to ensure total-cost and total-fee book-keeping stays in sync with the DB

* lower mempool size from 50 blocks to 10 blocks
2023-12-21 18:02:13 -06:00
Kyle Altendorf a6730326e2 revert StructStream.__bytes__() to a working state instead of intentional failure (#17075) 2023-12-18 11:50:59 -06:00
Arvid Norberg 788db8bdff Fix compressed blocks (#17071) 2023-12-18 10:48:21 -06:00
Geoff Walmsley 219667b6d8 DAO resync (#17029) 2023-12-11 15:12:37 -06:00
Earle Lowe cfab3a407d Adjust ban times for DL dat files (#17021) 2023-12-08 15:40:44 -06:00
Geoff Walmsley ca9a6011ec dao vote amount checks (#16988) 2023-12-08 15:11:18 -06:00
xchdata.io fde036c503 chia show keys --show-mnemonic-seed: Also show farmer private key (#16556) 2023-12-01 10:44:03 -06:00
Geoff Walmsley 531e01c5d1 dedupe parent_amount_list (#16724) 2023-11-29 09:28:27 -06:00
Arvid Norberg d29d316927 fix typo introduced in the deep-reorg performance fix (#16940) 2023-11-28 21:21:31 -06:00
Chris Marslender aa2fd02a37 Add tn11 to initial-config (#16935) 2023-11-28 21:21:10 -06:00
Florin ChiricaandKyle Altendorf 53519801fb DL: remove data from DB on unsubscribe (#16786)
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-28 17:46:26 -06:00
Kyle Altendorf fab8b21332 asyncio.create_subprocess_shell() -> asyncio.create_subprocess_exec() (#16944) 2023-11-28 14:42:36 -06:00
Florin Chirica d80b751850 DL: delete full files for when subscribed to a datastore per config (#16850) 2023-11-27 12:18:39 -06:00
Kyle Altendorf 3caa0754cc add DBWrapper2.managed() (#16880) 2023-11-22 13:48:01 -06:00
wjblanke 8e3f9db89c only forward 4 most recent cached SPs (#16879) 2023-11-22 10:09:18 -06:00
Amine Khaldi 3c91881324 Fix propagating spent coins IDs to the mempool on successful generator bundle creation in SpendSim's farm_block (#16918) 2023-11-22 09:08:19 -06:00
Arvid NorbergandKyle Altendorf 30fb9f3d00 avoid redundant list->set and set->list conversions (#16855)
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-22 09:02:33 -06:00
dependabot[bot]andKyle Altendorf d4234d804f build(deps): bump keyring from 23.13.1 to 24.3.0 (#16885)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-21 17:29:29 -06:00
dependabot[bot]andKyle Altendorf 305dfa74aa build(deps): bump aiohttp from 3.8.6 to 3.9.0 (#16884)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-21 17:19:15 -06:00
Kyle Altendorf b431a7c0a8 remove unneeded try/finally/pass from load_clvm.py (#16878) 2023-11-21 17:19:00 -06:00
Kyle Altendorf fa7b6ac080 remove unneeded try/except/raise from did_wallet.py (#16877) 2023-11-21 17:16:45 -06:00
Kyle Altendorf 5496eeead0 timelord just manage (#16759) 2023-11-21 17:14:48 -06:00
Kyle Altendorf 9d5cbf3f24 crawler just manage (#16758) 2023-11-21 17:14:29 -06:00
Kyle Altendorf 6d480b8256 introducer just manage (#16757) 2023-11-21 17:14:10 -06:00
Kyle Altendorf 576ec7c08c datalayer just manage (#16756) 2023-11-21 17:13:47 -06:00
Kyle Altendorf 799b4928c7 harvester just manage (#16755) 2023-11-21 17:13:32 -06:00
Kyle Altendorf 06e680d421 farmer just manage (#16754) 2023-11-21 17:13:08 -06:00
Kyle Altendorf eff655518c full node just manage (#16753) 2023-11-21 17:12:32 -06:00
Arvid Norberg 5318514582 update the StateChangeSummary to not keep full NPCResult objects (#16793) 2023-11-21 17:06:49 -06:00
Arvid Norberg c0deb18405 remove special case logic for soft-fork 3 activation (#16819) 2023-11-21 17:06:17 -06:00
Amine Khaldi 02bda86e8e Fix SimBlockRecord construction w.r.t. prev_transaction_block_hash (#16882) 2023-11-21 13:04:48 -06:00
Geoff Walmsley ceba39c672 remove singleton_store (#16868) 2023-11-21 09:45:10 -06:00
Matt Hauff d09b3a8207 Fix set_status accidental arg (#16860) 2023-11-20 10:40:20 -06:00
arvidn 1a10172a7c fix logic in get_block_generator() that determines whether we're looking up a block from a fork or the main chain 2023-11-17 23:49:11 +01:00
Arvid Norberg 5ab1721cff clean up SpendBundle class (#16808) 2023-11-16 19:21:28 -06:00
Kyle Altendorf fbdb27bef1 managers for services (#16670) 2023-11-16 19:21:12 -06:00
Kyle Altendorf 5484024ef3 move time_out_assert() family back to tests (#16846) 2023-11-16 11:20:18 -06:00
Zachary Brown ddadd8c664 Change -h to -k for --key flag for datalayer get_value cli command (#16843)
Change -h to -k for key flag for get_value cli command
2023-11-16 09:40:17 -07:00
Arvid Norberg 038f5e8fb7 Fix deep reorgs (#16594) 2023-11-15 10:51:04 -06:00
dependabot[bot]andKyle Altendorf e986d1e3ee build(deps-dev): bump mypy from 1.5.1 to 1.7.0 (#16788)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-14 12:20:56 -06:00
Arvid Norberg fe3799b1ea request blocks in batches of 32 instead of 33 (#16792)
request blocks in batches of 32 instead of 33 (with the last block overlapping with the next request). Add comments to document a quirk in how we interpret the block range in the block request message.
2023-11-09 12:14:15 -08:00
Amine Khaldi d054314a18 Move generate_in_memory_db_uri to the chia/util to avoid importing tests from the chia package (#16752)
Move generate_in_memory_db_uri to the chia/util to avoid importing tests from the chia package.
2023-11-09 09:04:03 -08:00
Arvid Norberg 66d83db23b Fix invalid sync request (#16779) 2023-11-09 08:25:54 -08:00
Arvid Norberg 23dfcd85ac reduce redundant calls to compute the header hash (#16797)
* reduce redundant calls to compute the header hash for FullBlocks in multiprocess_validation

* test_long_reorg_nodes() still seem to take longer on CI sometimes
2023-11-08 16:17:05 -08:00
Arvid Norberg 5a1c15e20b Fix peak height race (#16776)
when we add a block, there's a subtle co-routine suspension point in between updating the height-to-hash map and the peak height. This leaves a window for a call to get_peak() to fail, because the peak height doesn't exist in height-to-hash map. This patch moves the suspension point to make these updates atomic. This allows for removing a hack in a test, that previously had to catch this exception
2023-11-08 08:41:40 -08:00
Earle Lowe 206b5c5185 Fix problems with wallet node discovery (#16782)
* Fix problems with wallet node discovery

* Adjust tests to work more consistently

* Attempt to debug rate limit test

* Limit rate test to one consensus mode
2023-11-08 08:40:21 -08:00
Arvid Norberg 64d6fb56a6 simplify the interface to mempool_manager.new_peak() (#16787)
simplify the interface to mempool_manager.new_peak() to just take the spent coin IDs rather than full NPCResult objects
2023-11-07 10:40:16 -08:00