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

Fix missing TX registration #3080

Merged
merged 2 commits into from
Oct 16, 2021

Conversation

tsachiherman
Copy link
Contributor

@tsachiherman tsachiherman commented Oct 16, 2021

Summary

When a 2.1 (i.e. no txsync) client connects to a 3.0 relay (i.e. txsync), the relay needs to request the client to keep sending it a TX messages - otherwise, these transactions would not get propagated.

The 2.1 and 3.0 above are network protocol versions, not a algod release version.

Test Plan

e2e test added.

@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2021

Codecov Report

Merging #3080 (2b97654) into master (ffb49ef) will decrease coverage by 0.00%.
The diff coverage is 18.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3080      +/-   ##
==========================================
- Coverage   43.67%   43.67%   -0.01%     
==========================================
  Files         391      391              
  Lines       86845    86855      +10     
==========================================
- Hits        37931    37930       -1     
- Misses      42884    42895      +11     
  Partials     6030     6030              
Impacted Files Coverage Δ
data/txHandler.go 9.30% <0.00%> (-0.09%) ⬇️
network/wsNetwork.go 62.76% <22.22%> (-0.38%) ⬇️
ledger/blockqueue.go 81.03% <0.00%> (-2.88%) ⬇️
cmd/tealdbg/debugger.go 72.86% <0.00%> (-1.01%) ⬇️
data/abi/abi_type.go 90.90% <0.00%> (-0.91%) ⬇️
ledger/acctupdates.go 64.75% <0.00%> (+0.49%) ⬆️
catchup/peerSelector.go 100.00% <0.00%> (+1.04%) ⬆️

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 ffb49ef...2b97654. 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.

Good catch. I think I see how my prior mixed-network test was incomplete.

@tsachiherman tsachiherman merged commit b9c6032 into algorand:master Oct 16, 2021
@tsachiherman tsachiherman deleted the tsachi/fixtxhandler branch October 16, 2021 23:07
algojack pushed a commit that referenced this pull request Oct 18, 2021
## Summary

When a 2.1 (i.e. no txsync) client connects to a 3.0 relay (i.e. txsync), the relay needs to request the client to keep sending it a TX messages - otherwise, these transactions would not get propagated.

The 2.1 and 3.0 above are network protocol versions, not a algod release version.

## Test Plan

e2e test added.
tsachiherman added a commit to tsachiherman/go-algorand that referenced this pull request Nov 2, 2021
@egieseke egieseke mentioned this pull request Nov 23, 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