Skip to content

Commit

Permalink
Have maker check minsize when comparing amounts
Browse files Browse the repository at this point in the history
Previously maker would only check maxsize
  • Loading branch information
chris-belcher committed Feb 3, 2022
1 parent 1c65421 commit 956eb81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maker_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ fn handle_sign_senders_contract_tx(
funding_txids.push(txinfo.senders_contract_tx.input[0].previous_output.txid);
total_amount += txinfo.funding_input_value;
}
if total_amount < wallet.read().unwrap().get_offer_maxsize_cache() {
if total_amount >= MIN_SIZE && total_amount < wallet.read().unwrap().get_offer_maxsize_cache() {
log::info!(
"requested contracts amount={}, for funding txids = {:?}",
Amount::from_sat(total_amount),
Expand Down

0 comments on commit 956eb81

Please sign in to comment.