I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit d9c2d173 authored by zzz's avatar zzz
Browse files

Blockfile spec: Add missing info for version 4 format

parent 82dcd046
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
Blockfile and Hosts Database Specification Blockfile and Hosts Database Specification
========================================== ==========================================
.. meta:: .. meta::
:lastupdated: November 2014 :lastupdated: November 2019
:accuratefor: 0.9.17 :accuratefor: 0.9.43
.. contents:: .. contents::
...@@ -172,10 +172,10 @@ Properties Skiplist ...@@ -172,10 +172,10 @@ Properties Skiplist
entries containing only one entry: entries containing only one entry:
info info
a Properties (UTF-9 String/String Map), serialized as a [Mapping]_: a Properties (UTF-8 String/String Map), serialized as a [Mapping]_:
version version
"3" "4"
created created
Java long time (ms) Java long time (ms)
...@@ -211,12 +211,25 @@ hosts.txt, userhosts.txt, and privatehosts.txt Skiplists ...@@ -211,12 +211,25 @@ hosts.txt, userhosts.txt, and privatehosts.txt Skiplists
-------------------------------------------------------- --------------------------------------------------------
For each host database, there is a skiplist containing the hosts for that For each host database, there is a skiplist containing the hosts for that
database. The keys/values in these skiplists are as follows: database. Note that the version 4 format supports multiple Destinations
per hostname. This format was introduced in I2P release 0.9.26.
Version 3 databases are automatically migrated to verrsion 4.
The keys/values in these skiplists are as follows:
key key
a UTF-8 String (the hostname) a UTF-8 String (the hostname)
value value
Database version 4:
A DestEntry, which is:
A one-byte number of Properties/Destination pairs to follow
That number of pairs of:
A Properties (a UTF-8 String/String Map)
serialized as a [Mapping]_ followed by a binary [Destination]_
(serialized as usual).
Database version 3:
a DestEntry, which is a Properties (a UTF-8 String/String Map) a DestEntry, which is a Properties (a UTF-8 String/String Map)
serialized as a [Mapping]_ followed by a binary [Destination]_ serialized as a [Mapping]_ followed by a binary [Destination]_
(serialized as usual). (serialized as usual).
...@@ -226,10 +239,20 @@ The DestEntry Properties typically contains: ...@@ -226,10 +239,20 @@ The DestEntry Properties typically contains:
"a" "a"
The time added (Java long time in ms) The time added (Java long time in ms)
"a"
The time added (Java long time in ms)
"notes"
User-supplied comments
"s" "s"
The original source of the entry (typically a file name or subscription The original source of the entry (typically a file name or subscription
URL) URL)
"v"
If the signature of the entry was verified, "true" or "false"
Hostname keys are stored in lower-case and always end in ".i2p". Hostname keys are stored in lower-case and always end in ".i2p".
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment