-
Notifications
You must be signed in to change notification settings - Fork 318
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: duplicate btc header validation to main repo #769
Closed
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d26d517
.
tthebst b880658
.
tthebst babdb2b
.
tthebst 3a7f3f4
Merge remote-tracking branch 'gh/master' into tim/btc-bump
tthebst fe65133
.
tthebst 297bc0e
.
tthebst a940abe
Automatically updated Cargo*.lock
53a7d1c
.
tthebst 5b4894e
.
tthebst 69fe388
Merge remote-tracking branch 'gh/tim/btc-bump' into tim/btc-bump
tthebst 182153f
.
tthebst 230c9cb
.
tthebst 324d593
.
rumenov 9e9ebee
.
rumenov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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,53 @@ | ||
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test", "rust_test_suite") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
DEPENDENCIES = [ | ||
# Keep sorted. | ||
"@crate_index//:bitcoin", | ||
] | ||
|
||
MACRO_DEPENDENCIES = [] | ||
|
||
DEV_DEPENDENCIES = [ | ||
# Keep sorted. | ||
"@crate_index//:csv", | ||
"@crate_index//:hex", | ||
"@crate_index//:proptest", | ||
] | ||
|
||
MACRO_DEV_DEPENDENCIES = [] | ||
|
||
ALIASES = {} | ||
|
||
rust_library( | ||
name = "validation", | ||
srcs = glob(["src/**"]), | ||
aliases = ALIASES, | ||
crate_name = "ic_btc_validation", | ||
proc_macro_deps = MACRO_DEPENDENCIES, | ||
version = "0.1.0", | ||
deps = DEPENDENCIES, | ||
) | ||
|
||
rust_test( | ||
name = "validation_test", | ||
crate = ":validation", | ||
data = [ | ||
# Keep sorted. | ||
"tests/data/headers.csv", | ||
], | ||
deps = DEPENDENCIES + DEV_DEPENDENCIES, | ||
) | ||
|
||
rust_test_suite( | ||
name = "validation_integration", | ||
srcs = glob(["tests/**/*.rs"]), | ||
aliases = ALIASES, | ||
data = [ | ||
# Keep sorted. | ||
"tests/data/headers.csv", | ||
], | ||
proc_macro_deps = MACRO_DEPENDENCIES + MACRO_DEV_DEPENDENCIES, | ||
deps = [":validation"] + DEPENDENCIES + DEV_DEPENDENCIES, | ||
) |
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,12 @@ | ||
[package] | ||
name = "ic-btc-validation" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
bitcoin = { workspace = true } | ||
|
||
[dev-dependencies] | ||
csv = "1.1" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can you add context about where this crate comes from?
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.
We can't use it because the ic-btc-validation uses types from the old bitcoin crate as part of it's interface.
It is temporary duplication. I need to merge this one and then I will dedup the bitcoin external crate dependency.