-
Notifications
You must be signed in to change notification settings - Fork 706
feat: add macros for contract consensus tests #6562
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: develop
Are you sure you want to change the base?
Changes from all commits
4f8dfff
8bdc1d1
79ae07d
d9eb380
6977d1a
4e37cef
e5e2a24
5c6c36c
a5d8406
423f5a1
bd4722f
286703c
8a6ec15
73a4fb1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ chrono = "0.4.19" | |
tempfile = "3.3" | ||
proptest = { version = "1.6.0", default-features = false, features = ["std"] } | ||
insta = { version = "1.37.0", features = ["ron"] } | ||
pinny = { git = "https://github.com/BitcoinL2-Labs/pinny-rs.git", rev = "54ba9d533a7b84525a5e65a3eae1a3ae76b9ea49" } #v0.0.2 | ||
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. I added pinny to simplify discovery of consesus tests. The main reason was to easiliy identify the ones relying on insta to easily filter them. But after some discussions we realized that this is not currently needed. As all of our consensus tests are currently within the consensus file. I can remove it |
||
|
||
[features] | ||
default = [] | ||
|
@@ -95,3 +96,6 @@ sha2 = { version = "0.10", features = ["asm"] } | |
|
||
[target.'cfg(any(not(any(target_arch = "x86_64", target_arch = "x86", target_arch = "aarch64")), any(target_os="windows")))'.dependencies] | ||
sha2 = { version = "0.10" } | ||
|
||
[package.metadata.pinny] | ||
allowed = ["consensus"] |
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.
the idea of adding this here is that, even if requires manual updating when we add a new epoch, most of the functions in this file will also need to be updated. Expecially the ones above this,
fn latest()
. I believe it will be difficult to miss it!