diff --git a/cmd/main.go b/cmd/main.go index fe14ccd37a..999f4e4347 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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" diff --git a/pkg/beacon/beacon.go b/pkg/beacon/beacon.go index abf27c9f59..e432104b90 100644 --- a/pkg/beacon/beacon.go +++ b/pkg/beacon/beacon.go @@ -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) diff --git a/pkg/events/state/predicates.go b/pkg/events/state/predicates.go index 5585fe7fba..f23c3cd2b8 100644 --- a/pkg/events/state/predicates.go +++ b/pkg/events/state/predicates.go @@ -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) diff --git a/pkg/messagepool/selection_test.go b/pkg/messagepool/selection_test.go index 80bdcb7137..3543669cdb 100644 --- a/pkg/messagepool/selection_test.go +++ b/pkg/messagepool/selection_test.go @@ -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 diff --git a/pkg/vm/vmcontext/vmcontext.go b/pkg/vm/vmcontext/vmcontext.go index fb0215a0bc..142c22674d 100644 --- a/pkg/vm/vmcontext/vmcontext.go +++ b/pkg/vm/vmcontext/vmcontext.go @@ -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) { diff --git a/tools/conformance/driver.go b/tools/conformance/driver.go index a1f6eb2a46..c7f229a297 100644 --- a/tools/conformance/driver.go +++ b/tools/conformance/driver.go @@ -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) {