Skip to content

network/p2p/gossip: refactor Set.Add to accept multiple elements #12436

network/p2p/gossip: refactor Set.Add to accept multiple elements

network/p2p/gossip: refactor Set.Add to accept multiple elements #12436

Re-run triggered May 6, 2024 14:57
Status Success
Total duration 3m 39s
Artifacts

codeql-analysis.yml

on: pull_request
Matrix: Analyze
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Analyze (go)
cannot use (*GossipEthTxPool)(nil) (value of type *GossipEthTxPool) as gossip.Set[*GossipEthTx] value in variable declaration: *GossipEthTxPool does not implement gossip.Set[*GossipEthTx] (wrong type for method Add)
Analyze (go)
cannot use (*Mempool)(nil) (value of type *Mempool) as gossip.Set[*GossipAtomicTx] value in variable declaration: *Mempool does not implement gossip.Set[*GossipAtomicTx] (wrong type for method Add)
Analyze (go)
cannot use ethTxPool (variable of type *GossipEthTxPool) as gossip.Set[*GossipEthTx] value in argument to gossip.NewPushGossiper[*GossipEthTx]: *GossipEthTxPool does not implement gossip.Set[*GossipEthTx] (wrong type for method Add)
Analyze (go)
cannot use vm.mempool (variable of type *Mempool) as gossip.Set[*GossipAtomicTx] value in argument to gossip.NewPushGossiper[*GossipAtomicTx]: *Mempool does not implement gossip.Set[*GossipAtomicTx] (wrong type for method Add)
Analyze (go)
cannot use ethTxPool (variable of type *GossipEthTxPool) as gossip.Set[*GossipEthTx] value in argument to newTxGossipHandler[*GossipEthTx]: *GossipEthTxPool does not implement gossip.Set[*GossipEthTx] (wrong type for method Add)
Analyze (go)
cannot use vm.mempool (variable of type *Mempool) as gossip.Set[*GossipAtomicTx] value in argument to newTxGossipHandler[*GossipAtomicTx]: *Mempool does not implement gossip.Set[*GossipAtomicTx] (wrong type for method Add)
Analyze (go)
cannot use ethTxPool (variable of type *GossipEthTxPool) as gossip.Set[*GossipEthTx] value in argument to gossip.NewPullGossiper[*GossipEthTx]: *GossipEthTxPool does not implement gossip.Set[*GossipEthTx] (wrong type for method Add)
Analyze (go)
cannot use vm.mempool (variable of type *Mempool) as gossip.Set[*GossipAtomicTx] value in argument to gossip.NewPullGossiper[*GossipAtomicTx]: *Mempool does not implement gossip.Set[*GossipAtomicTx] (wrong type for method Add)