Skip to content

Commit

Permalink
light: fix receiver name from Python style to Go (ethereum#26631)
Browse files Browse the repository at this point in the history
Co-authored-by: Halil Yildirim <halilgolang@gmail.com>
  • Loading branch information
2 people authored and shekhirin committed Jun 6, 2023
1 parent 82b66b1 commit 15d3042
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions light/txpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ type testTxRelay struct {
send, discard, mined chan int
}

func (self *testTxRelay) Send(txs types.Transactions) {
self.send <- len(txs)
func (r *testTxRelay) Send(txs types.Transactions) {
r.send <- len(txs)
}

func (self *testTxRelay) NewHead(head common.Hash, mined []common.Hash, rollback []common.Hash) {
func (r *testTxRelay) NewHead(head common.Hash, mined []common.Hash, rollback []common.Hash) {
m := len(mined)
if m != 0 {
self.mined <- m
r.mined <- m
}
}

func (self *testTxRelay) Discard(hashes []common.Hash) {
self.discard <- len(hashes)
func (r *testTxRelay) Discard(hashes []common.Hash) {
r.discard <- len(hashes)
}

const poolTestTxs = 1000
Expand Down

0 comments on commit 15d3042

Please sign in to comment.