Skip to content
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

feat: Refactor SignatureMap for Multi-Transaction Support in _signedTransactions #2601

Merged
merged 21 commits into from
Oct 29, 2024

Conversation

ivaylonikolov7
Copy link
Contributor

@ivaylonikolov7 ivaylonikolov7 commented Oct 22, 2024

Description:
This PR refactors the SignatureMap to support multiple transactions per node in _signedTransactions. It replaces NodeAccountIdSignatureMap with a SignaturePairMap mapped by TransactionId, allowing each node to store signatures for multiple transactions. This update resolves the issue where only the first transaction's signatures were accessible, ensuring comprehensive signature retrieval across all transactions including chunked Transactions.

Related issue(s):
#2595

Fixes #
#2595

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@SvetBorislavov SvetBorislavov force-pushed the feat/signing-changes-chunks branch from 92b3bd4 to 0da5a6f Compare October 25, 2024 10:50
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: Ivaylo Nikolov <[email protected]>
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 95.04505% with 11 lines in your changes missing coverage. Please review.

Project coverage is 84.79%. Comparing base (e9bf5c3) to head (9682128).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/transaction/Transaction.js 74.19% 8 Missing ⚠️
src/transaction/SignaturePairMap.js 96.22% 2 Missing ⚠️
src/transaction/NodeAccountIdSignatureMap.js 97.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2601      +/-   ##
==========================================
+ Coverage   84.71%   84.79%   +0.08%     
==========================================
  Files         283      284       +1     
  Lines       71086    71227     +141     
==========================================
+ Hits        60218    60399     +181     
+ Misses      10868    10828      -40     

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

Signed-off-by: Svetoslav Borislavov <[email protected]>
@ivaylonikolov7 ivaylonikolov7 marked this pull request as ready for review October 28, 2024 11:21
@ivaylonikolov7 ivaylonikolov7 requested review from a team as code owners October 28, 2024 11:21
@ivaylonikolov7 ivaylonikolov7 changed the title feat: init commit for signing of tx changes feat: Refactor SignatureMap for Multi-Transaction Support in _signedTransactions Oct 28, 2024
src/PrivateKey.js Show resolved Hide resolved
src/transaction/NodeAccountIdSignatureMap.js Outdated Show resolved Hide resolved
src/transaction/SignatureMap.js Outdated Show resolved Hide resolved
src/transaction/SignatureMap.js Show resolved Hide resolved
src/transaction/SignaturePairMap.js Outdated Show resolved Hide resolved
0xivanov
0xivanov previously approved these changes Oct 29, 2024
Copy link

Copy link
Contributor

@agadzhalov agadzhalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ivaylonikolov7 ivaylonikolov7 merged commit 0d36abe into main Oct 29, 2024
13 checks passed
@ivaylonikolov7 ivaylonikolov7 deleted the feat/signing-changes-chunks branch October 29, 2024 14:00
@ivaylonikolov7 ivaylonikolov7 mentioned this pull request Nov 7, 2024
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.

6 participants