@@ -6,7 +6,7 @@ They provide full functionality in terms of safely accessing the blockchain, but
6
6
mine and therefore do not take part in the consensus process. Full and archive nodes can
7
7
also support the 'les' protocol besides 'eth' in order to be able to serve light nodes.
8
8
9
- The current protocol version is ** les/3 ** . See end of document for a list of changes in
9
+ The current protocol version is ** les/4 ** . See end of document for a list of changes in
10
10
past protocol versions. Some of the les protocol messages are similar to of the [ Ethereum
11
11
Wire Protocol] , with the addition of a few new fields.
12
12
@@ -172,6 +172,11 @@ are required (value types are noted after the key string):
172
172
- ` "headHash" ` ` B_32 ` : the hash of the best (i.e. highest TD) known block.
173
173
- ` "headNum" ` ` P ` : the number of the best (i.e. highest TD) known block.
174
174
- ` "genesisHash" ` ` B_32 ` : the hash of the Genesis block.
175
+ - ` "forkID" ` ` [crc32, nextFork: P] ` : mandatory since ** les/4** .
176
+ The value identifies the chain/fork the node is operating on.
177
+ - ` "recentTxLookup" ` ` P ` : announced by servers since ** les/4** . Transaction status
178
+ is served for transactions included in the N-1 most recent blocks (N=1 means that
179
+ mined transactions are not served at all). N=0 means all transactions are available.
175
180
176
181
There are several optional key/value pairs which can be set:
177
182
@@ -437,6 +442,10 @@ Update flow control buffer and allow sending requests again. Note that the reque
437
442
438
443
## Change Log
439
444
445
+ ### les/4 (March 2021)
446
+
447
+ - Keys ` "forkID" ` and ` "recentTxLookup" ` were added to the [ Status] message.
448
+
440
449
### les/3 (May 2019)
441
450
442
451
- Keys ` "serveRecentChain" ` and ` "serveRecentState" ` were added to the [ Status] message.
0 commit comments