Skip to content

Commit 0a09a39

Browse files
authored
eth/filters: replace wiki links with new doc pages (#22070)
1 parent 2f81006 commit 0a09a39

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

eth/filters/api.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (api *PublicFilterAPI) timeoutLoop() {
101101
// It is part of the filter package because this filter can be used through the
102102
// `eth_getFilterChanges` polling method that is also used for log filters.
103103
//
104-
// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newpendingtransactionfilter
104+
// https://eth.wiki/json-rpc/API#eth_newpendingtransactionfilter
105105
func (api *PublicFilterAPI) NewPendingTransactionFilter() rpc.ID {
106106
var (
107107
pendingTxs = make(chan []common.Hash)
@@ -171,7 +171,7 @@ func (api *PublicFilterAPI) NewPendingTransactions(ctx context.Context) (*rpc.Su
171171
// NewBlockFilter creates a filter that fetches blocks that are imported into the chain.
172172
// It is part of the filter package since polling goes with eth_getFilterChanges.
173173
//
174-
// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newblockfilter
174+
// https://eth.wiki/json-rpc/API#eth_newblockfilter
175175
func (api *PublicFilterAPI) NewBlockFilter() rpc.ID {
176176
var (
177177
headers = make(chan *types.Header)
@@ -287,7 +287,7 @@ type FilterCriteria ethereum.FilterQuery
287287
//
288288
// In case "fromBlock" > "toBlock" an error is returned.
289289
//
290-
// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newfilter
290+
// https://eth.wiki/json-rpc/API#eth_newfilter
291291
func (api *PublicFilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, error) {
292292
logs := make(chan []*types.Log)
293293
logsSub, err := api.events.SubscribeLogs(ethereum.FilterQuery(crit), logs)
@@ -322,7 +322,7 @@ func (api *PublicFilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, error) {
322322

323323
// GetLogs returns logs matching the given argument that are stored within the state.
324324
//
325-
// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getlogs
325+
// https://eth.wiki/json-rpc/API#eth_getlogs
326326
func (api *PublicFilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([]*types.Log, error) {
327327
var filter *Filter
328328
if crit.BlockHash != nil {
@@ -351,7 +351,7 @@ func (api *PublicFilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([
351351

352352
// UninstallFilter removes the filter with the given filter id.
353353
//
354-
// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_uninstallfilter
354+
// https://eth.wiki/json-rpc/API#eth_uninstallfilter
355355
func (api *PublicFilterAPI) UninstallFilter(id rpc.ID) bool {
356356
api.filtersMu.Lock()
357357
f, found := api.filters[id]
@@ -369,7 +369,7 @@ func (api *PublicFilterAPI) UninstallFilter(id rpc.ID) bool {
369369
// GetFilterLogs returns the logs for the filter with the given id.
370370
// If the filter could not be found an empty array of logs is returned.
371371
//
372-
// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterlogs
372+
// https://eth.wiki/json-rpc/API#eth_getfilterlogs
373373
func (api *PublicFilterAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]*types.Log, error) {
374374
api.filtersMu.Lock()
375375
f, found := api.filters[id]
@@ -410,7 +410,7 @@ func (api *PublicFilterAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]*ty
410410
// For pending transaction and block filters the result is []common.Hash.
411411
// (pending)Log filters return []Log.
412412
//
413-
// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterchanges
413+
// https://eth.wiki/json-rpc/API#eth_getfilterchanges
414414
func (api *PublicFilterAPI) GetFilterChanges(id rpc.ID) (interface{}, error) {
415415
api.filtersMu.Lock()
416416
defer api.filtersMu.Unlock()

0 commit comments

Comments
 (0)