Skip to content

Commit

Permalink
liquid: fix the max number of inputs to 256, not 255
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffiths committed Nov 27, 2024
1 parent cc806aa commit 2e53b69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transaction_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ namespace green {
if (add_to_tx_inputs) {
auto& transaction_inputs = result["transaction_inputs"];
transaction_inputs.push_back(utxo);
if (transaction_inputs.size() > 255u && session.get_network_parameters().is_liquid()) {
// Liquid is limited to 255 inputs
if (transaction_inputs.size() > 256u && session.get_network_parameters().is_liquid()) {
// Liquid is limited to 256 inputs
throw user_error("Transaction requires or contains too many inputs for Liquid");
}
}
Expand Down

0 comments on commit 2e53b69

Please sign in to comment.