teor
89ac2793d6
feature: Use ChainVerifier in the sync service
2020-07-23 10:26:25 +10:00
Jane Lusby
a722cf33f7
enable new tracing instrumentation in tokio
2020-07-22 14:39:54 -04:00
Henry de Valence
928b0beb5d
sync: unindent fetch task
2020-07-21 20:16:23 -07:00
Henry de Valence
b722818e02
sync: remove redundant tracing specifier
...
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
2020-07-21 20:16:23 -07:00
Henry de Valence
1047d2f690
sync: add backpressure to syncer
...
Closes #617 .
Closes #698 .
The remaining work on the syncer is alluded to in a new comment:
1. Correctly constructing a block locator object
2. Detecting when we've stopped making progress syncing and restarting obtain_tips.
2020-07-21 20:16:23 -07:00
Alfredo Garcia
db2eb80b3e
Create consensus utils and move byte_reverse_hex function to it ( #705 )
...
* move byte_reverse_hex function
2020-07-22 12:29:14 +10:00
teor
e5bb96715f
fix: Reduce sync error logs to info or warn
...
Network issues are very common.
2020-07-21 10:13:03 -07:00
teor
a0dbe85acd
fix: Rewrite the config usage comment
2020-07-21 12:58:55 -04:00
dependabot[bot]
2208a6a22d
build(deps): bump tracing-subscriber from 0.2.7 to 0.2.8
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.7...tracing-subscriber-0.2.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-07-21 12:01:40 -04:00
Alfredo Garcia
fe2a468417
add favicon to generated docs ( #681 )
2020-07-17 16:45:29 -07:00
teor
71de6de701
fix: Only enable tokio components for servers
...
Only enable the tokio and tracing components for server commands.
2020-07-17 10:12:51 +10:00
teor
49a3a7d6d1
fix: Only launch network endpoints for server commands
...
Fixes #669 .
2020-07-16 10:40:03 -07:00
teor
851afad01f
fix: Resist CheckpointVerifier memory DoS attacks ( #635 )
...
* fix: Resist CheckpointVerifier memory DoS attacks
Allow a maximum of 2 queued blocks at each height, as a tradeoff between
efficient bad block rejection, and memory usage.
Closes #628 .
* fix: Make max queued blocks at height equal to fanout
* fix: Just allocate all the capacity upfront
* fix: Use with_capacity(1) and reserve_exact(1)
2020-07-15 13:27:10 -07:00
teor
78459afe97
fix: Stop revhex on EOF
2020-07-15 19:19:02 +10:00
teor
12b9fa8ae2
Let zebrad revhex read from stdin ( #648 )
...
* Log at warn level for commands that use stdout
* Let zebrad revhex read from stdin
Most unix tools support reading from stdin, so they can be used in
pipelines.
Part of #564 .
2020-07-15 16:16:07 +10:00
dependabot[bot]
c3fcac8a5c
Bump hyper from 0.13.6 to 0.13.7
...
Bumps [hyper](https://github.com/hyperium/hyper ) from 0.13.6 to 0.13.7.
- [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.6...v0.13.7 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-07-14 10:40:53 -07:00
teor
e1bb95603c
Put zebrad/Cargo.toml in a nicer order ( #650 )
2020-07-14 10:17:05 -07:00
teor
8b5ec155f0
Consensus refactor ( #629 )
...
* Flatten consensus::verify::* to consensus::*
* Move consensus::*::tests into their own files
* Move CheckpointList into its own file
* Move Progress and Target into a types module
QueuedBlock and QueuedBlockList can stay in checkpoint.rs, because
they are tightly coupled to CheckpointVerifier.
2020-07-10 16:51:01 +10:00
Henry de Valence
ff4e722cd7
sync: touch up tracing output.
2020-07-09 11:15:06 -07:00
Dimitris Apostolou
ba81d7d4c0
Fix typos
2020-07-07 11:13:49 -07:00
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