Skip to content
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

chore(ci): remove third_party/bitcoin-core #1603

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
mraszyk marked this conversation as resolved.
Show resolved Hide resolved
"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.

Loading