فهرست منبع

simplify Inv since Event already contains a type anyway (for now).

x 3 سال پیش
والد
کامیت
f04e64344b
1فایلهای تغییر یافته به همراه3 افزوده شده و 13 حذف شده
  1. 3 13
      doc/src/misc/hashchain/network_protocol.md

+ 3 - 13
doc/src/misc/hashchain/network_protocol.md

@@ -11,23 +11,13 @@ The protocol classify the Events by their state:
 	Unread: read_confirms < `MAX_CONFIMRS` 
 	Read: 	read_confirms >= `MAX_CONFIMRS` 
 
-
-## InvId
-
-	type InvId = u64;
-
-## InvItem
-
-| Description   | Data Type      	   | Comments      			    |
-|-------------- | -------------------- | -------------------------- |
-| Id  			| `InvId`  			   | Unique generated integer	|
-| Hash  		| `EventId`   		   | Hash of Event				|
-
 ## Inv
 
+Inventory vectors are used for notifying other nodes about objects they have or data which is being requested.
+
 | Description   | Data Type      	   | Comments           		|
 |-------------- | -------------------- | -------------------------- |
-| Invs	  	  	| Vec<`InvItem`> 	   | A list of `InvItem`		|
+| invs	  	  	| `Vec<[u8; 32]>`      | Inventory items    		|
 
 ### Receiving an `Inv` message