Skip to content

Conversation

@tsachiherman
Copy link
Contributor

Summary

This PR adds the missing bridge between the txnsync and the classic transaction relaying:
when a transaction message arrive and being added to the transaction pool, we need to attempt to
relay these messages right away using the classic transaction messages. That would allow relays to
be compatible with both 2.1 and 3.0 nodes.

Test Plan

e2e test was added.

@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2021

Codecov Report

Merging #3102 (3fd577f) into master (48d4075) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3102      +/-   ##
==========================================
- Coverage   43.70%   43.69%   -0.01%     
==========================================
  Files         391      391              
  Lines       86830    86834       +4     
==========================================
- Hits        37946    37941       -5     
- Misses      42849    42859      +10     
+ Partials     6035     6034       -1     
Impacted Files Coverage Δ
data/txHandler.go 9.13% <0.00%> (-0.17%) ⬇️
ledger/blockqueue.go 82.18% <0.00%> (-2.88%) ⬇️
agreement/cryptoVerifier.go 75.73% <0.00%> (-2.21%) ⬇️
agreement/proposalManager.go 96.07% <0.00%> (-1.97%) ⬇️
network/wsNetwork.go 64.50% <0.00%> (-0.20%) ⬇️
network/wsPeer.go 72.80% <0.00%> (ø)
ledger/acctupdates.go 64.75% <0.00%> (+0.49%) ⬆️
data/abi/abi_type.go 91.81% <0.00%> (+0.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48d4075...3fd577f. Read the comment docs.

Copy link
Contributor

@brianolson brianolson left a comment

Choose a reason for hiding this comment

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

deceptively simple since all the parts were built

@tsachiherman tsachiherman merged commit e853e2e into algorand:master Oct 20, 2021
@tsachiherman tsachiherman deleted the tsachi/txnsynchops branch October 20, 2021 11:36
onetechnical pushed a commit that referenced this pull request Oct 20, 2021
…tion messages (#3102)

Summary
This PR adds the missing bridge between the txnsync and the classic transaction relaying:
when a transaction message arrive and being added to the transaction pool, we need to attempt to
relay these messages right away using the classic transaction messages. That would allow relays to
be compatible with both 2.1 and 3.0 nodes.

Test Plan
e2e test was added.
tsachiherman added a commit to tsachiherman/go-algorand that referenced this pull request Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants