Skip to content

Commit

Permalink
Update limit for trace filter (#1502)
Browse files Browse the repository at this point in the history
* update limit for trace filter

Signed-off-by: Joan Edwards <joan.edwards@consensys.net>

* Update docs/public-networks/reference/api/index.md

Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>
Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* move text

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* add option

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* add link

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* add link for trace filter

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* Update language

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* add for clarity

Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>
Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>

---------

Signed-off-by: Joan Edwards <joan.edwards@consensys.net>
Signed-off-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com>
Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>
  • Loading branch information
joaniefromtheblock and alexandratran authored Feb 13, 2024
1 parent 4994186 commit a88fa90
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/public-networks/reference/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6960,11 +6960,11 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"trace_callMany","params":[[[{"fr
### `trace_filter`
Returns traces matching the specified filter.
Returns traces matching the specified filter. The maximum number of blocks you can supply to `trace_filter` is 1000 by default. You can adjust this limit using the [`--rpc-max-trace-filter-range`](../cli/options.md#rpc-max-trace-filter-range) option.
:::info
Your node must be an archive node (that is, synchronized without pruning or fast sync) or the requested block must be within the number of [blocks retained](../cli/options.md#pruning-blocks-retained) with [pruning enabled](../cli/options.md#pruning-enabled) (by default, 1024).
Your node must be an archive node (synchronized without pruning or fast sync), or the requested block must be within the number of [blocks retained](../cli/options.md#pruning-blocks-retained) with [pruning enabled](../cli/options.md#pruning-enabled) (by default, 1024).
:::
Expand Down
41 changes: 41 additions & 0 deletions docs/public-networks/reference/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -4008,6 +4008,47 @@ We recommend setting a range limit or leaving this option at its default value.

:::

### `rpc-max-trace-filter-range`

<Tabs>

<TabItem value="Syntax" label="Syntax" default>

```bash
--rpc-max-trace-filter-range=<INTEGER>
```

</TabItem>

<TabItem value="Example" label="Example">

```bash
--rpc-max-trace-filter-range=100
```

</TabItem>

<TabItem value="Environment variable" label="Environment variable">

```bash
--BESU_RPC_MAX_TRACE_FILTER_RANGE=100
```

</TabItem>

<TabItem value="Configuration file" label="Configuration file">

```bash
rpc-max-trace-filter-range=100
```

</TabItem>

</Tabs>

The maximum number of blocks you can supply to the [`trace_filter`](../api/index.md#trace_filter) method. The value must be equal to or greater than `0`. Setting this option to `0` indicates there is no limit. The default is `1000`.


### `rpc-tx-feecap`

<Tabs>
Expand Down

0 comments on commit a88fa90

Please sign in to comment.