github-vet / github-vet/rangeloop-pointer-findings

ssldltd/bgmchain: bgm/filters/api.go; 3 LoC

Open
#7,873 0 comments 0 reactions 0 assignees View on GitHub
fresh tiny
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
PR metrics pending

Description

Found a possible issue in [ssldltd/bgmchain](https://www.github.com/ssldltd/bgmchain) at [bgm/filters/api.go](https://github.com/ssldltd/bgmchain/blob/5349295a9b2c9ec7c34a064621fa55b940b3d3b1/bgm/filters/api.go#L281-L283)

Below is the message reported by the analyzer for this snippet of code. Beware that the analyzer only reports the first
issue it finds, so please do not limit your consideration to the contents of the below message.

> function call which takes a reference to bgmlogs at line 282 may start a goroutine

[Click here to see the code in its original context.](https://github.com/ssldltd/bgmchain/blob/5349295a9b2c9ec7c34a064621fa55b940b3d3b1/bgm/filters/api.go#L281-L283)

Click here to show the 3 line(s) of Go which triggered the analyzer.

```go
for _, bgmlogs := range bgmlogss {
notifier.Notify(rpcSubPtr.ID, &bgmlogs)
}

```

Click here to show extra information the analyzer produced.

```
The following paths through the callgraph could lead to a goroutine:
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (lookup, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (ping, 2) -> (timedEvent, 3)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (synchronise, 1) -> (SyncCht, 1) -> (synchronise, 4) -> (syncWithPeer, 3) -> (spawnSync, 1) -> (importBlockResults, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (Any, 0)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (commitTransactions, 4)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (syncLoop, 0) -> (checkSyncedHeaders, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (add, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Call, 5) -> (UseGas, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (synchronise, 1) -> (Td, 0) -> (GetHeaderByNumber, 3) -> (syncWithPeer, 3) -> (spawnSync, 1) -> (importBlockResults, 1) -> (FastSyncCommitHead, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (handleMessage, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (handle, 3) -> (activate, 2)
(Notify, 2) -> (Close, 0) -> (close, 1) -> (SendItems, 3) -> (Send, 3) -> (WriteMessage, 1) -> (Copy, 2) -> (Encrypt, 2) -> (Call, 5) -> (UseGas, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 6) -> (NewMeter, 0) -> (runStateSync, 1) -> (Items, 0) -> (startProtocols, 2) -> (Run, 2) -> (Check, 2)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (Resolve, 1) -> (lookup, 2) -> (reqQueryFindNodes, 3)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (synchronise, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (fetchBodies, 1) -> (fetchParts, 16)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 6) -> (NewMeter, 0) -> (runStateSync, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (refresh, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Start, 0) -> (run, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (mine, 2) -> (Seal, 3) -> (NextSlot, 1) -> (apply, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 6) -> (NewMeter, 0) -> (runStateSync, 1) -> (Items, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Open, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (Handshake, 4)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Handshake, 5) -> (NewServerNode, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Call, 5) -> (UseGas, 1) -> (undo, 1)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (choose, 0) -> (setWeiUnitght, 2) -> (insert, 2)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (handleMessage, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (Call, 5) -> (UseGas, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (syncLoop, 0) -> (checkSyncedHeaders, 1) -> (newHeaders, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (announce, 2) -> (checkUpdateStats, 2)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (mine, 2) -> (Seal, 3)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (startRPC, 1) -> (startWS, 5)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (startRPC, 1) -> (startWS, 5) -> (NewWSServer, 2) -> (WebsocketHandler, 1)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (choose, 0) -> (setWeiUnitght, 2) -> (insert, 2) -> (importedHook, 1) -> (VerifySeal, 2) -> (verifySeal, 3) -> (updateConfirmedBlockHeader, 1) -> (storeConfirmedBlockHeader, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Start, 0)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (ServeCodec, 2) -> (serveRequest, 3)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (Handshake, 5) -> (NewServerNode, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (startListening, 0)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (choose, 0) -> (setWeiUnitght, 2) -> (insert, 2) -> (importedHook, 1) -> (VerifyHeaders, 3)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (choose, 0) -> (setWeiUnitght, 2) -> (insert, 2) -> (importedHook, 1) -> (VerifySeal, 2) -> (verifySeal, 3)
(Notify, 2) -> (Close, 0) -> (close, 1) -> (SendItems, 3) -> (Send, 3) -> (WriteMessage, 1) -> (Copy, 2) -> (Encrypt, 2) -> (Call, 5) -> (UseGas, 1) -> (undo, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Start, 0) -> (run, 1) -> (runPeer, 1) -> (newPeerHook, 1) -> (capsByNameAndVersion, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (announce, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (sign, 1) -> (add, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (ServeCodec, 2) -> (serveRequest, 3)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (nextRequest, 0) -> (RequestHeadersByHash, 6)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (syncLoop, 0) -> (checkSyncedHeaders, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (assignTasks, 0) -> (FetchNodeData, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (promoteExecutables, 1) -> (Pop, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (synchronise, 1) -> (Td, 0) -> (GetHeaderByNumber, 3) -> (syncWithPeer, 3) -> (spawnSync, 1) -> (importBlockResults, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (startRPC, 1) -> (startWS, 5) -> (Addr, 0) -> (Nodes, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 6)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (Dial, 1) -> (SetupConn, 3) -> (doProtoHandshake, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (add, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (scanAccounts, 0) -> (deleteByFile, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (assignTasks, 0) -> (FetchNodeData, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (nextRequest, 0)
(Notify, 2) -> (Close, 0) -> (close, 1) -> (SendItems, 3) -> (Send, 3) -> (WriteMessage, 1) -> (Copy, 2) -> (Encrypt, 2) -> (doCall, 4)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (lookup, 2) -> (reqQueryFindNodes, 3)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (announce, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 6) -> (NewMeter, 0) -> (runStateSync, 1) -> (Items, 0) -> (startProtocols, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (fetchBodies, 1) -> (fetchParts, 16)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (run, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (setRetryDial, 1)
(Notify, 2) -> (Close, 0) -> (Unsubscribe, 0) -> (delete, 2) -> (setWeiUnitght, 2) -> (insert, 2) -> (importedHook, 1) -> (Lasthash, 0) -> (reorg, 2)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (startRPC, 1) -> (startWS, 5) -> (NewWSServer, 2)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (subscribe, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (startListening, 0) -> (Map, 6)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (Call, 5) -> (UseGas, 1) -> (undo, 1)
(Notify, 2) -> (Close, 0) -> (Unsubscribe, 0) -> (delete, 2) -> (setWeiUnitght, 2) -> (insert, 2) -> (importedHook, 1) -> (Lasthash, 0) -> (cache, 1) -> (generate, 3) -> (generateDataset, 3)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (Resolve, 1) -> (lookup, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (promoteExecutables, 1) -> (Pop, 0)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (choose, 0) -> (setWeiUnitght, 2) -> (insert, 2) -> (importedHook, 1) -> (WriteBlockAndState, 3) -> (Write, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (synchronise, 1) -> (Td, 0) -> (GetHeaderByNumber, 3) -> (syncWithPeer, 3) -> (spawnSync, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (synchronise, 1) -> (SyncCht, 1) -> (synchronise, 4) -> (syncWithPeer, 3) -> (spawnSync, 1) -> (importBlockResults, 1) -> (FastSyncCommitHead, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (mine, 2) -> (Seal, 3) -> (NextSlot, 1) -> (apply, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (nextRequest, 0)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (synchronise, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (syncLoop, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (addTxsLocked, 2) -> (promoteExecutables, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (reset, 2) -> (promoteExecutables, 1) -> (Cap, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (Open, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (handle, 3) -> (IsNil, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (addTxsLocked, 2) -> (promoteExecutables, 1) -> (Cap, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Subscribe, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (startListening, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (syncLoop, 0)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (commitTransactions, 4)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (run, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (doCall, 4)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (doCall, 4)
(Notify, 2) -> (Close, 0) -> (Unsubscribe, 0) -> (delete, 2) -> (setWeiUnitght, 2) -> (insert, 2) -> (importedHook, 1) -> (Lasthash, 0) -> (cache, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (Any, 0) -> (cap, 1)
(Notify, 2) -> (Close, 0) -> (Unsubscribe, 0) -> (delete, 2) -> (setWeiUnitght, 2) -> (insert, 2) -> (importedHook, 1) -> (Lasthash, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (subscribe, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Handshake, 4)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (nextRequest, 0) -> (RequestHeadersByHash, 6)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (announce, 2) -> (checkUpdateStats, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Start, 0) -> (run, 1) -> (runPeer, 1) -> (newPeerHook, 1)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (SetupConn, 3) -> (doProtoHandshake, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (startRPC, 1) -> (startWS, 5)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (ping, 2) -> (timedEvent, 3)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (mine, 2) -> (Seal, 3)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (Start, 0) -> (run, 1) -> (runPeer, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (startRPC, 1) -> (startWS, 5) -> (Addr, 0)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (lookup, 2) -> (reqQueryFindNodes, 3) -> (distcmp, 3) -> (add, 1) -> (ping, 2) -> (timedEvent, 3)
(Notify, 2) -> (Close, 0) -> (Do, 1) -> (Lookup, 1) -> (Dial, 1)
(Notify, 2) -> (Close, 0) -> (Unsubscribe, 0) -> (delete, 2) -> (setWeiUnitght, 2) -> (insert, 2)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (setRetryDial, 1)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (eventLoop, 0) -> (saveNodes, 0)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (syncLoop, 0) -> (checkSyncedHeaders, 1) -> (newHeaders, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (refresh, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (startListening, 0) -> (Map, 6)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (handleMessage, 1) -> (deliver, 2)
(Notify, 2) -> (Write, 1) -> (writeSegment, 3) -> (run, 5) -> (New, 1) -> (WSEndpoint, 0) -> (TempDir, 0) -> (update, 0) -> (findOrNewNode, 3) -> (setLatest, 1)
(Notify, 2) -> (Close, 0) -> (close, 0) -> (close, 1) -> (SetThreads, 1) -> (New, 2) -> (resolveHash, 2) -> (mustDecodeNode, 3) -> (synchronise, 1) -> (SyncCht, 1) -> (synchronise, 4) -> (syncWithPeer, 3) -> (spawnSync, 1)

```

Leave a reaction on this issue to contribute to the project by classifying this instance as a **Bug** :-1:, **Mitigated** :+1:, or **Desirable Behavior** :rocket:
See the descriptions of the classifications [here](https://github.com/github-vet/rangeclosure-findings#how-can-i-help) for more information.

commit ID: 5349295a9b2c9ec7c34a064621fa55b940b3d3b1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.