Skip to content

Commit a3a6c5e

Browse files
authored
Merge pull request #39 from rustaceanrob/8-18-doc
Update crate descriptions
2 parents 763b9f1 + 8df1783 commit a3a6c5e

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44

55
This repository is a collection of crates related to a SwiftSync node implementation. Some crates will be SwiftSync-specific, while others may have broader use cases.
66

7-
`accumulator`: A hash-based SwiftSync accumulator used to add and subtrack elements from a set.
8-
`network`: Tools to find Bitcoin peers
7+
- `accumulator`: A hash-based SwiftSync accumulator used to add and subtrack elements from a set.
8+
- `hintfile`: Generate a SwiftSync hintfile as the role of a server.
9+
- `node`: Perform fast IBD using a SwiftSync hints file.
10+
- `network`: Tools to find Bitcoin peers.

hintfile/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SwiftSync hint file
2+
3+
This crate is capable of generating a `.hints` file to use as a SwiftSync client. You will need to have Bitcoin Core synced to a recent block or either mainnet or Signet.

node/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# SwiftSync fast IBD
2+
3+
This binary implements a SwiftSync client that downloads blocks in parallel from multiple peers, references a hint file, and updates an accumulator. Once the client has reached the stop hash specified in the hint file, the accumulator state is reported as verified or false. For more information, read the [SwiftSync specification](https://gist.github.com/RubenSomsen/a61a37d14182ccd78760e477c78133cd).
4+
5+
You will need a `.hints` file locally to run this binary. See the `hintfile` create in this workspace to generate one from Bitcoin Core.
6+
7+
To start fast IBD:
8+
```
9+
cargo run --bin ibd --release -- <args>
10+
```
11+
12+
13+
```
14+
Arguments:
15+
--hintfile The path to your `bitcoin.hints` file that will be
16+
used for IBD
17+
--blocks-dir Directory where you would like to store the bitcoin
18+
blocks
19+
--network The bitcoin network to operate on. Options are `
20+
bitcoin` or `signet`
21+
--ping-timeout The time a peer has to respond to a `ping` message.
22+
Pings are sent aggressively throughout IBD to find
23+
slow peers.
24+
--tcp-timeout The maximum time to establish a connection
25+
--read-timeout The maximum time to read from a TCP stream until the
26+
connection is killed.
27+
--write-timeout The maximum time to write to a TCP stream until the
28+
connection is killed.
29+
```

0 commit comments

Comments
 (0)