Skip to content

Commit

Permalink
empty pool helper
Browse files Browse the repository at this point in the history
  • Loading branch information
devbugging committed May 22, 2024
1 parent 4831fbe commit 13a5a9b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions api/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,23 @@ func NewTxPoolAPI() *TxPool {
}

type content struct {
Pending []any
Queued []any
Pending any
Queued any
}

func emptyPool() content {
return content{
Pending: struct{}{},
Queued: struct{}{},
}
}

func (s *TxPool) Content() content {
return content{}
return emptyPool()
}

func (s *TxPool) ContentFrom(addr common.Address) content {
return content{}
return emptyPool()
}

func (s *TxPool) Status() map[string]hexutil.Uint {
Expand All @@ -32,5 +39,5 @@ func (s *TxPool) Status() map[string]hexutil.Uint {
}

func (s *TxPool) Inspect() content {
return content{}
return emptyPool()
}

0 comments on commit 13a5a9b

Please sign in to comment.