Extend DHT scheme with content_id
This commit is contained in:
1 parent
a897737978
commit
8ee1db9cf8
8 files changed
+232
-25
No files matched your search
@@ -9,7 +9,7 @@ use crate::record::{DhtKey, StoredRecord};
|
||||
use crate::routing::{NodeContact, NodeId};
|
||||
|
||||
/// Version of the music-dht protocol.
|
||||
pub const DHT_PROTOCOL_VERSION: u16 = 2;
|
||||
pub const DHT_PROTOCOL_VERSION: u16 = 3;
|
||||
/// Maximum number of contacts in a single [`PeerExchange`].
|
||||
pub const MAX_PEER_EXCHANGE_CONTACTS: usize = 32;
|
||||
/// Maximum number of records in a single [`FindValueResponse`].
|
||||
|
||||
Reference in new issue
Block a user