-
Couldn't load subscription status.
- Fork 36
bitcoin: bump 0.28.0 -> 0.29.1 #147
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
Changes from all commits
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 |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ jobs: | |
| - rust: nightly | ||
| env: | ||
| DUMMY: true | ||
| - rust: 1.36.0 | ||
| - rust: 1.41.1 | ||
| env: | ||
| PIN_VERSIONS: true | ||
| steps: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,7 +47,7 @@ use self::map::Map; | |
|
|
||
| /// A Partially Signed Transaction. | ||
| #[derive(Debug, Clone, PartialEq)] | ||
| #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] | ||
| #[cfg_attr(feature = "serde", derive(Serialize, Deserialize), serde(crate = "actual_serde"))] | ||
| pub struct PartiallySignedTransaction { | ||
| /// The key-value pairs for all global data. | ||
| pub global: Global, | ||
|
|
@@ -733,7 +733,7 @@ mod tests { | |
| // Initially secp context and rng global state | ||
| let secp = secp256k1_zkp::Secp256k1::new(); | ||
| #[allow(deprecated)] | ||
| let mut rng = rand::ChaChaRng::seed_from_u64(0); | ||
| let mut rng = rand::rngs::StdRng::seed_from_u64(0); | ||
|
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. according to docs StdRng use ChaCha, I think it's equivalent 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. As long as it's deterministic anything should work here. 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've errors in examples in comparison against test vectors ( I can't keep rand 0.6 because it would break against secp256k1_zkp which is now 0.8 Any suggestion? 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 can look into finding an equivalent here. 0.8 rand should have some equivalent PRNG. 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. There is a deprecation notice on rand 0.6 referring to using the So I added c187bbb and 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'm tempted to add a commit which removes the 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. Maybe that should just be a separate PR.. 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. 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.
FYI this was due to wrongdoing in the "fix warning" commit |
||
|
|
||
| let pset_hex = "70736574ff01020402000000010401010105010201fb04020000000001017a0bb9325c276764451bbc2eb82a4c8c4bb6f4007ba803e5a5ba72d0cd7c09848e1a091622d935953bf06e0b7393239c68c6f810a00fe19d11c6ae343cffd3037077da02535fe4ad0fcd675cd0f62bf73b60a554dc1569b80f1f76a2bbfc9f00d439bf4b160014d2cbec8783bd01c9f178348b08500a830a89a7f9010e20805131ba6b37165c026eed9325ac56059ba872fd569e3ed462734098688b4770010f0400000000000103088c83b50d0000000007fc04707365740220230f4f5d4b7c6fa845806ee4f67713459e1b69e8e60fcee2e4940c7a0d5de1b20104220020e5793ad956ee91ebf3543b37d110701118ed4078ffa0d477eacb8885e486ad8507fc047073657406210212bf0ea45b733dfde8ecb5e896306c4165c666c99fc5d1ab887f71393a975cea07fc047073657408040000000000010308f40100000000000007fc04707365740220230f4f5d4b7c6fa845806ee4f67713459e1b69e8e60fcee2e4940c7a0d5de1b201040000"; | ||
| let mut pset : PartiallySignedTransaction = encode::deserialize(&Vec::<u8>::from_hex(&pset_hex).unwrap()[..]).unwrap(); | ||
|
|
@@ -754,7 +754,7 @@ mod tests { | |
| bitcoin::Denomination::Bitcoin, | ||
| ) | ||
| .unwrap() | ||
| .as_sat(), | ||
| .to_sat(), | ||
| asset: AssetId::from_hex(&v["asset"].as_str().unwrap()).unwrap(), | ||
| }; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.