-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve consumed input #1415
Improve consumed input #1415
Conversation
eba1827
to
9e700e6
Compare
end | ||
end | ||
|
||
defp optimize_inputs_to_consume(inputs, _, _) when length(inputs) == 1, do: inputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: you may pattern match [input]
lib/archethic/transaction_chain/transaction/validation_stamp/ledger_operations.ex
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
63047ad
into
archethic-foundation:enhance_utxo_with_consumed_inputs
Description
Update unspent output to match consumed inputs during AEIP 21 phase 1 (do not recreate an utxo if it is the same a an previous one)
Optimize consumed inputs to not consume an UTXO that would be consolidated alone
Type of change
How Has This Been Tested?
Unit test
Checklist: