()
| 333 | } |
| 334 | |
| 335 | func (e *ethAdaptor) SignalGroupFormation() (err error) { |
| 336 | if !e.isConnecting() { |
| 337 | err = errors.New("not connecting to geth") |
| 338 | return |
| 339 | } |
| 340 | |
| 341 | // define how to parse parameters and execute proxy function |
| 342 | opCtx, opCancel := context.WithTimeout(e.ctx, e.setTimeout) |
| 343 | defer opCancel() |
| 344 | proxies := e.proxies |
| 345 | |
| 346 | f := func(ctx context.Context) (tx *types.Transaction, err error) { |
| 347 | idx := getIndex(ctx) |
| 348 | if idx == -1 { |
| 349 | err = errors.New("no client index in context") |
| 350 | } else { |
| 351 | tx, err = proxies[idx].SignalGroupFormation() |
| 352 | if err != nil { |
| 353 | err = &OnchainError{err: errors.Errorf(": %w", err), Idx: idx} |
| 354 | } else { |
| 355 | e.logger.Info(fmt.Sprintf("SignalGroupFormation %x", tx.Hash())) |
| 356 | } |
| 357 | } |
| 358 | if err != nil { |
| 359 | e.logger.Error(err) |
| 360 | } |
| 361 | return |
| 362 | } |
| 363 | return e.waitForReply(&request{opCtx: opCtx, f: f, reply: make(chan *response)}) |
| 364 | } |
| 365 | |
| 366 | func (e *ethAdaptor) SignalGroupDissolve() (err error) { |
| 367 | if !e.isConnecting() { |
nothing calls this directly
no test coverage detected