(ctx *cli.Context)
| 96 | ) |
| 97 | |
| 98 | func setThreshold(ctx *cli.Context) error { |
| 99 | rnd, opts, client, err := createContractInstanceAndTransactor(ctx, true) |
| 100 | if err != nil { |
| 101 | return err |
| 102 | } |
| 103 | thresholdStr := utils.GetFirstStringArgument(ctx) |
| 104 | threshold := new(big.Int) |
| 105 | threshold, ok := threshold.SetString(thresholdStr, 10) |
| 106 | if !ok { |
| 107 | log.Info("Failed to parse string to big int", "string", thresholdStr) |
| 108 | return errors.New("Failed to parse string to big int" + " string " + thresholdStr) |
| 109 | } |
| 110 | |
| 111 | tx, err := rnd.SetRnodeThreshold(opts, threshold) |
| 112 | if err != nil { |
| 113 | return err |
| 114 | } |
| 115 | return utils.WaitMined(client, tx) |
| 116 | } |
| 117 | |
| 118 | func setPeriod(ctx *cli.Context) error { |
| 119 | rnd, opts, client, err := createContractInstanceAndTransactor(ctx, true) |
nothing calls this directly
no test coverage detected