Add new P2P protocol NewFile

This commit is contained in:
boqiu 2024-10-23 16:39:59 +08:00 committed by Peter Zhang
parent 9eea71e97d
commit d9030de505

View File

@ -123,6 +123,14 @@ pub struct NewFile {
pub timestamp: u32, pub timestamp: u32,
} }
#[derive(Debug, Clone, PartialEq, Eq, Encode, Decode)]
pub struct NewFile {
pub tx_id: TxID,
pub num_shard: usize,
pub shard_id: usize,
pub timestamp: u32,
}
#[derive(Debug, Clone, PartialEq, Eq, Encode, Decode)] #[derive(Debug, Clone, PartialEq, Eq, Encode, Decode)]
pub struct FindFile { pub struct FindFile {
pub tx_id: TxID, pub tx_id: TxID,