-
Notifications
You must be signed in to change notification settings - Fork 153
Zero-fee commitments support #660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
7453b39
2178473
282addd
4950f2d
1847856
4eaf80a
f752a31
96df225
17d6d84
04857aa
4e0e4e5
b8ebaac
088c084
40d3d65
69ffd66
06a1284
d16a4f7
79c21ba
9b4e489
9a30ac4
7dc92d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/bin/bash | ||
|
benthecarman marked this conversation as resolved.
|
||
| set -eox pipefail | ||
|
|
||
| # Our Esplora-based tests require `electrs` binaries. Here, we | ||
| # download the code, build the binaries, and export their location | ||
| # via `ELECTRS_EXE` which will be used by the `electrsd` crates in | ||
| # our tests. | ||
|
|
||
| HOST_PLATFORM="$(rustc --version --verbose | grep "host:" | awk '{ print $2 }')" | ||
| ELECTRS_GIT_REPO="https://github.com/tankyleo/blockstream-electrs.git" | ||
| ELECTRS_TAG="2026-05-26-electrum-submit-package" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we do this, we should use a specific commit revision, not point to a general branch.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is indeed my intention, and I believe the script currently does this. See the tag here: https://github.com/tankyleo/blockstream-electrs/releases/tag/2026-05-26-electrum-submit-package
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, sorry, I took
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done below, the tag remains useful to do a |
||
| ELECTRS_REV="8c06d8010e43f793b1a65f83695ea846e5cd83ed" | ||
| if [[ "$HOST_PLATFORM" != *linux* && "$HOST_PLATFORM" != *darwin* ]]; then | ||
| printf "\n\n" | ||
| echo "Unsupported platform: $HOST_PLATFORM Exiting.." | ||
| exit 1 | ||
| fi | ||
|
|
||
| DL_TMP_DIR=$(mktemp -d) | ||
| trap 'rm -rf -- "$DL_TMP_DIR"' EXIT | ||
|
|
||
| pushd "$DL_TMP_DIR" | ||
| git clone --branch "$ELECTRS_TAG" --depth 1 "$ELECTRS_GIT_REPO" blockstream-electrs | ||
| cd blockstream-electrs | ||
| CURRENT_HEAD=$(git rev-parse HEAD) | ||
| if [ "$CURRENT_HEAD" != "$ELECTRS_REV" ]; then | ||
| echo "ERROR: HEAD does not match expected commit" | ||
| echo "expected: $ELECTRS_REV" | ||
| echo "actual: $CURRENT_HEAD" | ||
| exit 1 | ||
| fi | ||
| RUSTFLAGS="" cargo build | ||
| export ELECTRS_EXE="$DL_TMP_DIR"/blockstream-electrs/target/debug/electrs | ||
| chmod +x "$ELECTRS_EXE" | ||
| popd | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we add cargo cleans? won't that screw up the cache?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hitting a "disk space exhausted error" on that job in CI, wanted to see if this helps, at the cost of individual CI taking longer yes.
cargo buildandcargo testseem to rebuild from scratch, no shared artifacts.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I presume this is because we are building electrs in CI. Since its cached now, can you remove the cargo cleans? Maybe just put a clean after you upload the electrs binary