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

Drop support for p2p v3 #1942

Merged
merged 4 commits into from
Feb 6, 2022
Merged

Drop support for p2p v3 #1942

merged 4 commits into from
Feb 6, 2022

Conversation

someone235
Copy link
Collaborator

No description provided.

"github.com/kaspanet/kaspad/app/protocol/flows/v4/blockrelay"
ping2 "github.com/kaspanet/kaspad/app/protocol/flows/v4/ping"
"github.com/kaspanet/kaspad/app/protocol/flows/v4/rejects"
transactionrelay2 "github.com/kaspanet/kaspad/app/protocol/flows/v4/transactionrelay"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This and the ping package no longer need to be aliased

case 4:
flows = v4.Register(m, router, errChan, &isStopping)
default:
panic(errors.Errorf("no way to handle protocol version %d", peer.ProtocolVersion()))
}
flows = append(flows, sendAddressesFlow)

if peer.ProtocolVersion() > 3 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this condition is no longer relevant.

@codecov
Copy link

codecov bot commented Feb 6, 2022

Codecov Report

Merging #1942 (06ac740) into dev (69d90fe) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 06ac740 differs from pull request most recent head 5dadee9. Consider uploading reports for the commit 5dadee9 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1942      +/-   ##
==========================================
- Coverage   61.27%   61.26%   -0.01%     
==========================================
  Files         651      636      -15     
  Lines       31140    29961    -1179     
==========================================
- Hits        19080    18356     -724     
+ Misses       9278     8995     -283     
+ Partials     2782     2610     -172     
Impacted Files Coverage Δ
app/protocol/flows/handshake/receiveversion.go 55.81% <ø> (ø)
...tocol/flows/v4/addressexchange/receiveaddresses.go 69.23% <ø> (ø)
...protocol/flows/v4/addressexchange/sendaddresses.go 57.14% <ø> (ø)
app/protocol/flows/v4/ping/receive.go 68.75% <ø> (ø)
app/protocol/flows/v4/ping/send.go 48.38% <ø> (ø)
app/protocol/flows/v4/rejects/handle_rejects.go 83.33% <ø> (ø)
...v4/transactionrelay/handle_relayed_transactions.go 66.66% <ø> (ø)
.../transactionrelay/handle_requested_transactions.go 85.18% <ø> (ø)
app/protocol/protocol.go 47.10% <ø> (-2.90%) ⬇️
app/protocol/flows/v4/register.go 100.00% <100.00%> (ø)
... and 10 more

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 69d90fe...5dadee9. Read the comment docs.

@someone235 someone235 merged commit 82f0a4d into kaspanet:dev Feb 6, 2022
@someone235 someone235 deleted the drop-p2p-v3 branch February 6, 2022 15:28
someone235 added a commit that referenced this pull request Feb 18, 2022
* Make kaspawallet store the utxos sorted by amount, so that the bigger utxos are spent first - making it less likely a compound will be required

* Start refactor addEntryToUTXOSet

* Add GetUTXOsByBalances command to rpc

* Store list of addresses, updated with the collectAddresses methods
(replacing collectUTXOs methods)

* Fix wrong commands in GetBalanceByAddress

* Rename: refreshExistingUTXOs -> refreshUTXOs

* Display progress of IBD process in Kaspad logs (#1938)

* Report progress percentage when downloading headers in IBD.

* Extract reporting logic to a separate type.

* Report progress for IBD missing block bodies.

* Split ApplyPruningPointProof to multiple small database transactions (#1937)

* Split ApplyPruningPointProof to multiple small database transactions.

* Increase the timeout duration in TestIBDWithPruning.

* Increase the timeout duration in simple-sync.

* Explain that if ApplyPruningPointProof fails, the database must be discarded.

* Increase headers proof timeout and add more progress logs (#1939)

* Increase timeout for pruning proof and add some logs

* Show resolving virtual progress as whole percents

* Add AllowConnectionToDifferentVersions flag to kaspactl (#1940)

* Remove duplicate median time calculation on tx validation (#1943)

Co-authored-by: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com>

* Drop support for p2p v3 (#1942)

* Drop support for p2p v3

* Remove redundant aliases

* Remove redundant condition

* In profile dump file - use a time format supporting all file systems (#1945)

* Use a time format without ":" to support all file systems

* go fmt

* Bump version to v0.11.12 (#1941)

Co-authored-by: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com>

Co-authored-by: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com>
Co-authored-by: Ori Newman <orinewman1@gmail.com>
Co-authored-by: Michael Sutton <mikisiton2@gmail.com>
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.

None yet

2 participants