diff --git a/action/claimreward.go b/action/claimreward.go index 75dcb26733..c2f70a7256 100644 --- a/action/claimreward.go +++ b/action/claimreward.go @@ -113,7 +113,7 @@ func NewClaimFromRewardingFund(amount *big.Int, // note that this amount won't be charged/deducted from sender func (c *ClaimFromRewardingFund) ClaimAmount() *big.Int { return c.amount } -// Address returns the the account to claim +// Address returns the account to claim // if it's nil, the default is the action sender func (c *ClaimFromRewardingFund) Address() address.Address { return c.address } diff --git a/action/protocol/execution/evm/evmstatedbadapter.go b/action/protocol/execution/evm/evmstatedbadapter.go index fc711b841e..f9a8b360b2 100644 --- a/action/protocol/execution/evm/evmstatedbadapter.go +++ b/action/protocol/execution/evm/evmstatedbadapter.go @@ -621,7 +621,7 @@ func (stateDB *StateDBAdapter) AddSlotToAccessList(addr common.Address, slot com stateDB.accessList.AddSlot(addr, slot) } -// Empty returns true if the the contract is empty +// Empty returns true if the contract is empty func (stateDB *StateDBAdapter) Empty(evmAddr common.Address) bool { log.T(stateDB.ctx).Debug("Check whether the contract is empty.") s, err := stateDB.accountState(evmAddr) diff --git a/action/protocol/rewarding/reward.go b/action/protocol/rewarding/reward.go index 8ded019e7d..710cc00815 100644 --- a/action/protocol/rewarding/reward.go +++ b/action/protocol/rewarding/reward.go @@ -38,7 +38,7 @@ func (b rewardHistory) Serialize() ([]byte, error) { // Deserialize deserializes bytes into reward history state func (b *rewardHistory) Deserialize(data []byte) error { return nil } -// rewardHistory stores the unclaimed balance of an account +// rewardAccount stores the unclaimed balance of an account type rewardAccount struct { balance *big.Int } diff --git a/blockchain/genesis/genesis.go b/blockchain/genesis/genesis.go index b02b1730a1..8d6da4453a 100644 --- a/blockchain/genesis/genesis.go +++ b/blockchain/genesis/genesis.go @@ -334,7 +334,7 @@ type ( // 3. fix gas and nonce update // 4. fix unproductive delegates in staking protocol OkhotskBlockHeight uint64 `yaml:"okhotskHeight"` - // PalauBlockHeight is the the start height to + // PalauBlockHeight is the start height to // 1. enable rewarding action via web3 // 2. broadcast node info into the p2p network PalauBlockHeight uint64 `yaml:"palauHeight"` diff --git a/blockchain/integrity/integrity_test.go b/blockchain/integrity/integrity_test.go index 7dea34c2c7..06fb9323b7 100644 --- a/blockchain/integrity/integrity_test.go +++ b/blockchain/integrity/integrity_test.go @@ -2449,7 +2449,7 @@ func TestHistoryForContract(t *testing.T) { require.True(ok) require.Equal(expect, balance) - // check the the original balance again + // check the original balance again _, err = sf.WorkingSetAtHeight(ctx, bc.TipHeight()-1) require.NoError(err) } diff --git a/consensus/scheme/rolldpos/rolldpos.go b/consensus/scheme/rolldpos/rolldpos.go index e7ed836c04..db7e9c5bfc 100644 --- a/consensus/scheme/rolldpos/rolldpos.go +++ b/consensus/scheme/rolldpos/rolldpos.go @@ -228,7 +228,7 @@ func (r *RollDPoS) CurrentState() fsm.State { } // Activate activates or pauses the roll-DPoS consensus. When it is deactivated, the node will finish the current -// consensus round if it is doing the work and then return the the initial state +// consensus round if it is doing the work and then return the initial state func (r *RollDPoS) Activate(active bool) { r.ctx.Activate(active) // reactivate cfsm if the node is reactivated diff --git a/e2etest/local_transfer_test.go b/e2etest/local_transfer_test.go index dc6293e8a3..c1e3fa69d0 100644 --- a/e2etest/local_transfer_test.go +++ b/e2etest/local_transfer_test.go @@ -69,7 +69,7 @@ type AccountState int const ( //This account should be created on blockchain in run time with the given balance AcntCreate AccountState = iota - //This account already exist, need to load the the key, address, balance to this test case + //This account already exist, need to load the key, address, balance to this test case AcntExist //This account doesnt exist on blockchain, but have a valid key and address AcntNotRegistered @@ -526,7 +526,7 @@ func TestLocalTransfer(t *testing.T) { // initStateKeyAddr, if the given private key is nil, // creates key, address, and init the new account with given balance -// otherwise, calculate the the address, and load test with existing +// otherwise, calculate the address, and load test with existing // balance state. func initStateKeyAddr( accountState AccountState, diff --git a/ioctl/doc/doc.go b/ioctl/doc/doc.go index c38e44f909..48d2ad006f 100644 --- a/ioctl/doc/doc.go +++ b/ioctl/doc/doc.go @@ -13,7 +13,7 @@ import ( "github.com/spf13/cobra" ) -// GenMarkdownTreeCustom is the the same as GenMarkdownTree, but +// GenMarkdownTreeCustom is the same as GenMarkdownTree, but // with custom filePrepender and linkHandler. func GenMarkdownTreeCustom(c *cobra.Command, dir string, name string, path string, filePrepender func(string) string, linkHandler func(*cobra.Command, string) string) (err error) {