Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func (node *Node) RunRPCAndWait(ctx context.Context, rootCmdDaemon *cmds.Command

terminate := make(chan error, 1)

// todo: design an genterfull
// todo: design a graceful
memguard.CatchSignal(func(signal os.Signal) {
log.Infof("received signal(%s), venus will shutdown...", signal.String())
log.Infof("shutting down server...")
Expand Down
4 changes: 2 additions & 2 deletions app/submodule/mpool/mpool_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func (a *MessagePoolAPI) MpoolPushMessage(ctx context.Context, msg *types.Messag
})
}

// MpoolBatchPush batch pushes a unsigned message to mempool.
// MpoolBatchPush batch pushes an unsigned message to mempool.
func (a *MessagePoolAPI) MpoolBatchPush(ctx context.Context, smsgs []*types.SignedMessage) ([]cid.Cid, error) {
var messageCids []cid.Cid
for _, smsg := range smsgs {
Expand Down Expand Up @@ -292,7 +292,7 @@ func (a *MessagePoolAPI) MpoolBatchPushUntrusted(ctx context.Context, smsgs []*t
return messageCids, nil
}

// MpoolBatchPushMessage batch pushes a unsigned message to mempool.
// MpoolBatchPushMessage batch pushes an unsigned message to mempool.
func (a *MessagePoolAPI) MpoolBatchPushMessage(ctx context.Context, msgs []*types.Message, spec *types.MessageSendSpec) ([]*types.SignedMessage, error) {
var smsgs []*types.SignedMessage
for _, msg := range msgs {
Expand Down
2 changes: 1 addition & 1 deletion cmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func importChain(ctx context.Context, r repo.Repo, network string, fname string)
}

bs := r.Datastore()
// setup a ipldCbor on top of the local store
// setup an ipldCbor on top of the local store
chainStore := chain.NewStore(r.ChainDatastore(), bs, cid.Undef, chainselector.Weight)

bufr := bufio.NewReaderSize(rd, 1<<20)
Expand Down
2 changes: 1 addition & 1 deletion pkg/chain/randomness.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c *ChainRandomnessSource) GetBeaconRandomnessTipset(ctx context.Context, r
// If `head` is empty (as when processing the pre-genesis state or the genesis block), the seed derived from
// a fixed genesis ticket.
// Note that this may produce the same value for different, neighbouring epochs when the epoch references a round
// in which no blocks were produced (an empty tipset or "null block"). A caller desiring a unique see for each epoch
// in which no blocks were produced (an empty tipset or "null block"). A caller desiring a unique seed for each epoch
// should blend in some distinguishing value (such as the epoch itself) into a hash of this ticket.
func (c *ChainRandomnessSource) getChainRandomness(ctx context.Context, epoch abi.ChainEpoch, lookback bool) (types.Ticket, error) {
if !c.head.IsEmpty() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/ffiwrapper/impl/partialfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const veryLargeRle = 1 << 20
// in a sector are unsealed, and which are not (holes)

// unsealed sector files internally have this structure
// [unpadded (raw) data][rle+][4B LE length fo the rle+ field]
// [unpadded (raw) data][rle+][4B LE length of the rle+ field]

type partialFile struct {
maxPiece abi.PaddedPieceSize
Expand Down
2 changes: 1 addition & 1 deletion venus-shared/types/wallet/sign_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func GetSignBytesAndObj(toSign []byte, meta types.MsgMeta) (interface{}, []byte,
func CborDecodeInto(r []byte, v interface{}) error {
unmarshaler, isOk := v.(cbor.Unmarshaler)
if !isOk {
return fmt.Errorf("not an 'unmarhsaler'")
return fmt.Errorf("not an 'unmarshaler'")
}
if err := unmarshaler.UnmarshalCBOR(bytes.NewReader(r)); err != nil {
return fmt.Errorf("cbor unmarshal:%w", err)
Expand Down
Loading