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

Mana vector fixes #2396

Merged
merged 25 commits into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
75d88ce
Use mana delay param only from mana plugin
daria305 Aug 22, 2022
ac3d5c1
Update unit tests
daria305 Aug 22, 2022
40b1323
Prune activity on epoch confirmed
daria305 Aug 22, 2022
355017a
Add missing expected calls
daria305 Aug 24, 2022
aed4483
Merge branch 'develop' into feat/mana-vector-update-fixes
daria305 Aug 24, 2022
0e856c3
Update mana vector update event after merging
daria305 Aug 24, 2022
34941a3
Tiny renames and comment
karimodm Aug 25, 2022
5cedc23
Update DiffUTXO test
daria305 Aug 25, 2022
69a3b21
Merge remote-tracking branch 'origin/feat/mana-vector-update-fixes' i…
daria305 Aug 25, 2022
6840417
Make SetEpochs private
daria305 Aug 25, 2022
7f4eadd
Change NodesActivityLog to shrinking map. Serializing not works
daria305 Aug 25, 2022
ab6022c
Fix stackoverflow
daria305 Aug 29, 2022
ae4c11a
Fix serialization
daria305 Aug 29, 2022
8397d22
Unexport field
daria305 Aug 29, 2022
08aa2da
Fix comment and forEach
daria305 Aug 29, 2022
8528b52
Fix channel close race condition
karimodm Aug 29, 2022
c3d429b
Return lowest processed epoch
karimodm Aug 29, 2022
363182b
deadlock fix
karimodm Aug 29, 2022
84d6156
Warpsync more channel fixes
karimodm Aug 30, 2022
62a49a0
Fix snapshot mutable constructor
daria305 Aug 30, 2022
b9d87ff
Use mutable model for Activity log to hide setEpochs
daria305 Aug 30, 2022
d48b9f2
Fix: epochstorage deadlock
karimodm Aug 30, 2022
68246d7
Warpsync: properly check for overlapping ranges
karimodm Aug 30, 2022
e577168
Make Inbound peer resource allocation synchronous
karimodm Aug 30, 2022
e92df0d
Merge remote-tracking branch 'origin/fix/warpsync-bugs' into feat/man…
daria305 Aug 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make Inbound peer resource allocation synchronous
  • Loading branch information
karimodm committed Aug 30, 2022
commit e577168e5584d591fa5ba6ee6d3c4a9618d4d4e2
2 changes: 1 addition & 1 deletion packages/node/p2p/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (m *Manager) acceptPeer(ctx context.Context, p *peer.Peer, opts []ConnectPe
return nil, ErrNoP2P
}

handleInboundStream := func(ctx context.Context, protocolID protocol.ID, registeredProtocols ...protocol.ID) (*PacketsStream, error) {
handleInboundStream := func(ctx context.Context, protocolID protocol.ID) (*PacketsStream, error) {
if buildConnectPeerConfig(opts).useDefaultTimeout {
var cancel context.CancelFunc
ctx, cancel = context.WithTimeout(ctx, defaultConnectionTimeout)
Expand Down
3 changes: 2 additions & 1 deletion plugins/autopeering/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ func configureGossipIntegration() {
Plugin.Logger().Debugw("error dropping neighbor", "id", ev.DroppedID, "err", err)
}
}))
deps.Selection.Events().IncomingPeering.Attach(event.NewClosure(func(ev *selection.PeeringEvent) {
// We need to allocate synchronously the resources to accomodate incoming stream requests.
deps.Selection.Events().IncomingPeering.Hook(event.NewClosure(func(ev *selection.PeeringEvent) {
if !ev.Status {
return // ignore rejected peering
}
Expand Down