Skip to content

Commit

Permalink
Added doc-comments for Endorsement.
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuwei committed Jun 28, 2023
1 parent c6adade commit 67e4438
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/mempool/models/endorsement.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package models

import pg "github.com/go-pg/pg/v10"
import "github.com/go-pg/pg/v10"

// Endorsement -
type Endorsement struct {
//nolint
tableName struct{} `pg:"endorsements"`
tableName struct{} `pg:"endorsements" comment:"endorsement is an operation, which specifies the head of the chain as seen by the endorser of a given slot. The endorser is randomly selected to be included in the block that extends the head of the chain as specified in this operation. A block with more endorsements improves the weight of the chain and increases the likelihood of that chain being the canonical one."`
MempoolOperation
Level uint64 `json:"level"`
Baker string `json:"-" index:"transaction_baker_idx"`
Level uint64 `json:"level" comment:"The height of the block from the genesis block, in which the operation was included."`
Baker string `json:"-" index:"transaction_baker_idx" comment:"Address of the baker who sent the operation."` // DISCUSS
}

// EndorsementsWithoutBaker -
Expand Down

0 comments on commit 67e4438

Please sign in to comment.