Skip to content

Commit

Permalink
chore: fix some comments (#3070)
Browse files Browse the repository at this point in the history
Signed-off-by: linghuying <1599935829@qq.com>
  • Loading branch information
linghuying authored Jun 1, 2024
1 parent 29732e7 commit e8f079e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/devtool/devtool.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {
if !goodToGo {
fmt.Println(`
Usage: go run cmd/devtool/devtool.go setup broadcaster|transcoder [nodeIndex]
It will create initilize eth account (on private testnet) to be used for broadcaster or transcoder
It will create initialize eth account (on private testnet) to be used for broadcaster or transcoder
and will create shell script (run_broadcaster_ETHACC.sh or run_transcoder_ETHACC.sh) to run it.
Node index indicates how much to offset node's port. Orchestrator node's index by default is 1.
For example:
Expand Down
2 changes: 1 addition & 1 deletion pm/recipient.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type Recipient interface {
RedeemWinningTicket(ticket *Ticket, sig []byte, seed *big.Int) error

// TicketParams returns the recipient's currently accepted ticket parameters
// for a provided sender ETH adddress
// for a provided sender ETH address
TicketParams(sender ethcommon.Address, price *big.Rat) (*TicketParams, error)

// TxCostMultiplier returns the tx cost multiplier for an address
Expand Down
2 changes: 1 addition & 1 deletion pm/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (s *sender) CreateTicketBatch(sessionID string, size int) (*TicketBatch, er
ticketParams := &session.ticketParams

expirationParams := ticketParams.ExpirationParams
// Ensure backwards compatbility
// Ensure backwards compatibility
// If no expirationParams are included by O
// B sets the values based upon its last seen round
if expirationParams == nil || expirationParams.CreationRound == 0 || expirationParams.CreationRoundBlockHash == (ethcommon.Hash{}) {
Expand Down
2 changes: 1 addition & 1 deletion pm/stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (m *MockRecipient) RedeemWinningTicket(ticket *Ticket, sig []byte, seed *bi
}

// TicketParams returns the recipient's currently accepted ticket parameters
// for a provided sender ETH adddress
// for a provided sender ETH address
func (m *MockRecipient) TicketParams(sender ethcommon.Address, price *big.Rat) (*TicketParams, error) {
args := m.Called(sender, price)

Expand Down

0 comments on commit e8f079e

Please sign in to comment.