Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
gruve-p committed Oct 30, 2023
2 parents c37746d + 60318c4 commit d9d1325
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 114 deletions.
2 changes: 1 addition & 1 deletion Cargo-minimal.lock
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ dependencies = [

[[package]]
name = "groestlcoin"
version = "0.31.0-rc2"
version = "0.31.0"
dependencies = [
"base64",
"bech32",
Expand Down
2 changes: 1 addition & 1 deletion Cargo-recent.lock
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ dependencies = [

[[package]]
name = "groestlcoin"
version = "0.31.0-rc2"
version = "0.31.0"
dependencies = [
"base64",
"bech32",
Expand Down
2 changes: 1 addition & 1 deletion contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if cargo --version | grep ${MSRV}; then
cargo update -p schemars --precise 0.8.12
# schemars_derive 0.8.13 uses edition 2021
cargo update -p schemars_derive --precise 0.8.12
# memcrh 2.6.0 uses edition 2021
# memchr 2.6.0 uses edition 2021
cargo update -p memchr --precise 2.5.0
# byteorder 1.5.0 uses edition 2021
cargo update -p byteorder --precise 1.4.3
Expand Down
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cargo-fuzz = true

[dependencies]
honggfuzz = { version = "0.5.55", default-features = false }
groestlcoin = { version = "0.31.0-rc2", features = [ "serde" ] }
groestlcoin = { version = "0.31.0", features = [ "serde" ] }

serde = { version = "1.0.103", features = [ "derive" ] }
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion fuzz/generate-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cargo-fuzz = true
[dependencies]
honggfuzz = { version = "0.5.55", default-features = false }
groestlcoin = { version = "0.31.0-rc2", features = [ "serde" ] }
groestlcoin = { version = "0.31.0", features = [ "serde" ] }
serde = { version = "1.0.103", features = [ "derive" ] }
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion groestlcoin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "groestlcoin"
version = "0.31.0-rc2"
version = "0.31.0"
authors = ["Groestlcoin Developers <[email protected]>"]
license = "CC0-1.0"
repository = "https://github.com/Groestlcoin/rust-groestlcoin/"
Expand Down
54 changes: 0 additions & 54 deletions groestlcoin/src/psbt/macros.rs
Original file line number Diff line number Diff line change
@@ -1,60 +1,6 @@
// SPDX-License-Identifier: CC0-1.0

#[allow(unused_macros)]
macro_rules! hex_psbt {
($s:expr) => {
<$crate::psbt::Psbt>::deserialize(
&<$crate::prelude::Vec<u8> as $crate::hex::FromHex>::from_hex($s).unwrap(),
)
};
}

#[cfg(test)]
macro_rules! psbt_with_values {
($input:expr, $output:expr) => {
Psbt {
unsigned_tx: Transaction {
version: transaction::Version::TWO,
lock_time: absolute::LockTime::ZERO,
input: vec![TxIn {
previous_output: OutPoint {
txid: "f61b1742ca13176464adb3cb66050c00787bb3a4eead37e985f2df1e37718126"
.parse()
.unwrap(),
vout: 0,
},
script_sig: ScriptBuf::new(),
sequence: Sequence::ENABLE_LOCKTIME_NO_RBF,
witness: Witness::default(),
}],
output: vec![TxOut {
value: Amount::from_sat($output),
script_pubkey: ScriptBuf::from_hex(
"a9143545e6e33b832c47050f24d3eeb93c9c03948bc787",
)
.unwrap(),
}],
},
xpub: Default::default(),
version: 0,
proprietary: BTreeMap::new(),
unknown: BTreeMap::new(),

inputs: vec![Input {
witness_utxo: Some(TxOut {
value: Amount::from_sat($input),
script_pubkey: ScriptBuf::from_hex(
"a914339725ba21efd62ac753a9bcd067d6c7a6a39d0587",
)
.unwrap(),
}),
..Default::default()
}],
outputs: vec![],
}
};
}

macro_rules! combine {
($thing:ident, $slf:ident, $other:ident) => {
if let (&None, Some($thing)) = (&$slf.$thing, $other.$thing) {
Expand Down
151 changes: 97 additions & 54 deletions groestlcoin/src/psbt/mod.rs

Large diffs are not rendered by default.

0 comments on commit d9d1325

Please sign in to comment.