@@ -76,7 +76,7 @@ new Blockchain({ db: db }).iterator(
76
76
77
77
⊕ ** new Blockchain** (opts?: _ ` any ` _ ): [ Blockchain] ( blockchain.md )
78
78
79
- _ Defined in [ index.ts:73 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L73 ) _
79
+ _ Defined in [ index.ts:112 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L112 ) _
80
80
81
81
Creates new Blockchain object
82
82
@@ -110,7 +110,7 @@ The old separated DB constructor parameters `opts.blockDB` and `opts.detailsDB`
110
110
111
111
** ● db** : _ ` any ` _
112
112
113
- _ Defined in [ index.ts:66 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L66 ) _
113
+ _ Defined in [ index.ts:105 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L105 ) _
114
114
115
115
---
116
116
@@ -120,7 +120,7 @@ _Defined in [index.ts:66](https://github.com/ethereumjs/ethereumjs-blockchain/bl
120
120
121
121
** ● dbManager** : _ ` DBManager ` _
122
122
123
- _ Defined in [ index.ts:67 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L67 ) _
123
+ _ Defined in [ index.ts:106 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L106 ) _
124
124
125
125
---
126
126
@@ -130,7 +130,7 @@ _Defined in [index.ts:67](https://github.com/ethereumjs/ethereumjs-blockchain/bl
130
130
131
131
** ● ethash** : _ ` any ` _
132
132
133
- _ Defined in [ index.ts:68 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L68 ) _
133
+ _ Defined in [ index.ts:107 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L107 ) _
134
134
135
135
---
136
136
@@ -140,7 +140,7 @@ _Defined in [index.ts:68](https://github.com/ethereumjs/ethereumjs-blockchain/bl
140
140
141
141
** ● validate** : _ ` boolean ` _
142
142
143
- _ Defined in [ index.ts:73 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L73 ) _
143
+ _ Defined in [ index.ts:112 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L112 ) _
144
144
145
145
A flag indicating if this Blockchain validates blocks or not.
146
146
@@ -154,7 +154,7 @@ A flag indicating if this Blockchain validates blocks or not.
154
154
155
155
** get meta** (): ` object `
156
156
157
- _ Defined in [ index.ts:136 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L136 ) _
157
+ _ Defined in [ index.ts:175 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L175 ) _
158
158
159
159
Returns an object with metadata about the Blockchain. It's defined for backwards compatibility.
160
160
@@ -170,7 +170,7 @@ Returns an object with metadata about the Blockchain. It's defined for backwards
170
170
171
171
▸ ** delBlock** (blockHash: _ ` Buffer ` _ , cb: _ ` any ` _ ): ` void `
172
172
173
- _ Defined in [ index.ts:762 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L762 ) _
173
+ _ Defined in [ index.ts:823 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L823 ) _
174
174
175
175
Deletes a block from the blockchain. All child blocks in the chain are deleted and any encountered heads are set to the parent block.
176
176
@@ -191,7 +191,7 @@ Deletes a block from the blockchain. All child blocks in the chain are deleted a
191
191
192
192
▸ ** getBlock** (blockTag: _ ` Buffer ` \| ` number ` \| ` BN ` _ , cb: _ ` any ` _ ): ` void `
193
193
194
- _ Defined in [ index.ts:514 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L514 ) _
194
+ _ Defined in [ index.ts:560 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L560 ) _
195
195
196
196
Gets a block by its hash.
197
197
@@ -212,7 +212,7 @@ Gets a block by its hash.
212
212
213
213
▸ ** getBlocks** (blockId: _ ` Buffer ` \| ` number ` _ , maxBlocks: _ ` number ` _ , skip: _ ` number ` _ , reverse: _ ` boolean ` _ , cb: _ ` any ` _ ): ` void `
214
214
215
- _ Defined in [ index.ts:534 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L534 ) _
215
+ _ Defined in [ index.ts:583 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L583 ) _
216
216
217
217
Looks up many blocks relative to blockId
218
218
@@ -236,7 +236,7 @@ Looks up many blocks relative to blockId
236
236
237
237
▸ ** getDetails** (\_ : _ ` string ` _ , cb: _ ` any ` _ ): ` void `
238
238
239
- _ Defined in [ index.ts:575 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L575 ) _
239
+ _ Defined in [ index.ts:624 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L624 ) _
240
240
241
241
This method used to return block details by its hash. It's only here for backwards compatibility.
242
242
@@ -259,7 +259,7 @@ _**deprecated**_:
259
259
260
260
▸ ** getHead** (name: _ ` any ` _ , cb?: _ ` any ` _ ): ` void `
261
261
262
- _ Defined in [ index.ts:228 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L228 ) _
262
+ _ Defined in [ index.ts:271 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L271 ) _
263
263
264
264
Returns the specified iterator head.
265
265
@@ -280,7 +280,7 @@ Returns the specified iterator head.
280
280
281
281
▸ ** getLatestBlock** (cb: _ ` any ` _ ): ` void `
282
282
283
- _ Defined in [ index.ts:268 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L268 ) _
283
+ _ Defined in [ index.ts:311 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L311 ) _
284
284
285
285
Returns the latest full block in the canonical chain.
286
286
@@ -300,7 +300,7 @@ Returns the latest full block in the canonical chain.
300
300
301
301
▸ ** getLatestHeader** (cb: _ ` any ` _ ): ` void `
302
302
303
- _ Defined in [ index.ts:251 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L251 ) _
303
+ _ Defined in [ index.ts:294 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L294 ) _
304
304
305
305
Returns the latest header in the canonical chain.
306
306
@@ -320,7 +320,7 @@ Returns the latest header in the canonical chain.
320
320
321
321
▸ ** iterator** (name: _ ` string ` _ , onBlock: _ ` any ` _ , cb: _ ` any ` _ ): ` void `
322
322
323
- _ Defined in [ index.ts:890 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L890 ) _
323
+ _ Defined in [ index.ts:957 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L957 ) _
324
324
325
325
Iterates through blocks starting at the specified iterator head and calls the onBlock function on each block. The current location of an iterator head can be retrieved using the ` getHead() ` method.
326
326
@@ -342,7 +342,7 @@ Iterates through blocks starting at the specified iterator head and calls the on
342
342
343
343
▸ ** putBlock** (block: _ ` object ` _ , cb: _ ` any ` _ , isGenesis?: _ ` undefined ` \| ` false ` \| ` true ` _ ): ` void `
344
344
345
- _ Defined in [ index.ts:297 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L297 ) _
345
+ _ Defined in [ index.ts:340 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L340 ) _
346
346
347
347
Adds a block to the blockchain.
348
348
@@ -364,7 +364,7 @@ Adds a block to the blockchain.
364
364
365
365
▸ ** putBlocks** (blocks: _ ` Array ` <` any ` >_ , cb: _ ` any ` _ ): ` void `
366
366
367
- _ Defined in [ index.ts:281 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L281 ) _
367
+ _ Defined in [ index.ts:324 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L324 ) _
368
368
369
369
Adds many blocks to the blockchain.
370
370
@@ -385,7 +385,7 @@ Adds many blocks to the blockchain.
385
385
386
386
▸ ** putGenesis** (genesis: _ ` any ` _ , cb: _ ` any ` _ ): ` void `
387
387
388
- _ Defined in [ index.ts:218 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L218 ) _
388
+ _ Defined in [ index.ts:261 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L261 ) _
389
389
390
390
Puts the genesis block in the database
391
391
@@ -406,7 +406,7 @@ Puts the genesis block in the database
406
406
407
407
▸ ** putHeader** (header: _ ` object ` _ , cb: _ ` any ` _ ): ` void `
408
408
409
- _ Defined in [ index.ts:329 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L329 ) _
409
+ _ Defined in [ index.ts:372 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L372 ) _
410
410
411
411
Adds a header to the blockchain.
412
412
@@ -427,7 +427,7 @@ Adds a header to the blockchain.
427
427
428
428
▸ ** putHeaders** (headers: _ ` Array ` <` any ` >_ , cb: _ ` any ` _ ): ` void `
429
429
430
- _ Defined in [ index.ts:313 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L313 ) _
430
+ _ Defined in [ index.ts:356 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L356 ) _
431
431
432
432
Adds many headers to the blockchain.
433
433
@@ -448,7 +448,7 @@ Adds many headers to the blockchain.
448
448
449
449
▸ ** selectNeededHashes** (hashes: _ ` Array ` <` any ` >_ , cb: _ ` any ` _ ): ` void `
450
450
451
- _ Defined in [ index.ts:585 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/6e88434 /src/index.ts#L585 ) _
451
+ _ Defined in [ index.ts:634 ] ( https://github.com/ethereumjs/ethereumjs-blockchain/blob/c93b4dd /src/index.ts#L634 ) _
452
452
453
453
Given an ordered array, returns to the callback an array of hashes that are not in the blockchain yet.
454
454
0 commit comments