Skip to content

Commit f99f3ed

Browse files
authored
rpc/gasprice: remove unused Oracle state fields (#18352)
1 parent e9b4969 commit f99f3ed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

rpc/gasprice/gasprice.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ type Cache interface {
5757
// blocks. Suitable for both light and full clients.
5858
type Oracle struct {
5959
backend OracleBackend
60-
lastHead common.Hash
61-
lastPrice *big.Int
6260
maxPrice *big.Int
6361
ignorePrice *big.Int
6462
cache Cache
@@ -102,7 +100,6 @@ func NewOracle(backend OracleBackend, params gaspricecfg.Config, cache Cache, lo
102100

103101
return &Oracle{
104102
backend: backend,
105-
lastPrice: params.Default,
106103
maxPrice: maxPrice,
107104
ignorePrice: ignorePrice,
108105
checkBlocks: blocks,

0 commit comments

Comments
 (0)