Zebra/zebra-chain/src/parameters
Janito Vaqueiro Ferreira Filho 9538ad29e5
feat(util): add a `zebra-tip-height` utility (#4289)
* Move `init_tracing` to `lib.rs`

Allow it to be reused by other binaries.

* Fix `hex` dependency inclusion in `zebra-chain`

It would previously fail because `hex` was being included without the
`serde` feature, even though we required that for `transparent::Script`.

* Implement `FromStr` for `Network`

Make it easy to receive it as a command-line parameter.

* Add `zebra-tip-height` utility

Obtains the chain tip height of a directory containing Zebra state.

* Remove Tokio dependency from `zebra-utils`

It wasn't actually used by the `zebra-tip-height` utility.

* Remove `BoxStateService` type alias

It's not needed if we don't return the unused state service. This also
allows removing the `tower` dependency.

* Remove unnecessary attribute

Leftover from copied code.

* Make `cache_dir` argument optional

Fallback to the default Zebra state cache directory.

* Remove added newline

Minor formatting fix, to avoid adding an unnecessary newline.

* Move `tip-height` command into `zebrad`

Make it available as a sub-command in `zebrad`.

* Make some zebrad sub-commands only log warnings

Co-authored-by: teor <teor@riseup.net>
2022-05-06 03:31:52 +00:00
..
network feat(consensus): Validate ZIP-212 grace period blocks using checkpoints (#3889) 2022-03-17 00:37:50 +00:00
arbitrary.rs Legacy chain check and tests (#2366) 2021-06-29 15:03:51 +10:00
genesis.rs Reverse displayed endianness of transaction and block hashes (#1171) 2020-10-22 07:54:02 +10:00
network.rs feat(util): add a `zebra-tip-height` utility (#4289) 2022-05-06 03:31:52 +00:00
network_upgrade.rs Require a minimum network protocol version of 170_040 (#3976) 2022-04-19 16:14:24 +00:00
tests.rs feat(rpc): Implement `getblockchaininfo` RPC method (#3891) 2022-03-25 12:25:31 +00:00
transaction.rs Add transaction version 5 stubs (#1824) 2021-03-04 07:56:41 +10:00