Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix code comments errors #113

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions stakerdb/trackedtranactionstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion stakerservice/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down