Commit Graph
14659 Commits
Author SHA1 Message Date
Kyle Altendorf de7d68468b just ChiaServer.start() since it sometimes doesn't really start serving 2023-03-29 21:21:15 -04:00
Kyle Altendorf 89b8cfae9c not private... 2023-03-29 21:18:51 -04:00
Kyle Altendorf e2c4417f77 more passing arguments by name in ChiaServer 2023-03-29 21:16:22 -04:00
Amine KhaldiandGitHub 1577f4aa33 Fix the mempool fee rate calculation (#14926)
* Fix the mempool fee per cost calculation.

It's currently performing integer division instead of float division, resulting in incorrect sorting of mempool items by fee rate. Items with x.y FPC get all treated as items of x.0 FPC.

* Add unit tests for mempool's spends_by_feerate.
2023-03-29 12:12:14 -05:00
Kyle Altendorf 3b29c2ff7f add explicit listen option for Service() and ChiaServer.start_server() 2023-03-28 21:22:05 -04:00
Kyle Altendorf a609a815ec remove unused Service(server_listen_ports=) parameter 2023-03-28 13:55:44 -04:00
Sebastjan TrepcaandGitHub 123d695c4e slightly faster nft complex offer tests (#14847)
* slightly faster nft complex offer tests

* cached bundle, faster offer matching

* nft metadata test fix

* more optimizations

* use get_nft_count method in tests

* use counts in bulk minting, avoid sleep

* flake

* offer cache fix

* forward compat param, max int16

* only parse programs with pairs

* cache offer data on method call, not init

* black
2023-03-28 11:46:09 -05:00
Amine KhaldiandGitHub db6386ab3b Add unit tests for replace by fee dynamics (#14815)
* Add unit tests for replace by fee dynamics.

* Separate scenarios into their own tests.

* Remove the TestReplaceByFee class.
2023-03-28 10:41:08 -05:00
dustinfaceandGitHub 5e5395305d wallet: Drop some parameters from WalletStateManager.add_new_wallet (#14919) 2023-03-27 18:07:19 -05:00
Amine KhaldiandGitHub faad1d7fd6 Improve core mempool test runs (#14914)
Improve mempool test runs.
2023-03-27 15:50:00 -05:00
Arvid NorbergandGitHub 52ee3df272 update condition codes constants in clvm include file (#14723) 2023-03-27 15:43:59 -05:00
Amine KhaldiandGitHub 9a664d9424 Minor simplification to the mempool conflicts check (#14918)
Minor simplification to the mempool conflicts check.
2023-03-27 15:43:31 -05:00
dustinfaceandGitHub 8ca8de8046 wallet: Some tweaks and rename of WalletStateManager.new_coin_state (#14863)
* Rename `new_coin_state` -> `add_coin_states` in `WalletStateManager

* Avoid redundant coin id calculations

* Don't `max`, just use `derivation_index` since its max by the condition

* Just get the children in the begining since we anyway always fetch them

* Don't pre-hint `existing`

* Adjust some logging
2023-03-27 13:29:50 -05:00
dustinfaceandGitHub d83a6f8d14 consensus: Rename add block method/enum (#14459)
* `ReceiveBlockResult` -> `AddBlockResult`

* `Blockchain.receive_block` -> `Blockchain.add_block`
2023-03-27 12:57:37 -05:00
William AllenandGitHub 023efc4da6 checkpoint: into main from release/1.7.1 @ ba2570f50f (#14916)
Source hash: ba2570f50f
Remaining commits: 0
2023-03-27 11:03:58 -05:00
William AllenandGitHub 3569406c72 Adding py version exclusion (#14906)
* Adding py version exclusion

* adding workflow dispatch override
2023-03-27 11:01:02 -05:00
Amine Khaldi fd42051d26 Merge commit 'ba2570f50fed64be92a49f1342fd0cc3ff014831' into checkpoint/main_from_release_1.7.1_ba2570f50fed64be92a49f1342fd0cc3ff014831 2023-03-27 16:38:16 +01:00
William AllenandGitHub 54ab13f681 checkpoint: into main from release/1.7.1 @ fecf363577 (#14915)
Source hash: fecf363577
Remaining commits: 1
2023-03-27 10:37:17 -05:00
Amine Khaldi 7791d1184f Merge commit 'fecf36357741da4507cbf22bc60180c56900138c' into checkpoint/main_from_release_1.7.1_fecf36357741da4507cbf22bc60180c56900138c 2023-03-27 16:32:34 +01:00
dustinfaceandGitHub d8fac8666e wallet: Enable and fix more mypy in wallet_weight_proof_handler.py (#14912) 2023-03-27 10:19:25 -05:00
dustinfaceandGitHub 4ee0ac9d90 wallet: Drop unused code in wallet_state_manager.py (#14898) 2023-03-27 10:19:01 -05:00
dustinfaceandGitHub 170bd986fe wallet: Some WalletType cleanup (#14897)
* Return `WalletTye` in `WalletProtocol.type`

* Compare to `WalletType` in `WalletStateManager.create`
2023-03-27 10:18:36 -05:00
dustinfaceandGitHub 5a25241ffa wallet: Add WalletProtocol.wallet_info (#14895) 2023-03-27 10:18:12 -05:00
dustinfaceandGitHub 3772365198 wallet: Rename WalletNode.untrusted_caches -> WalletNode.peer_caches (#14886) 2023-03-27 10:17:48 -05:00
dustinfaceandGitHub 9b608f40f9 wallet: Drop WalletCoinStore.get_multiple_coin_records (#14862) 2023-03-27 10:16:33 -05:00
dustinfaceandGitHub a5466ad646 server: Rename respond_peers to add_peers in node_dicovery.py (#14461)
server: `respond_peers` to `add_peers` `node_dicovery.py`
2023-03-27 10:15:53 -05:00
dustinfaceandGitHub 3e76f78e37 daemon: Fix removal while iterating over connections set (#14887) 2023-03-25 00:28:25 -05:00
Earle LoweandGitHub b8e5aebf54 Fixed windows issues with passphrase prompt on CLI by flushing prompt (#14904)
flush prompt on windows
2023-03-25 00:26:03 -05:00
William AllenandGitHub 2d7111084e checkpoint: into main from release/1.7.1 @ 9a4b42b022 (#14905)
Source hash: 9a4b42b022
Remaining commits: 2
2023-03-24 22:49:18 -05:00
Amine KhaldiandGitHub 8afba0814d Remove no longer needed cost_per_byte cases (#14850)
Remove no longer needed cost_per_byte cases.
2023-03-24 18:29:50 -05:00
Amine Khaldi c1c655981d Merge commit '9a4b42b022a31357e36fd92900cf3efc3be8a02d' into checkpoint/main_from_release_1.7.1_9a4b42b022a31357e36fd92900cf3efc3be8a02d 2023-03-24 20:01:56 +01:00
dustinfaceandGitHub df6991551a wallet: Drop some unused members of WalletNode (#14876) 2023-03-24 13:29:17 -05:00
dustinfaceandGitHub d18af71e32 wallet: Simplify WalletStateManager.coin_added (#14852)
* Simplify coinbase/tx_type logic

* Confirm transactions immediately, don't create a list first

* Move transaction confirmation logic

* Combine `TransactionRecord` creation cases since they are equal

* Drop `timestamp`

* Drop redundant parentheses

* Just assign to `change`

* Rename `coin_record_1` -> `coin_record`

* `break` after transaction was confirmed

* Harden `coinbase` condition
2023-03-24 13:28:55 -05:00
William AllenandGitHub 3a7a3e3f3c checkpoint: into main from release/1.7.1 @ f637881f80 (#14901)
Source hash: f637881f80
Remaining commits: 3
2023-03-24 13:26:11 -05:00
Amine Khaldi 7acba82607 Merge commit 'f637881f80049f5648acd1936a2da936b5ca79a1' into checkpoint/main_from_release_1.7.1_f637881f80049f5648acd1936a2da936b5ca79a1 2023-03-24 14:36:57 +01:00
dustinfaceandGitHub c889ba02cd wallet: Cleanup get_timestamp_for_height + Drop height_to_time (#14885) 2023-03-24 03:38:43 -05:00
Kyle AltendorfandGitHub 22aabb4c5c remove traceback from LockQueue._run() cancellation debug logging (#14805) 2023-03-24 03:37:59 -05:00
Kyle AltendorfandGitHub 8cdaacf23c increase wallet.nft_wallet test job timeout to 70 minutes (#14881)
from https://github.com/Chia-Network/chia-blockchain/actions/runs/4455716184/usage i see macos with nominal low 40s runtime and outliers into the low 50s, windows has a wider variance with highs in the low 50s and 8'ish hung runs that timed out at the 75 minute timeout, linux looks like 30'ish with a high of maybe 36.
2023-03-24 02:17:53 -05:00
William AllenandGitHub 502cd1ba68 checkpoint: into main from release/1.7.1 @ c7d352fb4d (#14890)
Source hash: c7d352fb4d
Remaining commits: 4
2023-03-23 19:10:42 -05:00
Amine Khaldi f0537df0af Merge commit 'c7d352fb4d2436d71c90a416b2b6f10f08f7a059' into checkpoint/main_from_release_1.7.1_c7d352fb4d2436d71c90a416b2b6f10f08f7a059 2023-03-23 19:53:51 +01:00
William AllenandGitHub 15a08ab8cc checkpoint: into main from release/1.7.1 @ 79298bd829 (#14879)
Source hash: 79298bd829
Remaining commits: 4
2023-03-23 13:20:08 -05:00
Arvid NorbergandGitHub 8dbfc4840a enable soft-fork2 conditions (incl. ASSERT_BEFORE) (#14733)
* enable soft-fork2

* add blockchain (consensus) test for time-lock conditions (non-ephemeral spend)

* introduce new soft-fork rule to compare ASSERT_SECONDS_* conditions against the previous transaction block's timestamp (to be consistent with ASSERT_HEIGHT_* conditions)

* bump chia_rs. This updates the mempool rules to disallow relative height- and time conditions on ephemeral coin spends

* implement assert_before in mempool_check_time_locks. Extend ephemeral coin test in blockchain with assert_before conditions

* implement support for assert_before conditions in compute_assert_height()

* support assert-before in mempool

* add timelock rule

* address review comments
2023-03-23 11:30:10 -05:00
Kyle Altendorf 83c0b0cb0f change self peer connection error to info, remove traceback 2023-03-22 13:22:11 -04:00
ba2570f50f Staging changelog for updates (#14799)
* Staging changelog for updates

* Update changelog.md 

Preliminary update of the changelog based on the changelist between 1.7.0 and 1.7.1

* Cleanup Added items

cleaned up a few added items

* Updated Changed items

* Updates

* More updates

* fix typos

* minor update

* fix trailing whitespace

* Update CHANGELOG.md

* Typo

Co-authored-by: Jeff <jeff@chia.net>

* Update CHANGELOG.md

Co-authored-by: Jeff <jeff@chia.net>

---------

Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
Co-authored-by: Jeff <jeff@chia.net>
1.7.1
2023-03-22 12:14:57 -05:00
Amine Khaldi f184c9d1a4 Update the anchor to reflect the checkpoint. 2023-03-22 15:05:57 +01:00
Amine Khaldi 65dd082f21 Merge commit '79298bd829468e21262b11f802c200a5e8db2279' into checkpoint/main_from_release_1.7.1_79298bd829468e21262b11f802c200a5e8db2279 2023-03-22 15:01:35 +01:00
Adam KellyandGitHub 15d338976d Add placeholders for DAO Wallet directories (#14858) 2023-03-22 04:47:32 -05:00
William AllenandGitHub 30705249db checkpoint: into main from release/1.7.1 @ 1b475512ea (#14868)
Source hash: 1b475512ea
Remaining commits: 4
2023-03-21 20:00:16 -05:00
Arvid NorbergandGitHub 8d7a462702 can_replace() tests (#14864)
* mempool min fee increase is a constant

* make can_replace() a free function rather than a member of mempool. It doesn't need to be a member, and a free function is easier to test

* simplify can_replace by passing in MempoolItem

* slightly simplify handling of conflicting mempool items in mempool_manager, to avoid double lookups

* simplify can_replace() by just passing removal_names instead of the whole dict

* add unit test for can_replace()
2023-03-21 18:41:16 -05:00
Earle LoweandGitHub fecf363577 Update NFT wallet test timeout to 55m (#14872) 2023-03-21 17:59:03 -05:00