chia-blockchain/chia/util
Chris Marslender cbbdb6510a
Adding additional data to RPCs for metrics (#9945)
* Add "metrics" as an additional destination for get_blockchain_state changes

* Add compact/uncompact blocks to get_blockchain_state

* Add total mempool cost to blockchain state

* Add hint count to blockchain state

* Add info about max cost, block_cost, and block_fees

* Add mempool min fee to blockchain state

* Add dict for mempool fee estimates

* dont start key with number

* Move max block cost to blockchain state

* Add generic exception logging util

* Catch/log any exceptions in counting hints

* Fix inconsistent key

* Assert row is not none

* Move block count metrics to a new endpoint

* report on block instead of unfinished_block for metrics

* Mark the block event with bool for if transaction block or not

* Add some basic tests for counting hints

* Add some basic tests on counting compact/uncompact blocks

* Fix lint

* Add k-size

* Add timestamp

* Add header_hash + height
2022-01-27 18:42:49 -08:00
..
__init__.py git mv src chia 2021-04-04 21:41:39 -07:00
api_decorators.py Reply type decorator (#8276) 2021-09-20 11:31:15 -07:00
bech32m.py Add remaining offer code to main (#9886) 2022-01-20 14:49:31 -08:00
block_cache.py Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
byte_types.py stub and use SizedBytes.fromhex() until upstream is released (#9458) 2021-12-10 14:59:49 -08:00
cached_bls.py Fix some hints (#9484) 2021-12-10 15:00:43 -08:00
chain_utils.py Fullnode related changes from wallet protocol and unharded derivation (#8522) 2021-09-18 10:27:34 -07:00
check_fork_next_block.py Sync faster (#7665) 2021-08-18 18:26:38 -07:00
chia_logging.py default log rotation to 50 MB (instead of 20) and make it configurable (#9986) 2022-01-27 15:54:20 -08:00
clvm.py git mv src chia 2021-04-04 21:41:39 -07:00
condition_tools.py Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
config.py Peer db new serialization (#9079) 2021-11-19 11:12:58 -08:00
create_alert_file.py git mv src chia 2021-04-04 21:41:39 -07:00
db_synchronous.py make db_sync setting default to FULL. Extend the configuration to cover all of OFF, NORMAL and OFF (#8836) 2021-10-16 09:02:18 -07:00
db_version.py V2 database framework (#9442) 2021-12-03 13:52:10 -08:00
db_wrapper.py revert allow-upgrades configuration option. It makes it significantly more complicated to do proper database migrations (#9768) 2022-01-13 14:53:27 -08:00
default_root.py migration (#9948) 2022-01-26 17:19:42 -08:00
dump_keyring.py Renamed chia.util.ssl to avoid conflicting with aiohttp's ssl import. (#8805) 2021-10-12 13:59:29 -07:00
english.txt pre-commit: Add initial config and run it for all files (#7053) 2021-08-02 10:48:22 -07:00
errors.py Move BLS validation to other processes during sync (#9746) 2022-01-20 14:50:41 -08:00
file_keyring.py Properly assign keyring observer to instance field (#9556) 2021-12-13 22:41:51 -08:00
files.py Peer db new serialization (#9079) 2021-11-19 11:12:58 -08:00
generator_tools.py Make the sized bytes types hint compatible (#9369) 2021-12-02 09:43:39 -08:00
hash.py git mv src chia 2021-04-04 21:41:39 -07:00
initial-config.yaml default log rotation to 50 MB (instead of 20) and make it configurable (#9986) 2022-01-27 15:54:20 -08:00
ints.py mypy: warn_unused_ignores = true (and remove some) (#9085) 2021-11-23 12:44:53 -08:00
json_util.py reverting 7645 (#7708) 2021-07-22 09:00:36 -07:00
keychain.py Enable keyring passphrase support by default. Can be disabled by setting the CHIA_PASSPHRASE_SUPPORT env variable to false. (#8864) 2021-10-22 09:03:27 -07:00
keyring_wrapper.py mypy: warn_unused_ignores = true (and remove some) (#9085) 2021-11-23 12:44:53 -08:00
log_exceptions.py Adding additional data to RPCs for metrics (#9945) 2022-01-27 18:42:49 -08:00
lru_cache.py Use lru cache (#2433) 2021-04-26 23:21:58 -07:00
make_test_constants.py Add more types (#3441) 2021-05-12 15:32:21 -07:00
merkle_set.py Merge standalone wallet into main (#9793) 2022-01-13 12:08:32 -08:00
misc.py Keyring passphrase protection (#7249) 2021-08-04 12:46:55 -07:00
network.py Resolve v6 addresses (#8861) 2021-11-22 14:34:03 -08:00
partial_func.py git mv src chia 2021-04-04 21:41:39 -07:00
path.py git mv src chia 2021-04-04 21:41:39 -07:00
permissions.py Create SSL keys/certs with proper permissions, also verify/fix existing installs (#7972) 2021-08-15 15:53:54 -07:00
pip_import.py git mv src chia 2021-04-04 21:41:39 -07:00
prev_transaction_block.py git mv src chia 2021-04-04 21:41:39 -07:00
profiler.py add profiler to wallet process (#6019) 2021-05-26 11:01:17 -07:00
recursive_replace.py Add more types (#3441) 2021-05-12 15:32:21 -07:00
safe_cancel_task.py Add more types (#3441) 2021-05-12 15:32:21 -07:00
service_groups.py Remove wallet-only as a service group (#9935) 2022-01-26 17:21:08 -08:00
setproctitle.py Add more types (#3441) 2021-05-12 15:32:21 -07:00
significant_bits.py Fix edge case with negative input (#8529) 2021-09-22 10:45:26 -07:00
ssl_check.py Renamed chia.util.ssl to avoid conflicting with aiohttp's ssl import. (#8805) 2021-10-12 13:59:29 -07:00
streamable.py Fix streamable for Python 3.10 (#9918) 2022-01-23 21:44:51 -08:00
struct_stream.py mypy: warn_unused_ignores = true (and remove some) (#9085) 2021-11-23 12:44:53 -08:00
type_checking.py Ms.performance (#1776) 2021-04-13 16:42:26 +09:00
validate_alert.py git mv src chia 2021-04-04 21:41:39 -07:00
vdf_prover.py git mv src chia 2021-04-04 21:41:39 -07:00
ws_message.py DaemonProxy request IDs should be hinted as strings (#9584) 2021-12-16 15:13:41 -08:00