@@ -101,7 +101,7 @@ func (api *PublicFilterAPI) timeoutLoop() {
101
101
// It is part of the filter package because this filter can be used through the
102
102
// `eth_getFilterChanges` polling method that is also used for log filters.
103
103
//
104
- // https://github.com/ethereum/ wiki/wiki/JSON-RPC #eth_newpendingtransactionfilter
104
+ // https://eth. wiki/json-rpc/API #eth_newpendingtransactionfilter
105
105
func (api * PublicFilterAPI ) NewPendingTransactionFilter () rpc.ID {
106
106
var (
107
107
pendingTxs = make (chan []common.Hash )
@@ -171,7 +171,7 @@ func (api *PublicFilterAPI) NewPendingTransactions(ctx context.Context) (*rpc.Su
171
171
// NewBlockFilter creates a filter that fetches blocks that are imported into the chain.
172
172
// It is part of the filter package since polling goes with eth_getFilterChanges.
173
173
//
174
- // https://github.com/ethereum/ wiki/wiki/JSON-RPC #eth_newblockfilter
174
+ // https://eth. wiki/json-rpc/API #eth_newblockfilter
175
175
func (api * PublicFilterAPI ) NewBlockFilter () rpc.ID {
176
176
var (
177
177
headers = make (chan * types.Header )
@@ -287,7 +287,7 @@ type FilterCriteria ethereum.FilterQuery
287
287
//
288
288
// In case "fromBlock" > "toBlock" an error is returned.
289
289
//
290
- // https://github.com/ethereum/ wiki/wiki/JSON-RPC #eth_newfilter
290
+ // https://eth. wiki/json-rpc/API #eth_newfilter
291
291
func (api * PublicFilterAPI ) NewFilter (crit FilterCriteria ) (rpc.ID , error ) {
292
292
logs := make (chan []* types.Log )
293
293
logsSub , err := api .events .SubscribeLogs (ethereum .FilterQuery (crit ), logs )
@@ -322,7 +322,7 @@ func (api *PublicFilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, error) {
322
322
323
323
// GetLogs returns logs matching the given argument that are stored within the state.
324
324
//
325
- // https://github.com/ethereum/ wiki/wiki/JSON-RPC #eth_getlogs
325
+ // https://eth. wiki/json-rpc/API #eth_getlogs
326
326
func (api * PublicFilterAPI ) GetLogs (ctx context.Context , crit FilterCriteria ) ([]* types.Log , error ) {
327
327
var filter * Filter
328
328
if crit .BlockHash != nil {
@@ -351,7 +351,7 @@ func (api *PublicFilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([
351
351
352
352
// UninstallFilter removes the filter with the given filter id.
353
353
//
354
- // https://github.com/ethereum/ wiki/wiki/JSON-RPC #eth_uninstallfilter
354
+ // https://eth. wiki/json-rpc/API #eth_uninstallfilter
355
355
func (api * PublicFilterAPI ) UninstallFilter (id rpc.ID ) bool {
356
356
api .filtersMu .Lock ()
357
357
f , found := api .filters [id ]
@@ -369,7 +369,7 @@ func (api *PublicFilterAPI) UninstallFilter(id rpc.ID) bool {
369
369
// GetFilterLogs returns the logs for the filter with the given id.
370
370
// If the filter could not be found an empty array of logs is returned.
371
371
//
372
- // https://github.com/ethereum/ wiki/wiki/JSON-RPC #eth_getfilterlogs
372
+ // https://eth. wiki/json-rpc/API #eth_getfilterlogs
373
373
func (api * PublicFilterAPI ) GetFilterLogs (ctx context.Context , id rpc.ID ) ([]* types.Log , error ) {
374
374
api .filtersMu .Lock ()
375
375
f , found := api .filters [id ]
@@ -410,7 +410,7 @@ func (api *PublicFilterAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]*ty
410
410
// For pending transaction and block filters the result is []common.Hash.
411
411
// (pending)Log filters return []Log.
412
412
//
413
- // https://github.com/ethereum/ wiki/wiki/JSON-RPC #eth_getfilterchanges
413
+ // https://eth. wiki/json-rpc/API #eth_getfilterchanges
414
414
func (api * PublicFilterAPI ) GetFilterChanges (id rpc.ID ) (interface {}, error ) {
415
415
api .filtersMu .Lock ()
416
416
defer api .filtersMu .Unlock ()
0 commit comments