diff --git a/stakerdb/trackedtranactionstore.go b/stakerdb/trackedtranactionstore.go index f5ddef5..4bbade8 100644 --- a/stakerdb/trackedtranactionstore.go +++ b/stakerdb/trackedtranactionstore.go @@ -280,7 +280,7 @@ func protoBtcConfirmationInfoToBtcConfirmationInfo(ci *proto.BTCConfirmationInfo } func protoUnbondingDataToUnbondingStoreData(ud *proto.UnbondingTxData) (*UnbondingStoreData, error) { - // Unbodning txdata should always contains unbonding tx + // Unboding txdata should always contains unbonding tx var unbondingTx wire.MsgTx err := unbondingTx.Deserialize(bytes.NewReader(ud.UnbondingTransaction)) @@ -457,7 +457,7 @@ func getNumTx(txIdxBucket walletdb.ReadBucket) uint64 { return nextTxKey(txIdxBucket) - 1 } -// getTxByHash retruns transaction and transaction key if transaction with given hash exsits +// getTxByHash returns transaction and transaction key if transaction with given hash exsits func getTxByHash( txHashBytes []byte, txIndexBucket walletdb.ReadBucket, diff --git a/stakerservice/service.go b/stakerservice/service.go index 78973c5..677b5c9 100644 --- a/stakerservice/service.go +++ b/stakerservice/service.go @@ -387,7 +387,7 @@ func (s *StakerService) withdrawableTransactions(_ *rpctypes.Context, offset, li lastIdx := "0" if len(stakingDetails) > 0 { // this should ease up pagination i.e in case when whe have 1000 transactions, and we limit query to 50 - // due to filetring we can retrun response with 50 transactions when last one have index 400, + // due to filtering we can return response with 50 transactions when last one have index 400, // then caller can specify offset=400 and get next withdrawable transactions. lastIdx = stakingDetails[len(stakingDetails)-1].TransactionIdx }