Skip to content

Commit

Permalink
chore(ci): remove third_party/bitcoin-core (#1603)
Browse files Browse the repository at this point in the history
This PR replaces `third_party/bitcoin-core` by downloading the
`bitcoind` binary from the Bitcoin core release.
  • Loading branch information
mraszyk authored Sep 23, 2024
1 parent 1ee7f5a commit cf15f9e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 61 deletions.
23 changes: 17 additions & 6 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,6 @@ load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")

rules_pkg_dependencies()

# Bitcoin core

load("//third_party/bitcoin-core:bitcoin-core_repository.bzl", "bitcoin_core_repository")

bitcoin_core_repository()

# Third party dependencies that require special treatment

lmdb_repository()
Expand Down Expand Up @@ -959,3 +953,20 @@ http_file(
load("//rs/tests:kubeconfig.bzl", "kubeconfig")

kubeconfig()

http_archive(
name = "bitcoin_core",
build_file_content = """
package(default_visibility = ["//visibility:public"])
filegroup(
name = "bitcoind",
srcs = ["bin/bitcoind"],
)
""",
sha256 = "2a6974c5486f528793c79d42694b5987401e4a43c97f62b1383abf35bcee44a8",
strip_prefix = "bitcoin-27.0",
urls = [
"https://bitcoin.org/bin/bitcoin-core-27.0/bitcoin-27.0-x86_64-linux-gnu.tar.gz",
"https://bitcoincore.org/bin/bitcoin-core-27.0/bitcoin-27.0-x86_64-linux-gnu.tar.gz",
],
)
5 changes: 2 additions & 3 deletions rs/bitcoin/adapter/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,14 @@ rust_test_suite(
aliases = ALIASES,
data = [
# Keep sorted.
"@bitcoin-core//:bitcoin-core",
"@bitcoin-core//:bitcoind",
"@bitcoin_adapter_mainnet_blocks//file",
"@bitcoin_adapter_mainnet_headers//file",
"@bitcoin_adapter_testnet_blocks//file",
"@bitcoin_adapter_testnet_headers//file",
"@bitcoin_core//:bitcoind",
],
env = {
"BITCOIN_CORE_PATH": "$(rootpath @bitcoin-core//:bitcoind)",
"BITCOIN_CORE_PATH": "$(rootpath @bitcoin_core//:bitcoind)",
"HEADERS_DATA_PATH": "$(rootpath @bitcoin_adapter_mainnet_headers//file)",
"BLOCKS_DATA_PATH": "$(rootpath @bitcoin_adapter_mainnet_blocks//file)",
"TESTNET_HEADERS_DATA_PATH": "$(rootpath @bitcoin_adapter_testnet_headers//file)",
Expand Down
Empty file.
35 changes: 0 additions & 35 deletions third_party/bitcoin-core/BUILD.bitcoin-core.bazel

This file was deleted.

17 changes: 0 additions & 17 deletions third_party/bitcoin-core/bitcoin-core_repository.bzl

This file was deleted.

0 comments on commit cf15f9e

Please sign in to comment.