MCPcopy Create free account
hub / github.com/DOSNetwork/core / isConnecting

Method isConnecting

onchain/eth_proxy.go:104–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102}
103
104func (e *ethAdaptor) isConnecting() (result bool) {
105 if e.ctx == nil {
106 return
107 }
108 select {
109 case <-e.ctx.Done():
110 return
111 default:
112 }
113 for _, ctx := range e.ctxes {
114 select {
115 case <-ctx.Done():
116 default:
117 result = true
118 return
119 }
120 }
121 return
122}
123
124func (e *ethAdaptor) Connect(urls []string, t time.Time) (err error) {
125 if e.isConnecting() {

Callers 15

getMethod · 0.95
GroupToPickMethod · 0.95
GroupSizeMethod · 0.95
GetWorkingGroupSizeMethod · 0.95
LastUpdatedBlockMethod · 0.95
NumPendingGroupsMethod · 0.95
NumPendingNodesMethod · 0.95
BootstrapEndBlkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected