MCPcopy Create free account
hub / github.com/chain/Core / AddOutput

Method AddOutput

core/txbuilder/builder.go:38–44  ·  view source on GitHub ↗
(o *legacy.TxOutput)

Source from the content-addressed store, hash-verified

36}
37
38func (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
46func (b *TemplateBuilder) RestrictMinTime(t time.Time) {
47 if t.After(b.minTime) {

Callers 6

BuildMethod · 0.80
BuildMethod · 0.80
BuildMethod · 0.80
BuildMethod · 0.80
BuildMethod · 0.80
BuildMethod · 0.80

Calls

no outgoing calls

Tested by 1

BuildMethod · 0.64