Skip to content

Commit

Permalink
Merge pull request #6318 from hardlydearly/master
Browse files Browse the repository at this point in the history
chore: remove repetitive words
  • Loading branch information
simlecode authored Apr 22, 2024
2 parents 946f1a9 + a6df2af commit e3e7fc3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const (
// Network populates config with network-specific parameters for a known network (e.g. testnet2)
Network = "network"

// IsRelay when set causes the the daemon to provide libp2p relay
// IsRelay when set causes the daemon to provide libp2p relay
// services allowing other filecoin nodes behind NATs to talk directly.
IsRelay = "is-relay"

Expand Down
2 changes: 1 addition & 1 deletion pkg/beacon/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type RandomBeacon interface {

// ValidateBlockValues Verify that the beacon in the block header is correct, first get beacon server at block epoch and parent block epoch in schedule.
// if paraent beacon is the same beacon server. value beacon normally but if not equal, means that the pre entry in another beacon chain, so just validate
// beacon value in current block header. the first values is parent beacon the the second value is current beacon.
// beacon value in current block header. the first values is parent beacon the second value is current beacon.
func ValidateBlockValues(bSchedule Schedule, nv network.Version, h *types.BlockHeader, parentEpoch abi.ChainEpoch, prevEntry *types.BeaconEntry) error {
parentBeacon := bSchedule.BeaconForEpoch(parentEpoch)
currBeacon := bSchedule.BeaconForEpoch(h.Height)
Expand Down
2 changes: 1 addition & 1 deletion pkg/events/state/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func (sp *StatePredicates) OnMinerPreCommitChange() DiffMinerActorStateFunc {
// DiffPaymentChannelStateFunc is function that compares two states for the payment channel
type DiffPaymentChannelStateFunc func(ctx context.Context, oldState paych.State, newState paych.State) (changed bool, user UserData, err error)

// OnPaymentChannelActorChanged calls diffPaymentChannelState when the state changes for the the payment channel actor
// OnPaymentChannelActorChanged calls diffPaymentChannelState when the state changes for the payment channel actor
func (sp *StatePredicates) OnPaymentChannelActorChanged(paychAddr address.Address, diffPaymentChannelState DiffPaymentChannelStateFunc) DiffTipSetKeyFunc {
return sp.OnActorStateChanged(paychAddr, func(ctx context.Context, oldActorState, newActorState *types.Actor) (changed bool, user UserData, err error) {
oldState, err := paych.Load(adt.WrapStore(ctx, sp.cst), oldActorState)
Expand Down
2 changes: 1 addition & 1 deletion pkg/messagepool/selection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ func TestOptimalMessageSelection2(t *testing.T) {
func TestOptimalMessageSelection3(t *testing.T) {
tf.UnitTest(t)

// this test uses 10 actors sending a block of messages to each other, with the the first
// this test uses 10 actors sending a block of messages to each other, with the first
// actors paying higher gas premium than the subsequent actors.
// We select with a low ticket quality; the chain depenent merging algorithm should pick
// messages from the median actor from the start
Expand Down
2 changes: 1 addition & 1 deletion pkg/vm/vmcontext/vmcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func (vm *LegacyVM) shouldBurn(ctx context.Context, msg *types.Message, errcode
// transfer debits money From one account and credits it To another.
// avoid calling this Method with a zero amount else it will perform unnecessary actor loading.
//
// WARNING: this Method will panic if the the amount is negative, accounts dont exist, or have inssuficient funds.
// WARNING: this Method will panic if the amount is negative, accounts dont exist, or have inssuficient funds.
//
// Note: this is not idiomatic, it follows the Spec expectations for this Method.
func (vm *LegacyVM) transfer(from address.Address, to address.Address, amount abi.TokenAmount, networkVersion network.Version) {
Expand Down
2 changes: 1 addition & 1 deletion tools/conformance/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ type ExecuteTipsetResult struct {
// parentEpoch is the last epoch in which an actual tipset was processed. This
// is used by Lotus for null block counting and cron firing.
//
// This method returns the the receipts root, the poststate root, and the LegacyVM
// This method returns the receipts root, the poststate root, and the LegacyVM
// message results. The latter _include_ implicit messages, such as cron ticks
// and reward withdrawal per miner.
func (d *Driver) ExecuteTipset(bs blockstoreutil.Blockstore, chainDs ds.Batching, preroot cid.Cid, parentEpoch abi.ChainEpoch, tipset *schema.Tipset, execEpoch abi.ChainEpoch) (*ExecuteTipsetResult, error) {
Expand Down

0 comments on commit e3e7fc3

Please sign in to comment.