Skip to content
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
2 changes: 1 addition & 1 deletion internal/graphql/resolvers/contract_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func contractSyncInput(con *types.Contract) ContractValidationInput {
return cInput
}

// constructMutation creates the GraphQL mutation query string
// constructMutationPayload creates the GraphQL mutation query string
// for the contract provided.
func constructMutationPayload(con *types.Contract) (bytes.Buffer, error) {
// prepare the payload
Expand Down
2 changes: 1 addition & 1 deletion internal/repository/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (p *proxy) pullBlocks(num *uint64, count int32, toPull int32, current *type
list.IsStart, list.IsEnd = checkBlocksListBoundary(count, next, list)
}

// checkListBoundary verifies if the list of blocks is on one of the edges.
// checkBlocksListBoundary verifies if the list of blocks is on one of the edges.
func checkBlocksListBoundary(count int32, next *types.Block, list *types.BlockList) (bool, bool) {
return list.IsStart || (count < 0 && next == nil), list.IsEnd || (count > 0 && next == nil)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/repository/db/reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (db *MongoDbBridge) AddRewardClaim(rc *types.RewardClaim) error {
return nil
}

// isDelegationKnown checks if the given delegation exists in the database.
// isRewardClaimKnown checks if the given RewardClaim exists in the database.
func (db *MongoDbBridge) isRewardClaimKnown(col *mongo.Collection, rc *types.RewardClaim) bool {
// try to find the delegation in the database
sr := col.FindOne(context.Background(), bson.D{
Expand Down