-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
22 changed files
with
545 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Lints | ||
|
||
# We only run these lints on trial-merges of PRs to reduce noise. | ||
on: pull_request | ||
|
||
jobs: | ||
|
||
fmt: | ||
name: Rustfmt | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: cargo fmt -- --check | ||
|
||
clippy: | ||
name: Clippy (MSRV) | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run Clippy | ||
uses: auguwu/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
working-directory: ${{ inputs.target }} | ||
deny: warnings |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,20 @@ | ||
FROM ubuntu:22.04 | ||
FROM rust:1.76.0 | ||
|
||
# Set up Rust and cargo | ||
RUN apt-get update && apt-get install git build-essential clang curl unzip -y | ||
|
||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
|
||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
# Download and extract the zcash cached chain to /etc/zebra-test | ||
WORKDIR /etc | ||
|
||
RUN curl -O https://qedit-public.s3.eu-central-1.amazonaws.com/zsa/zcash-state.zip | ||
|
||
RUN unzip zcash-state.zip -d zebra-test | ||
RUN apt-get update && apt-get install git build-essential clang -y | ||
|
||
# Checkout and build custom branch of the zebra repository | ||
RUN git clone https://github.com/QED-it/zebra.git | ||
|
||
WORKDIR zebra | ||
|
||
RUN git switch singlenode-network-txv5 | ||
RUN git switch zsa1 | ||
|
||
RUN cargo build --release --package zebrad --bin zebrad --features="getblocktemplate-rpcs" | ||
|
||
EXPOSE 18232 | ||
|
||
COPY regtest-config.toml regtest-config.toml | ||
|
||
# Run the zebra node | ||
ENTRYPOINT ["target/release/zebrad", "-c", "singlenode-config.toml"] | ||
ENTRYPOINT ["target/release/zebrad", "-c", "regtest-config.toml"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[mining] | ||
miner_address = 'tmLTZegcJN5zaufWQBARHkvqC62mTumm3jR' | ||
|
||
[network] | ||
network = "Regtest" | ||
|
||
# This section may be omitted when testing only Canopy | ||
[network.testnet_parameters.activation_heights] | ||
# Configured activation heights must be greater than or equal to 1, | ||
# block height 0 is reserved for the Genesis network upgrade in Zebra | ||
NU5 = 1 | ||
|
||
# This section may be omitted if a persistent Regtest chain state is desired | ||
[state] | ||
ephemeral = true | ||
|
||
# This section may be omitted if it's not necessary to send transactions to Zebra's mempool | ||
[rpc] | ||
listen_addr = "0.0.0.0:18232" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
pub mod persistence; | ||
pub mod rpc_client; | ||
pub mod wallet; | ||
pub mod persistence; | ||
pub mod zebra_merkle; | ||
|
||
pub mod transactions; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,4 @@ impl InsertableNoteData { | |
spend_action_index: note.spend_action_index, | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.