Commit graph

10176 commits

Author SHA1 Message Date
Adam Kelly
e59666b319
Improve command line info display for fee estimation (#14336)
* Improve command line info display for fee estimation

* Update test
2023-01-13 12:23:22 -06:00
Adam Kelly
06eb18217e
Test get_bucket_index (#14294)
* Test get_bucket_index

* Apply epsilon to test constants

* Simplify get_bucket_index
2023-01-13 11:16:23 -06:00
Steve Stepp
745ae8496c
Fixed condition to check for wallet_id (#14306)
Fix second condition to check for wallet_id

The second condition for the OR statement was the same as the first. It should be verifying that a wallet_id was passed in.
2023-01-12 13:03:40 -06:00
Almog De Paz
e7e696af4a
add rate limits numbers to none response type (#14184) 2023-01-12 03:42:55 -06:00
Arvid Norberg
0f9e4ee41a
infrastructure for upcoming soft-fork (#14302)
soft-fork infrastructure
2023-01-12 03:08:59 -06:00
Amine Khaldi
2f5bbd6875
Add a unit test for mempool reserve fee check (#14323)
Add a unit test for mempool reserve fee check.
2023-01-12 01:09:53 -06:00
Earle Lowe
062dde7e24
Check for valid timeout and log error (#14304)
* Handle edge case for missing pool state

* add proper check

* Switch to error from warning
2023-01-12 01:09:03 -06:00
Arvid Norberg
0ce46bc566
disallow empty SpendBundles in the mempool (#14305)
* disallow empty SpendBundles from being added to the mempool

* Update chia/full_node/mempool_manager.py

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
2023-01-10 18:57:12 -06:00
Arvid Norberg
ff3bb5c72e
optimize mempool's potential cache (#14297)
split potential cache into conflict- and pending cache. The pending cache can be organized more efficiently and can have higher capacity
2023-01-10 18:56:50 -06:00
Adam Kelly
199bbb912e
Try each Chia DNS Server in list before trying introducers (#14253)
* When looking for peers, try all DNS servers first, then try the introducer. Start from a random dns server each restart.

* Simplify randomizing dns server order
2023-01-10 18:56:17 -06:00
arty
4c5319bcbf
Update version of clvm_tools_rs to 0.1.30 (#14327) 2023-01-10 18:51:24 -06:00
github-actions[bot]
f55fe8402c
CA Cert updates (#14324)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2023-01-10 18:51:09 -06:00
Adam Kelly
c7597a1e82
Reduce lower limit of tx per block seen at a certain fee rate, so estimates are produced sooner (#14291)
Reduce lower limit of tx per block seen at a certain fee rate, so that we produce estimates sooner
2023-01-09 15:30:14 -06:00
Earle Lowe
b6596f9a9f
Fix up doc string for get_mempool_item (#14300)
Fix up doc string
2023-01-09 15:29:18 -06:00
dustinface
ba562305cd
full_node: Use ConsensusConstants.MAX_BLOCK_COUNT_PER_REQUESTS (#14313) 2023-01-09 15:29:02 -06:00
Amine Khaldi
85ff27f9fa
Add a unit test for mempool minting coin check (#14314)
Add a unit test for mempool minting coin check.
2023-01-09 15:28:31 -06:00
dustinface
390b0f677f
tests: Use set literal in test_subscriptions.py (#14311) 2023-01-09 14:41:58 -06:00
Jeff
bb9720c2c3
Bump chia-blockchain-gui to d4c0f2863aefdfd679532928a1d46f92bbd02bf2 (#14317)
Includes:
Fix for NFT metadata not displaying properly
Optimizations for displaying large NFT galleries
Added an button to clear the NFT cache in Settings --> NFT
NFT gallery now remembers the scroll position when navigating between
  the gallery and NFT details
Fixes to the NFT gallery searching/filtering capabilities
Fixed an issue where text field component did not recognize rules
2023-01-09 14:40:23 -06:00
Kyle Altendorf
e8262e945f
coverage use [run] source_pkgs= instead of source= (#14164)
This avoids some collisions in some coverage reports between files in `chia/` and `tests/`.  Minimal example in https://github.com/altendky/example001 and "real" trouble observed in https://github.com/Chia-Network/chia-blockchain/pull/14141/files.
2023-01-06 16:59:41 -06:00
Kyle Altendorf
7caab0af58
Remove the rest of uvloop (#14191)
* Remove the rest of uvloop

The extra was removed at cc062976ea, should have removed the rest of the code too.

* isort
2023-01-06 16:59:28 -06:00
Kyle Altendorf
22507d7ade
psutil==5.9.4 (#14216)
for abi3 wheels for python 3.11 support

extracted from https://github.com/Chia-Network/chia-blockchain/pull/11407
2023-01-06 16:56:26 -06:00
Kyle Altendorf
d6088c1e1c
watchdog==2.2.0 (#14217)
for python 3.11 wheels

extracted from https://github.com/Chia-Network/chia-blockchain/pull/11407
2023-01-06 16:56:15 -06:00
Kyle Altendorf
e223fa18e7
chiabip158==1.2 (#14218)
for python 3.11 wheels. https://github.com/Chia-Network/chiabip158/compare/1.1...1.2

extracted from https://github.com/Chia-Network/chia-blockchain/pull/11407
2023-01-06 16:56:00 -06:00
Kyle Altendorf
8ef43dcb30
make PR template headings actual markdown headings (#14240) 2023-01-06 16:55:40 -06:00
Kyle Altendorf
69b38bea73
@functools.wraps() for the API request decorators (#14234)
Without this the representation of the resulting methods look like `<function api_request.<locals>.inner.<locals>.wrapper at 0x7ff7ff655990>`.  With, they are identifiable as to the method they wrap such as `<function FullNodeAPI.request_peers at 0x7fcc85d0d990>`.
2023-01-06 16:55:26 -06:00
Kyle Altendorf
e0fc98661f
include windows coverage (#13587)
* try out proposed windows coverage combining fix

* Add [paths]

* diagnostics

* more complete paths section

* --only core.cmds

* Update test.yml

* Update test.yml

* --debug=pathmap

* ini-form

* Remove [paths]

* remove some debug

* remove --only core/cmds

* Update setup.py

* coverage[toml]==7.0.0b1

* coverage[toml]~=7.0
2023-01-06 16:55:07 -06:00
Kyle Altendorf
6cbf6f3c63
Use Chia-Network/actions/check-commit-signing (#13923)
* Use Chia-Network/actions/check-commit-signing

* @add_check_commit_signing

* use @main

* move check commit signing to a dedicated workflow

* Update check-commit-signing.yml
2023-01-06 16:54:11 -06:00
Adam Kelly
b71eaa0a8e
Call method to process transactions added to mempool in Fee Estimator (#14290) 2023-01-06 14:18:52 -06:00
Chida82
5fd468df15
Add proxy support to Data Layer download client (#14281)
* add proxy

* fix format document

* format document

* fix whitespace

* fix end of file
2023-01-06 14:18:36 -06:00
Jack Nelson
1796206f25
Fix fee and unit amounts when coin splitting or viewing coins (#14172)
* fix fee ammt

* remove unit type

* fix fee calc

* Revert "Merge commit '30b9173eb205db5476b72bba8ef61dd2c3d34645' into checkpoint/main_from_release_1.6.2_30b9173eb205db5476b72bba8ef61dd2c3d34645"

This reverts commit 9884a729ac, reversing
changes made to 39d733599d.

* clear up cli args

* Update coins.py

* fix lint

* add seperate error for only 1 coin with combine.
2023-01-06 12:05:17 -06:00
Adam Kelly
53a3661555
Check if a SpendBundle was included in a block BEFORE removing it from the Mempool (#14293) 2023-01-06 12:01:14 -06:00
Adam Kelly
00480ccd1b
Remove conflicting TXs before adding SpendBundle to Mempool in add_spend_bundle (#14292) 2023-01-06 12:00:54 -06:00
Adam Kelly
8e764eb05e
Fix computation of moving averages (#14288) 2023-01-06 11:59:30 -06:00
Adam Kelly
2d54068456
Tune Fee Estimator parameter so that lowest suggested fee rate is 5 Mojo per CLVM cost (#14286) 2023-01-06 11:59:01 -06:00
Adam Kelly
b9bef03714
If self.last_mempool_info is not yet set, return an empty FeeMempoolInfo, rather than None (#14282)
* If self.last_mempool_info is not yet set, return an empty FeeMempoolInfo, rather than None

* Initialize last_mempool_info early
2023-01-06 11:57:36 -06:00
Adam Kelly
1ecdb40c13
Use better check that we are on mainnet when deciding to use default Chia DNS server (#14254)
Use a better check for if we are on mainnet when using the default chia dns introducer
2023-01-06 11:56:14 -06:00
Earle Lowe
0a0c8920ff
Add a daemon heartbeat setting to config.yaml (#13886)
* make daemon heartbeat configurable and increase default

* Fix up daemon rpc test

* Fix dumb error with parameters

* Restore formatting

* Various updates from feedback

* Update tests/core/test_daemon_rpc.py

use config value for heartbeat

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* black fixes

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-01-06 11:55:20 -06:00
Arvid Norberg
c74689dbbe
bump chia_rs dependency to the latest version (#14289) 2023-01-06 11:45:11 -06:00
dustinface
4c94f5f415
wallet: Drop duplicate puzzle hashes assert (#14287)
While #14187 fixes duplicated entries in new DBs, existing DBs still 
contain them and will trigger this assert so lets remove it again.
2023-01-05 20:19:36 -06:00
dustinface
c9b34bcc3e
wallet: Some simplifications in WalletNode.long_sync (#14185)
* Simplify puzzle hash subscribing

* Simplify coin id subscribing

* Use the result of `chunks` in the loop definition

* Calculate the duration in place

* Filter before split to chunks and update the already checked at the end

* Adjust empty set check
2023-01-05 19:54:47 -06:00
Adam Kelly
820493ffa8
Add new_block_height to FeeEstimatorInterface (#14277)
* Add new_block_height to FeeEstimatorInterface

* Fancy-up create_test_block_record, rename test

* Integrate new interface method
2023-01-05 15:34:53 -06:00
Kyle Altendorf
e1c986435a
return failure if mempool manager has no peak (#14274)
* ignore spend bundle if mempool manager has no peak

* return a failure status
2023-01-05 15:25:46 -06:00
Kyle Altendorf
92c2bd5b49
use config.get("trusted_peers", {}) for wallet (#14273) 2023-01-05 15:25:25 -06:00
Arvid Norberg
a5397ec0c3
factor out coin- and PH subscription handling in order to add unit tests (#14222)
* factor out coin- and PH subscription handling in order to add unit tests

* address review comments

* fixup rebase. test_simple_sync_protocol.py
2023-01-05 15:24:58 -06:00
dustinface
51fd1d8792
wallet: Don't add derived puzzle hashes to the WalletInterestedStore (#14187)
* wallet: Don't add derived puzzle hashes to the `WalletInterestedStore`

We already use the derived puzzle hashes when we subscribe to the node 
here 
39d733599d/chia/wallet/wallet_node.py (L1291). 
I assume this was done to make sure we subscribe to new puzzle hashes 
but at the end it leads to redundant entries in `derivation_paths` vs 
`interested_puzzle_hashes` so we can just subscribe here instead? If we 
want to keep them in both tables for some reason we may at least get rid 
of `get_puzzle_hashes_to_subscribe` and use the ones from the interest 
store only and maybe adjust the other related methods?

* See if there are duplicates in tests
2023-01-05 10:59:47 -06:00
Matt Hauff
4d482f6105
Add a height timestamp for wallet notifications (#14163)
* Add a height timestamp for wallet notifications

* import sqlite3

* lint

* isort

* catch specific error

* Add a test for db backcompat

* Add a test for correct height

* mypy
2023-01-05 10:58:38 -06:00
Adam Kelly
d658de4e08
Refactor get_bucket_index (#14270) 2023-01-05 10:56:23 -06:00
William Allen
f3a709e5e8
Fix GITHUB_OUTPUT in build workflows (#14276) 2023-01-05 00:38:59 -06:00
William Allen
0673cb624c
checkpoint: into main from release/1.6.2 @ ba1ff12b31 (#14265)
Source hash: ba1ff12b31
Remaining commits: 0
2023-01-04 19:08:13 -06:00
Amine Khaldi
5974f04257
Remove redundant check for duplicate inputs (#14272)
Remove redundant check for duplicate inputs.
2023-01-04 11:17:00 -06:00