(o *legacy.TxOutput)
| 36 | } |
| 37 | |
| 38 | func (b *TemplateBuilder) AddOutput(o *legacy.TxOutput) error { |
| 39 | if o.Amount > math.MaxInt64 { |
| 40 | return errors.WithDetailf(ErrBadAmount, "amount %d exceeds maximum value 2^63", o.Amount) |
| 41 | } |
| 42 | b.outputs = append(b.outputs, o) |
| 43 | return nil |
| 44 | } |
| 45 | |
| 46 | func (b *TemplateBuilder) RestrictMinTime(t time.Time) { |
| 47 | if t.After(b.minTime) { |