From 47f3c447e9ec45417b8031a47fb20c6b906c99e9 Mon Sep 17 00:00:00 2001 From: linghuying <1599935829@qq.com> Date: Sat, 1 Jun 2024 20:09:19 +0800 Subject: [PATCH] chore: fix some comments (#3070) Signed-off-by: linghuying <1599935829@qq.com> --- cmd/devtool/devtool.go | 2 +- pm/recipient.go | 2 +- pm/sender.go | 2 +- pm/stub.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/devtool/devtool.go b/cmd/devtool/devtool.go index e106e30444..ffd696427e 100644 --- a/cmd/devtool/devtool.go +++ b/cmd/devtool/devtool.go @@ -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: diff --git a/pm/recipient.go b/pm/recipient.go index 1c2333a5bb..4c20281756 100644 --- a/pm/recipient.go +++ b/pm/recipient.go @@ -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 diff --git a/pm/sender.go b/pm/sender.go index db178bfc5b..6f6acf0fd4 100644 --- a/pm/sender.go +++ b/pm/sender.go @@ -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{}) { diff --git a/pm/stub.go b/pm/stub.go index 856bb9416f..a3e0f7f224 100644 --- a/pm/stub.go +++ b/pm/stub.go @@ -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)