Skip to content

fix: remove intermediate .to_vec() in flashblock tx hash collection#749

Merged
refcell merged 1 commit intobase:mainfrom
letmehateu:remove-alloc
Feb 18, 2026
Merged

fix: remove intermediate .to_vec() in flashblock tx hash collection#749
refcell merged 1 commit intobase:mainfrom
letmehateu:remove-alloc

Conversation

@letmehateu
Copy link
Copy Markdown
Contributor

Spotted a redundant .to_vec() while reading through build_next_flashblock — we slice into executed_transactions, clone everything into a new Vec, then immediately iterate to pull out tx hashes. Just using .iter() directly on the slice does the same thing without the extra allocation.

@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented Feb 18, 2026

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@refcell refcell added this pull request to the merge queue Feb 18, 2026
Merged via the queue into base:main with commit b8044bf Feb 18, 2026
15 of 16 checks passed
@letmehateu letmehateu deleted the remove-alloc branch February 18, 2026 20:58
danyalprout pushed a commit that referenced this pull request Mar 5, 2026
* chore(cgt): remove current spec

* feat(cgt): related specs

Signed-off-by: Hex <165055168+hexshire@users.noreply.github.com>
Co-authored-by: AgusDuha <81362284+agusduha@users.noreply.github.com>
Co-authored-by: Joxes <91908708+Joxess@users.noreply.github.com>

* fix: run linter

* chore: add deauthorize function

* chore: address review comments

* chore: cgt review comments 2

Signed-off-by: Hex <165055168+hexshire@users.noreply.github.com>
Co-authored-by: Joxes <91908708+Joxess@users.noreply.github.com>

* chore(cgt): run checks and linters

* chore: add deauthorize details

* chore: add missing words

* fix: update with the latest features

* fix: comments

* fix: comments

* chore: run linters

* fix: cgt flag (#74)

* feat: remove fund func (#75)

* feat: liquidity event (#76)

* feat: remove fund func

* fix: liquidity events

* fix: donate eth (#73)

* fix: donate eth

* fix: comments

* fix: donate eth

* chore: run linter

* chore: fix ci warning

* chore: fix words file

---------

Signed-off-by: Hex <165055168+hexshire@users.noreply.github.com>
Signed-off-by: Ashitaka <96790496+ashitakah@users.noreply.github.com>
Co-authored-by: AgusDuha <81362284+agusduha@users.noreply.github.com>
Co-authored-by: Joxes <91908708+Joxess@users.noreply.github.com>
Co-authored-by: Ashitaka <ashitaka@defi.sucks>
Co-authored-by: Ashitaka <96790496+ashitakah@users.noreply.github.com>
haardikk21 pushed a commit that referenced this pull request Mar 17, 2026
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.

3 participants