Skip to content

dbft: use designated type instead of []Transaction[H] - #166

Merged
roman-khimov merged 1 commit into
masterfrom
shareable-txs
Oct 2, 2026
Merged

roman-khimov merged 1 commit into
masterfrom
shareable-txs

Conversation

@AnnaShaleva

Copy link
Copy Markdown
Member

Allows to drop useless slice allocation code at the caller's side.

@AnnaShaleva AnnaShaleva added this to the v0.5.0 milestone Oct 1, 2026
@AnnaShaleva

Copy link
Copy Markdown
Member Author

@roman-khimov should work, but need to check that on NeoGo. Depends on nspcc-dev/neo-go#4387.

@AnnaShaleva AnnaShaleva added the blocked Can't be done because of something label Oct 1, 2026
Allows to drop useless slice allocation code at the caller's side.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@codecov

codecov Bot commented Oct 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 67.46988% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.11%. Comparing base (fe0ab6a) to head (506e19b).

Files with missing lines Patch % Lines
config.go 73.91% 12 Missing ⚠️
internal/consensus/consensus.go 0.00% 3 Missing ⚠️
internal/consensus/recovery_message.go 40.00% 3 Missing ⚠️
internal/simulation/main.go 0.00% 3 Missing ⚠️
internal/consensus/constructors.go 0.00% 2 Missing ⚠️
internal/consensus/amev_block.go 0.00% 1 Missing ⚠️
internal/consensus/consensus_message.go 50.00% 1 Missing ⚠️
internal/consensus/prepare_request.go 0.00% 1 Missing ⚠️
send.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #166      +/-   ##
==========================================
+ Coverage   61.75%   62.11%   +0.35%     
==========================================
  Files          32       32              
  Lines        1569     1560       -9     
==========================================
  Hits          969      969              
+ Misses        599      590       -9     
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

AnnaShaleva added a commit to bane-labs/go-ethereum that referenced this pull request Oct 2, 2026
Fetch nspcc-dev/dbft#166. Save some
allocations, use types.Transaction directly instead of
dbft.Transaction wrapper.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@AnnaShaleva

Copy link
Copy Markdown
Member Author

@roman-khimov tested with bane-labs/go-ethereum#665, works as expected.

@roman-khimov roman-khimov removed the blocked Can't be done because of something label Oct 2, 2026
@roman-khimov
roman-khimov merged commit bd2ace2 into master Oct 2, 2026
12 checks passed
@roman-khimov
roman-khimov deleted the shareable-txs branch October 2, 2026 12:04
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