dependabot[bot]
a1d02c2606
Bump tracing-subscriber from 0.2.6 to 0.2.7
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.6...tracing-subscriber-0.2.7 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-07-02 06:47:04 -04:00
Jane Lusby
51f6ce86ff
Implement retry policy for syncer ( #551 )
2020-07-01 13:35:01 -07:00
Jane Lusby
7245d91fe9
fix block downloading to be parallelized and commited via the verifier ( #540 )
2020-06-30 09:42:09 -07:00
Henry de Valence
21bf913b48
Revert "correctly trim and download tips ( #531 )"
...
This reverts commit e102bd5e34
.
2020-06-24 12:24:37 -07:00
Jane Lusby
e102bd5e34
correctly trim and download tips ( #531 )
...
* also download tips and filter tips
* dispatch all block downloads together
* tweek to match henry's changes
* switch to more intuitive match
Co-authored-by: Jane Lusby <jane@zfnd.org>
2020-06-24 15:19:34 -04:00
Alfredo Garcia
67718898c5
add usage help to generated config ( #527 )
2020-06-23 11:56:00 -07:00
Henry de Valence
a453edd91c
Put type definitions back at the bottom of the file.
2020-06-23 10:16:27 -07:00
Henry de Valence
18eb212d8e
Set the new tips to be the last, not first, hash.
2020-06-23 10:16:27 -07:00
Henry de Valence
70241d3cad
Fix broken git dependencies.
...
Pinning hashes means these won't break again in the future; they can always be updated.
2020-06-22 20:23:02 -07:00
Jane Lusby
1c42b66a4f
Implement sync component for start subcommand ( #506 )
2020-06-22 19:24:53 -07:00
Jane Lusby
246e7cd2a9
Start testing out new version of `eyre` and `color-eyre` in zebra ( #526 )
...
* port to new version of eyre without generics
* correctly setup color_eyre hooks
Co-authored-by: Jane Lusby <jane@zfnd.org>
2020-06-22 15:36:23 -07:00
dependabot[bot]
f301de41fa
Bump tracing-subscriber from 0.2.5 to 0.2.6
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.2.5 to 0.2.6.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber/-0.2.5...tracing-subscriber-0.2.6 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-06-22 12:01:47 -04:00
Deirdre Connolly
05316dee21
Listen on 0.0.0.0, not 127.0.0.1
...
Turns out when your node faces the internet directly, it has to listen
to those addresses directly.
2020-06-19 03:46:09 -04:00
Henry de Valence
6cc1627a5d
zebrad: apply serde(default) to config sections
...
Each subsection has to have `serde(default)` to get the behaviour we want
(delete all fields except the ones that have been changed); otherwise, we can
delete only entire sections.
2020-06-18 17:43:36 -04:00
Henry de Valence
4b8f07ebb2
zebrad: Add reference to config docs.
2020-06-18 17:43:36 -04:00
Alfredo Garcia
b8f174ee3a
change config module to generate
2020-06-18 12:44:02 -07:00
Jane Lusby
7f8a336b69
switch to on_disk state service for start cmd
2020-06-17 23:30:50 -07:00
Jane Lusby
df18ac72c5
fix sharedpeererror to propagate tracing context
2020-06-17 14:38:26 -07:00
Jane Lusby
06fd3b2503
be more explicit with pattern in drain_requests
2020-06-16 12:04:45 -07:00
Jane Lusby
b0ecd019b6
apply comments from code review
2020-06-16 12:04:45 -07:00
Jane Lusby
d09c339dc5
little more cleaning
2020-06-16 12:04:45 -07:00
Jane Lusby
528fd2b5b1
add an outline of the structure of the node
2020-06-16 12:04:45 -07:00
Jane Lusby
fc96a41b18
copy connect command into start command
2020-06-16 12:04:45 -07:00
Jane Lusby
df656a8bf0
Reorganize `connect` subcommand for readibility ( #450 )
2020-06-12 09:20:58 -07:00
Jane Lusby
431f194c0f
propagate errors out of zebra_network::init ( #435 )
...
Prior to this change, the service returned by `zebra_network::init` would spawn background tasks that could silently fail, causing unexpected errors in the zebra_network service.
This change modifies the `PeerSet` that backs `zebra_network::init` to store all of the `JoinHandle`s for each background task it depends on. The `PeerSet` then checks this set of futures to see if any of them have exited with an error or a panic, and if they have it returns the error as part of `poll_ready`.
2020-06-09 12:24:28 -07:00
Deirdre Connolly
42cc55b0bb
Remove testing tokio task
...
That fires 'GetPeers' requests at our running 'zebra seed'.
2020-06-08 19:26:23 -04:00
Deirdre Connolly
43b77b080e
Fix 'dos' feature for seed command, and Buffer the seed service
2020-06-08 19:26:23 -04:00
Deirdre Connolly
8f5e7c268b
Request::Peers not GetPeers
2020-06-08 19:26:23 -04:00
Jane Lusby
9bcda0f9c7
Wrap Blocks in Arc throughout codebase
2020-06-05 00:36:55 -04:00
Jane Lusby
18b4dbc16c
fix tracing configuration issues ( #432 )
2020-06-04 19:34:06 -07:00
dependabot-preview[bot]
07b7c711fb
Bump color-eyre from 0.3.2 to 0.3.4
...
Bumps [color-eyre](https://github.com/yaahc/color-eyre ) from 0.3.2 to 0.3.4.
- [Release notes](https://github.com/yaahc/color-eyre/releases )
- [Commits](https://github.com/yaahc/color-eyre/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 22:55:02 -04:00
Jane Lusby
e9af80b875
Add initial version of zebra-state ( #414 )
...
* rename zebra-storage to zebra-state
* Setup initial skeleton for zebra-state
* add test
* Apply suggestions from code review
Co-authored-by: Henry de Valence <hdevalence@hdevalence.ca>
* move shared test vectors to a common crate
Co-authored-by: Jane Lusby <jane@zfnd.org>
Co-authored-by: Henry de Valence <hdevalence@hdevalence.ca>
2020-06-02 16:16:17 -07:00
dependabot-preview[bot]
8e7d91b4a3
Bump eyre from 0.4.2 to 0.4.3
...
Bumps [eyre](https://github.com/yaahc/eyre ) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/yaahc/eyre/releases )
- [Commits](https://github.com/yaahc/eyre/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 18:48:50 -04:00
dependabot-preview[bot]
a62b93d47c
Bump hyper from 0.13.5 to 0.13.6
...
Bumps [hyper](https://github.com/hyperium/hyper ) from 0.13.5 to 0.13.6.
- [Release notes](https://github.com/hyperium/hyper/releases )
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/hyper/compare/v0.13.5...v0.13.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-30 00:29:05 -04:00
Jane Lusby
da72c5a86a
switch from abscissa::Context to color-eyre ( #409 )
...
Co-authored-by: Jane Lusby <jane@zfnd.org>
2020-05-28 23:01:24 -04:00
Jane Lusby
8c178c3ee4
fix panic in seed subcommand ( #401 )
...
Co-authored-by: Jane Lusby <jane@zfnd.org>
Prior to this change, the seed subcommand would consistently encounter a panic in one of the background tasks, but would continue running after the panic. This is indicative of two bugs.
First, zebrad was not configured to treat panics as non recoverable and instead defaulted to the tokio defaults, which are to catch panics in tasks and return them via the join handle if available, or to print them if the join handle has been discarded. This is likely a poor fit for zebrad as an application, we do not need to maximize uptime or minimize the extent of an outage should one of our tasks / services start encountering panics. Ignoring a panic increases our risk of observing invalid state, causing all sorts of wild and bad bugs. To deal with this we've switched the default panic behavior from `unwind` to `abort`. This makes panics fail immediately and take down the entire application, regardless of where they occur, which is consistent with our treatment of misbehaving connections.
The second bug is the panic itself. This was triggered by a duplicate entry in the initial_peers set. To fix this we've switched the storage for the peers from a `Vec` to a `HashSet`, which has similar properties but guarantees uniqueness of its keys.
2020-05-27 17:40:12 -07:00
Jane Lusby
b6b35364f3
cleanup warnings throughout codebase
2020-05-27 15:42:29 -04:00
dependabot-preview[bot]
46cb7c02f2
Bump once_cell from 1.3.1 to 1.4.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.3.1...v1.4.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 22:28:18 -04:00
dependabot-preview[bot]
83ee4c2ca3
Bump hyper from 0.13.4 to 0.13.5
...
Bumps [hyper](https://github.com/hyperium/hyper ) from 0.13.4 to 0.13.5.
- [Release notes](https://github.com/hyperium/hyper/releases )
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/hyper/compare/v0.13.4...v0.13.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-18 08:43:40 +00:00
dependabot-preview[bot]
6867449ff4
Bump hyper from 0.13.3 to 0.13.4
...
Bumps [hyper](https://github.com/hyperium/hyper ) from 0.13.3 to 0.13.4.
- [Release notes](https://github.com/hyperium/hyper/releases )
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/hyper/compare/v0.13.3...v0.13.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-20 21:05:17 -04:00
Henry de Valence
dd8ba287bf
Correct block version parsing.
2020-03-18 21:34:02 -04:00
dependabot-preview[bot]
cf0348b4f5
Bump hyper from 0.13.2 to 0.13.3
...
Bumps [hyper](https://github.com/hyperium/hyper ) from 0.13.2 to 0.13.3.
- [Release notes](https://github.com/hyperium/hyper/releases )
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/hyper/compare/v0.13.2...v0.13.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-03 20:16:27 -05:00
Henry de Valence
81500dfe11
Add Zebra logotype.
2020-02-26 21:25:35 -08:00
Henry de Valence
cd6deea7e1
Clarify that it's the ZF discord and that it's engineering-focused.
2020-02-26 21:25:35 -08:00
Henry de Valence
ff3efd504c
Add Zebra logo to all workspace crates.
...
Also add html_root_url attributes.
2020-02-26 21:25:35 -08:00
Henry de Valence
f98cda40f9
Remove unused import.
2020-02-21 06:48:25 -05:00
Henry de Valence
9c357eaf1e
Use retries for FindBlocks requests.
2020-02-21 06:48:25 -05:00
Henry de Valence
b951f13f06
Add a `revhex` utility command to reverse endianness.
...
This makes it easier to translate block hashes output by our debug logs into
the format used by other tools.
2020-02-21 06:48:25 -05:00
Henry de Valence
afa2c2347f
fmt
2020-02-21 06:48:25 -05:00
Henry de Valence
8bff6ada6c
Prevent a crash serializing configs.
2020-02-14 20:14:05 -05:00