()
| 364 | } |
| 365 | |
| 366 | func (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 | |
| 397 | func (e *ethAdaptor) SignalBootstrap(cid *big.Int) (err error) { |
| 398 | if !e.isConnecting() { |
nothing calls this directly
no test coverage detected