Box big Transaction type in psbt error
This commit is contained in:
parent
9b2098517e
commit
781b0e014a
|
@ -55,9 +55,9 @@ pub enum Error {
|
||||||
/// transaction.
|
/// transaction.
|
||||||
UnexpectedUnsignedTx {
|
UnexpectedUnsignedTx {
|
||||||
/// Expected
|
/// Expected
|
||||||
expected: Transaction,
|
expected: Box<Transaction>,
|
||||||
/// Actual
|
/// Actual
|
||||||
actual: Transaction,
|
actual: Box<Transaction>,
|
||||||
},
|
},
|
||||||
/// Unable to parse as a standard SigHash type.
|
/// Unable to parse as a standard SigHash type.
|
||||||
NonStandardSigHashType(u32),
|
NonStandardSigHashType(u32),
|
||||||
|
|
|
@ -169,8 +169,8 @@ impl Map for Global {
|
||||||
fn merge(&mut self, other: Self) -> Result<(), psbt::Error> {
|
fn merge(&mut self, other: Self) -> Result<(), psbt::Error> {
|
||||||
if self.unsigned_tx != other.unsigned_tx {
|
if self.unsigned_tx != other.unsigned_tx {
|
||||||
return Err(psbt::Error::UnexpectedUnsignedTx {
|
return Err(psbt::Error::UnexpectedUnsignedTx {
|
||||||
expected: self.unsigned_tx.clone(),
|
expected: Box::new(self.unsigned_tx.clone()),
|
||||||
actual: other.unsigned_tx,
|
actual: Box::new(other.unsigned_tx),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue