Skip to content

Commit 61112a7

Browse files
committed
docs: drop the generated JSON-RPC edits
admin.md is produced by DocGen, so hand-inserting the two EraE methods would be overwritten on the next regeneration. NethermindEth/nethermind#12873 makes the generator emit them; until that runs, the page names the methods without linking into the reference.
1 parent 98d5bcb commit 61112a7

2 files changed

Lines changed: 2 additions & 94 deletions

File tree

docs/fundamentals/history-pruning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Receipts are stored slim, as `rlp([txType, postStateOrStatus, cumulativeGas, log
4747

4848
The `Era.*` options and `admin_importHistory`/`admin_exportHistory` described below apply to Era1. EraE has its own equivalents:
4949

50-
- Import: [`EraE.ImportDirectory`](./configuration.md#erae-importdirectory), or the [`admin_importEraHistory`](../interacting/json-rpc-ns/admin.md#admin_importerahistory) JSON-RPC method.
51-
- Export: [`EraE.ExportDirectory`](./configuration.md#erae-exportdirectory), or the [`admin_exportEraHistory`](../interacting/json-rpc-ns/admin.md#admin_exporterahistory) JSON-RPC method. Exporting post-Merge blocks requires [`EraE.BeaconNodeUrl`](./configuration.md#erae-beaconnodeurl), which supplies the beacon block and state roots.
50+
- Import: [`EraE.ImportDirectory`](./configuration.md#erae-importdirectory), or the `admin_importEraHistory` JSON-RPC method.
51+
- Export: [`EraE.ExportDirectory`](./configuration.md#erae-exportdirectory), or the `admin_exportEraHistory` JSON-RPC method. Exporting post-Merge blocks requires [`EraE.BeaconNodeUrl`](./configuration.md#erae-beaconnodeurl), which supplies the beacon block and state roots.
5252
- Range and verification: [`EraE.From`](./configuration.md#erae-from), [`EraE.To`](./configuration.md#erae-to) (`0` means head), and [`EraE.TrustedAccumulatorFile`](./configuration.md#erae-trustedaccumulatorfile).
5353

5454
### Remote archives

docs/interacting/json-rpc-ns/admin.md

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -134,51 +134,6 @@ The data directory path as a string.
134134
</TabItem>
135135
</Tabs>
136136

137-
### admin_exportEraHistory
138-
139-
Exports a range of historic blocks in erae format.
140-
141-
<Tabs>
142-
<TabItem value="params" label="Parameters">
143-
144-
1. `destinationPath`: _string_
145-
146-
2. `from`: _string_ (hex integer)
147-
148-
3. `to`: _string_ (hex integer)
149-
150-
151-
</TabItem>
152-
<TabItem value="request" label="Request" default>
153-
154-
```bash
155-
curl localhost:8545 \
156-
-X POST \
157-
-H "Content-Type: application/json" \
158-
--data '{
159-
"jsonrpc": "2.0",
160-
"id": 0,
161-
"method": "admin_exportEraHistory",
162-
"params": [destinationPath, from, to]
163-
}'
164-
```
165-
166-
</TabItem>
167-
<TabItem value="response" label="Response">
168-
169-
```json
170-
{
171-
"jsonrpc": "2.0",
172-
"id": 0,
173-
"result": result
174-
}
175-
```
176-
177-
`result`: _string_
178-
179-
</TabItem>
180-
</Tabs>
181-
182137
### admin_exportHistory
183138

184139
Exports a range of historic block in era1 format.
@@ -224,53 +179,6 @@ curl localhost:8545 \
224179
</TabItem>
225180
</Tabs>
226181

227-
### admin_importEraHistory
228-
229-
Imports a range of historic blocks from an erae directory.
230-
231-
<Tabs>
232-
<TabItem value="params" label="Parameters">
233-
234-
1. `sourcePath`: _string_
235-
236-
2. `from`: _string_ (hex integer)
237-
238-
3. `to`: _string_ (hex integer)
239-
240-
4. `accumulatorFile`: _string_
241-
242-
243-
</TabItem>
244-
<TabItem value="request" label="Request" default>
245-
246-
```bash
247-
curl localhost:8545 \
248-
-X POST \
249-
-H "Content-Type: application/json" \
250-
--data '{
251-
"jsonrpc": "2.0",
252-
"id": 0,
253-
"method": "admin_importEraHistory",
254-
"params": [sourcePath, from, to, accumulatorFile]
255-
}'
256-
```
257-
258-
</TabItem>
259-
<TabItem value="response" label="Response">
260-
261-
```json
262-
{
263-
"jsonrpc": "2.0",
264-
"id": 0,
265-
"result": result
266-
}
267-
```
268-
269-
`result`: _string_
270-
271-
</TabItem>
272-
</Tabs>
273-
274182
### admin_importHistory
275183

276184
Import a range of historic block from era1 directory.

0 commit comments

Comments
 (0)