Skip to content

decrease numsubentries when order is cancelled - #704

Closed
FredericHeem wants to merge 1 commit into
stellar:masterfrom
FredericHeem:numsubentries
Closed

FredericHeem wants to merge 1 commit into
stellar:masterfrom
FredericHeem:numsubentries

Conversation

@FredericHeem

Copy link
Copy Markdown
Contributor

No description provided.

@MonsieurNicolas

Copy link
Copy Markdown
Contributor

I incorporated this change and more. Thank you!

pull Bot pushed a commit to soitun/stellar-core that referenced this pull request Sep 2, 2026
Resolves stellar#704.

This PR clamps the results of `ApplicableTxSetFrame::getTotalFees` and
`ApplicableTxSetGrame::getTotalInclusionFees` to `INT64_MAX` so that
these functions do not overflow. The only caller of these functions is
`compareTxSets`, and the only caller of that function is
`HerderSCPDriver::combineCandidates`. I think this is why stellar#704 ascribes
the bug to `combineCandidates`, but I'd argue it's lower down in these
fee summing functions.

I've verified that this fixes the PoC in stellar#704. The unit test I added is
much more targeted; it focuses on the underlying functions themselves.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants