gofmt, api docstring

This commit is contained in:
Łukasz Magiera 2020-08-20 01:26:13 +02:00
parent b42625d824
commit a4807b18bc
6 changed files with 21 additions and 21 deletions

View File

@ -132,7 +132,7 @@ type FullNode interface {
GasEstimateGasPremium(_ context.Context, nblocksincl uint64, GasEstimateGasPremium(_ context.Context, nblocksincl uint64,
sender address.Address, gaslimit int64, tsk types.TipSetKey) (types.BigInt, error) sender address.Address, gaslimit int64, tsk types.TipSetKey) (types.BigInt, error)
// GasEstimateMessageGas estimates gas values unset message gas fields // GasEstimateMessageGas estimates gas values for unset message gas fields
GasEstimateMessageGas(context.Context, *types.Message, *MessageSendSpec, types.TipSetKey) (*types.Message, error) GasEstimateMessageGas(context.Context, *types.Message, *MessageSendSpec, types.TipSetKey) (*types.Message, error)
// MethodGroup: Sync // MethodGroup: Sync

View File

@ -460,11 +460,11 @@ func (c *FullNodeStruct) ClientDataTransferUpdates(ctx context.Context) (<-chan
return c.Internal.ClientDataTransferUpdates(ctx) return c.Internal.ClientDataTransferUpdates(ctx)
} }
func (c *FullNodeStruct) GasEstimateGasPremium(ctx context.Context, nblocksincl uint64, sender address.Address, gaslimit int64, tsk types.TipSetKey) (types.BigInt, error) { func (c *FullNodeStruct) GasEstimateGasPremium(ctx context.Context, nblocksincl uint64, sender address.Address, gaslimit int64, tsk types.TipSetKey) (types.BigInt, error) {
return c.Internal.GasEstimateGasPremium(ctx, nblocksincl, sender, gaslimit, tsk) return c.Internal.GasEstimateGasPremium(ctx, nblocksincl, sender, gaslimit, tsk)
} }
func (c *FullNodeStruct) GasEstimateFeeCap(ctx context.Context, msg *types.Message, maxqueueblks int64, tsk types.TipSetKey) (types.BigInt, error) { func (c *FullNodeStruct) GasEstimateFeeCap(ctx context.Context, msg *types.Message, maxqueueblks int64, tsk types.TipSetKey) (types.BigInt, error) {
return c.Internal.GasEstimateFeeCap(ctx, msg, maxqueueblks, tsk) return c.Internal.GasEstimateFeeCap(ctx, msg, maxqueueblks, tsk)
} }

View File

@ -49,9 +49,9 @@ type PubsubScore struct {
} }
type MinerInfo struct { type MinerInfo struct {
Owner address.Address // Must be an ID-address. Owner address.Address // Must be an ID-address.
Worker address.Address // Must be an ID-address. Worker address.Address // Must be an ID-address.
NewWorker address.Address // Must be an ID-address. NewWorker address.Address // Must be an ID-address.
ControlAddresses []address.Address // Must be an ID-addresses. ControlAddresses []address.Address // Must be an ID-addresses.
WorkerChangeEpoch abi.ChainEpoch WorkerChangeEpoch abi.ChainEpoch
PeerId *peer.ID PeerId *peer.ID

View File

@ -250,8 +250,8 @@ var actorWithdrawCmd = &cli.Command{
} }
var actorControl = &cli.Command{ var actorControl = &cli.Command{
Name: "control", Name: "control",
Usage: "Manage control addresses", Usage: "Manage control addresses",
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
actorControlList, actorControlList,
actorControlSet, actorControlSet,
@ -259,14 +259,14 @@ var actorControl = &cli.Command{
} }
var actorControlList = &cli.Command{ var actorControlList = &cli.Command{
Name: "list", Name: "list",
Usage: "Get currently set control addresses", Usage: "Get currently set control addresses",
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.BoolFlag{ &cli.BoolFlag{
Name: "verbose", Name: "verbose",
}, },
&cli.BoolFlag{ &cli.BoolFlag{
Name: "color", Name: "color",
Value: true, Value: true,
}, },
}, },
@ -347,10 +347,10 @@ var actorControlList = &cli.Command{
} }
tw.Write(map[string]interface{}{ tw.Write(map[string]interface{}{
"name": name, "name": name,
"ID": a, "ID": a,
"key": kstr, "key": kstr,
"use": strings.Join(uses, " "), "use": strings.Join(uses, " "),
"balance": bstr, "balance": bstr,
}) })
} }
@ -371,7 +371,7 @@ var actorControlSet = &cli.Command{
ArgsUsage: "[...address]", ArgsUsage: "[...address]",
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.BoolFlag{ &cli.BoolFlag{
Name: "really-do-it", Name: "really-do-it",
Usage: "Actually send transaction performing the action", Usage: "Actually send transaction performing the action",
Value: false, Value: false,
}, },
@ -461,11 +461,11 @@ var actorControlSet = &cli.Command{
} }
smsg, err := api.MpoolPushMessage(ctx, &types.Message{ smsg, err := api.MpoolPushMessage(ctx, &types.Message{
From: mi.Owner, From: mi.Owner,
To: maddr, To: maddr,
Method: builtin.MethodsMiner.ChangeWorkerAddress, Method: builtin.MethodsMiner.ChangeWorkerAddress,
Value: big.Zero(), Value: big.Zero(),
Params: sp, Params: sp,
}, nil) }, nil)
if err != nil { if err != nil {