Commit Graph

4 Commits

Author SHA1 Message Date
Pavel Yakovlev
8b4ab4bfde
fix full sync on DB v2 (#10157)
* Update hint_store.py

* Update db_upgrade_func.py

* Fix a hint by black.

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2022-02-09 09:11:01 -08:00
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
Arvid Norberg
5375c1a0af
[v2] remove unused counter column in hint table (for v2 schema) (#9778)
* remove unused counter column in hint table (for v2 schema)

* the new db file is expected to be empty. fail if any tables already exist
2022-01-25 07:45:54 -08:00
Yostra
4fddb5cdf1
Full node changes required for CAT / Standalone (#8616)
* full node changes

* hint store

* finish coin state tracking, mypy, flake8

* type hints

* bump protocol version

* change wallet tool for testing hint list

* mypy

* add check for state, future proof hint db for multiple hints per coin

* get hint rename

* clean

* Update chia/consensus/blockchain.py

Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>

Co-authored-by: Mariano Sorgente <3069354+mariano54@users.noreply.github.com>
Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>
2021-09-29 15:04:29 -07:00