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

Method SignalGroupDissolve

onchain/eth_set.go:366–395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364}
365
366func (e *ethAdaptor) SignalGroupDissolve() (err error) {
367 if !e.isConnecting() {
368 err = errors.New("not connecting to geth")
369 return
370 }
371
372 // define how to parse parameters and execute proxy function
373 opCtx, opCancel := context.WithTimeout(e.ctx, e.setTimeout)
374 defer opCancel()
375 proxies := e.proxies
376
377 f := func(ctx context.Context) (tx *types.Transaction, err error) {
378 idx := getIndex(ctx)
379 if idx == -1 {
380 err = errors.New("no client index in context")
381 } else {
382 tx, err = proxies[idx].SignalGroupDissolve()
383 if err != nil {
384 err = &OnchainError{err: errors.Errorf(": %w", err), Idx: idx}
385 } else {
386 e.logger.Info(fmt.Sprintf("SignalGroupDissolve %x", tx.Hash()))
387 }
388 }
389 if err != nil {
390 e.logger.Error(err)
391 }
392 return
393 }
394 return e.waitForReply(&request{opCtx: opCtx, f: f, reply: make(chan *response)})
395}
396
397func (e *ethAdaptor) SignalBootstrap(cid *big.Int) (err error) {
398 if !e.isConnecting() {

Callers

nothing calls this directly

Calls 8

isConnectingMethod · 0.95
waitForReplyMethod · 0.95
getIndexFunction · 0.85
NewMethod · 0.65
SignalGroupDissolveMethod · 0.65
InfoMethod · 0.65
ErrorMethod · 0.65
HashMethod · 0.45

Tested by

no test coverage detected