Skip to content

Commit

Permalink
Removed unused comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuwei committed Jun 29, 2023
1 parent fb3f7b7 commit 13d888c
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion cmd/mempool/models/activate_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ type ActivateAccount struct {
tableName struct{} `pg:"activate_account" comment:"activation operation - is used to activate accounts that were recommended allocations of tezos tokens for donations to the Tezos Foundation’s fundraiser."`
MempoolOperation
Pkh string `json:"pkh" comment:"Public key hash (Ed25519). Address to activate."`
Secret string `json:"secret" comment:"The secret key associated with the key, if available. /^([a-zA-Z0-9][a-zA-Z0-9])*$/"` // DISCUSS
Secret string `json:"secret" comment:"The secret key associated with the key, if available. /^([a-zA-Z0-9][a-zA-Z0-9])*$/"`
}
2 changes: 1 addition & 1 deletion cmd/mempool/models/ballot.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Ballot struct {
//nolint
tableName struct{} `pg:"ballots" comment:"ballot operation - is used to vote for a proposal in a given voting cycle."`
MempoolOperation
Period int64 `json:"period" comment:"Voting period index, starting from zero, for which the ballot was submitted."` // DISCUSS
Period int64 `json:"period" comment:"Voting period index, starting from zero, for which the ballot was submitted."`
Ballot string `json:"ballot" comment:"Vote, given in the ballot (yay, nay, or pass)."`
}

Expand Down
12 changes: 6 additions & 6 deletions cmd/mempool/models/double_baking.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type DoubleBaking struct {

Bh1Level uint64 `json:"-" pg:"bh1_level" comment:"Height of the first block from the genesis."`
Bh1Proto int64 `json:"-" pg:"bh1_proto" comment:"First block protocol code, representing a number of protocol changes since genesis (mod 256, but -1 for the genesis block)."`
Bh1ValidationPass int64 `json:"-" pg:"bh1_validation_pass" comment:"First block number of endorsements (slots), included into the block."` // DISCUSS
Bh1Priority int64 `json:"-" pg:"bh1_priority" comment:"First block priority [DEPRECATED]."` // DISCUSS
Bh1ProofOfWorkNonce string `json:"-" pg:"bh1_proof_of_work_nonce" comment:"First block proof of work nonce."` // DISCUSS
Bh1ValidationPass int64 `json:"-" pg:"bh1_validation_pass" comment:"First block number of endorsements (slots), included into the block."`
Bh1Priority int64 `json:"-" pg:"bh1_priority" comment:"First block priority [DEPRECATED]."`
Bh1ProofOfWorkNonce string `json:"-" pg:"bh1_proof_of_work_nonce" comment:"First block proof of work nonce."`

Bh2Level uint64 `json:"-" pg:"bh2_level" comment:"Height of the second block from the genesis."`
Bh2Proto int64 `json:"-" pg:"bh2_proto" comment:"Second block protocol code, representing a number of protocol changes since genesis (mod 256, but -1 for the genesis block)."`
Bh2ValidationPass int64 `json:"-" pg:"bh2_validation_pass" comment:"Second block number of endorsements (slots), included into the block."` // DISCUSS
Bh2Priority int64 `json:"-" pg:"bh2_priority" comment:"Second block priority [DEPRECATED]."` // DISCUSS
Bh2ProofOfWorkNonce string `json:"-" pg:"bh2_proof_of_work_nonce" comment:"Second block proof of work nonce."` // DISCUSS
Bh2ValidationPass int64 `json:"-" pg:"bh2_validation_pass" comment:"Second block number of endorsements (slots), included into the block."`
Bh2Priority int64 `json:"-" pg:"bh2_priority" comment:"Second block priority [DEPRECATED]."`
Bh2ProofOfWorkNonce string `json:"-" pg:"bh2_proof_of_work_nonce" comment:"Second block proof of work nonce."`
}

