You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See payjoin#480
`InternalInputContributionError` has only one error variant as a result
of this, which means it's a smell to clean up in payjoin#403
One thing I note is that the BIP says "Our recommendation for
<code>maxadditionalfeecontribution=</code> is <code>originalPSBTFeeRate
* 110</code>." and our actual use is `let recommended_additional_fee =
min_fee_rate * input_weight;` where input_weight is 110 only where mixed
inputs appear. I did not remove the `expected_input_weight` function for
a blanket 110 recommendation, which I believe is in line with actual
incentives to use a matching input. but I could go either way.
@@ -188,16 +185,13 @@ impl fmt::Display for InternalProposalError {
188
185
VersionsDontMatch{ proposed, original,} => write!(f,"proposed transaction version {} doesn't match the original {}", proposed, original),
189
186
LockTimesDontMatch{ proposed, original,} => write!(f,"proposed transaction lock time {} doesn't match the original {}", proposed, original),
190
187
SenderTxinSequenceChanged{ proposed, original,} => write!(f,"proposed transaction sequence number {} doesn't match the original {}", proposed, original),
191
-
SenderTxinContainsNonWitnessUtxo => write!(f,"an input in proposed transaction belonging to the sender contains non-witness UTXO information"),
192
-
SenderTxinContainsWitnessUtxo => write!(f,"an input in proposed transaction belonging to the sender contains witness UTXO information"),
193
188
SenderTxinContainsFinalScriptSig => write!(f,"an input in proposed transaction belonging to the sender contains finalized non-witness signature"),
194
189
SenderTxinContainsFinalScriptWitness => write!(f,"an input in proposed transaction belonging to the sender contains finalized witness signature"),
ContainsPartialSigs => write!(f,"an input in proposed transaction belonging to the sender contains partial signatures"),
197
192
ReceiverTxinNotFinalized => write!(f,"an input in proposed transaction belonging to the receiver is not finalized"),
198
193
ReceiverTxinMissingUtxoInfo => write!(f,"an input in proposed transaction belonging to the receiver is missing UTXO information"),
199
194
MixedSequence => write!(f,"inputs of proposed transaction contain mixed sequence numbers"),
200
-
MixedInputTypes{ proposed, original,} => write!(f,"proposed transaction contains input of type {:?} while original contains inputs of type {:?}", proposed, original),
201
195
MissingOrShuffledInputs => write!(f,"proposed transaction is missing inputs of the sender or they are shuffled"),
0 commit comments