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,
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)
// MethodGroup: Sync

View File

@ -460,11 +460,11 @@ func (c *FullNodeStruct) ClientDataTransferUpdates(ctx context.Context) (<-chan
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)
}
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)
}

View File

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

View File

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

View File

@ -89,4 +89,4 @@ func AddressFor(ctx context.Context, a addrSelectApi, mi api.MinerInfo, use Addr
}
return mi.Owner, nil
}
}

View File

@ -526,4 +526,4 @@ func (s *WindowPoStScheduler) setSender(ctx context.Context, msg *types.Message,
}
msg.From = pa
}
}