zebra/zebrad/src/commands
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
..
copy_state.rs 7. feat(state): add a read-only state service stub (#3835) 2022-03-11 10:58:22 -03:00
download.rs Fix typos (#3314) 2022-01-04 11:25:00 +01:00
generate.rs lint(clippy): warn on manual printing to stdout or stderr (#3767) 2022-03-08 09:14:15 +00:00
start.rs feat(rpc): Implement an RPC transaction queue (#4015) 2022-04-12 15:06:29 +10:00
tip_height.rs feat(util): add a `zebra-tip-height` utility (#4289) 2022-05-06 03:31:52 +00:00
version.rs lint(clippy): warn on manual printing to stdout or stderr (#3767) 2022-03-08 09:14:15 +00:00