Skip to content

Commit 46c7974

Browse files
committed
Remove redundant hintfile builder
1 parent f60f577 commit 46c7974

File tree

7 files changed

+12
-117
lines changed

7 files changed

+12
-117
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
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

77
- `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.
8+
- `hintfile`: Read a hints file from a server.
99
- `node`: Perform fast IBD using a SwiftSync hints file.

hintfile/Cargo.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,4 @@ name = "hintfile"
33
version = "0.1.0"
44
edition = "2021"
55

6-
[dependencies]
7-
kernel = { workspace = true }
86

9-
configure_me = "0.4.0"
10-
11-
[build-dependencies]
12-
configure_me_codegen = "0.4.0"
13-
14-
[package.metadata.configure_me]
15-
spec = "config_spec.toml"
16-
17-
[[bin]]
18-
name = "construct"

hintfile/build.rs

Lines changed: 0 additions & 5 deletions
This file was deleted.

hintfile/config_spec.toml

Lines changed: 0 additions & 17 deletions
This file was deleted.

hintfile/src/bin/construct.rs

Lines changed: 0 additions & 75 deletions
This file was deleted.

node/README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@
22

33
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).
44

5-
You will need a `.hints` file locally to run this binary. There is one committed to by the repository as a `zip` file. You may uncompress it with the `unzip` tool.
5+
You will need a `.hints` file locally to run this binary. You may download one from a server:
66

7-
```
8-
sudo apt-get install unzip
9-
```
7+
For Signet:
108

9+
```bash
10+
curl -o signet.hints http://utxohints.store/hints/signet
1111
```
12-
unzip bitcoin.hints.zip
12+
13+
Or for Bitcoin:
14+
15+
```bash
16+
curl -o bitcoin.hints http://utxohints.store/hints/bitcoin
1317
```
1418

1519
To build the Bitcoin kernel, you will need the following on Ubuntu:
1620

17-
```
21+
```bash
1822
sudo apt-get install build-essential cmake pkgconf python3 libevent-dev libboost-dev
1923
```
2024

@@ -24,7 +28,7 @@ Finally, you will need Rust and cargo installed, you may download them from [her
2428

2529
To start fast IBD:
2630

27-
```
31+
```bash
2832
cargo run --bin ibd --release -- <args>
2933
```
3034

node/bitcoin.hints.zip

-89.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)