getNodeWeight get nodeweight by id
(nodeId uint64)
| 919 | |
| 920 | //getNodeWeight get nodeweight by id |
| 921 | func (this *BlockSyncMgr) getNodeWeight(nodeId uint64) *NodeWeight { |
| 922 | this.lock.RLock() |
| 923 | defer this.lock.RUnlock() |
| 924 | return this.nodeWeights[nodeId] |
| 925 | } |
| 926 | |
| 927 | //getAllNodeWeights get all nodeweight and return a slice |
| 928 | func (this *BlockSyncMgr) getAllNodeWeights() NodeWeights { |
no outgoing calls
no test coverage detected