// DoubleBakingInfo -
Expand Down
2 changes: 1 addition & 1 deletion cmd/mempool/models/drain_delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type DelegateDrain struct {
tableName struct{} `pg:"drain_delegate"`

MempoolOperation
ConsensusKey int64 `json:"consensus_key" comment:"Consensus key that was used to sign Drain."` // DISCUSS
ConsensusKey int64 `json:"consensus_key" comment:"Consensus key that was used to sign Drain."`
Delegate string `json:"delegate" comment:"Address of the drained delegate."`
Destination string `json:"destination" comment:"Address of the recipient account."`
}
Expand Down
10 changes: 5 additions & 5 deletions cmd/mempool/models/gas_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ type GasStats struct {
//nolint
tableName struct{} `pg:"gas_stats"`
Network string `pg:",pk" json:"network" comment:"Identifies belonging network."`
Hash string `pg:",pk" json:"hash" comment:"Hash of the operation."` // DISCUSS
TotalGasUsed uint64 `pg:"total_gas_used" json:"total_gas_used" comment:"Total amount of consumed gas."` // DISCUSS
TotalFee uint64 `pg:"total_fee" json:"total_fee" comment:"Total amount of fee."` // DISCUSS
Hash string `pg:",pk" json:"hash" comment:"Hash of the operation."`
TotalGasUsed uint64 `pg:"total_gas_used" json:"total_gas_used" comment:"Total amount of consumed gas."`
TotalFee uint64 `pg:"total_fee" json:"total_fee" comment:"Total amount of fee."`
UpdatedAt int64 `json:"updated_at" comment:"Date of last update in seconds since UNIX epoch."`
LevelInMempool uint64 `json:"level_in_mempool" comment:"Level of the block at which the statistics has been calculated in mempool."` // DISCUSS
LevelInChain uint64 `json:"level_in_chain" comment:"Level of the block at which the statistics has been calculated in chain."` // DISCUSS
LevelInMempool uint64 `json:"level_in_mempool" comment:"Level of the block at which the statistics has been calculated in mempool."`
LevelInChain uint64 `json:"level_in_chain" comment:"Level of the block at which the statistics has been calculated in chain."`
}

// BeforeInsert -
Expand Down
2 changes: 1 addition & 1 deletion cmd/mempool/models/mempool_operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type MempoolOperation struct {
Signature string `json:"signature" comment:"Signature of the operation."`
Protocol string `json:"protocol" comment:"Hash of the protocol, in which the operation was included in mempool."`
Level uint64 `json:"level" comment:"The height of the block from the genesis block, in which the operation was included."`
Errors JSONB `json:"errors,omitempty" pg:"type:jsonb" comment:"Errors with the operation processing if any."` // DISCUSS: List of errors provided by the node, injected the operation to the blockchain. null if there is no errors
Errors JSONB `json:"errors,omitempty" pg:"type:jsonb" comment:"Errors with the operation processing if any."`
ExpirationLevel *uint64 `json:"expiration_level" comment:"Datetime of block expiration in which the operation was included in seconds since UNIX epoch."`
Raw JSONB `json:"raw,omitempty" pg:"type:jsonb" comment:"Raw JSON object of the operation."`
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/mempool/models/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ type Proposal struct {
tableName struct{} `pg:"proposals" comment:"proposal operation - is used by bakers (delegates) to submit and/or upvote proposals to amend the protocol."`
MempoolOperation
Period int64 `json:"period" comment:"Voting period index (starting from zero) for which the proposal was submitted (upvoted)."`
Proposals string `json:"proposal" pg:"proposals" comment:"Information about the submitted (upvoted) proposal."` // DISCUSS
Proposals string `json:"proposal" pg:"proposals" comment:"Information about the submitted (upvoted) proposal."`
}
2 changes: 1 addition & 1 deletion cmd/mempool/models/reveal.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ type Reveal struct {
Counter int64 `json:"counter,string" pg:",pk" comment:"An account nonce which is used to prevent operation replay."`
GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."`
StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."`
PublicKey string `json:"public_key" comment:"Public key of source address."` // DISCUSS
PublicKey string `json:"public_key" comment:"Public key of source address."`
}

0 comments on commit 13d888c

Please sign in to comment.