/// Returns an advert with the given ID
Returns an advert with the given ID
Returns an advert with the given ID
pub(crate) fn make_gossip_advert(id: u64) -> GossipAdvert {
        let artifact_id = id.to_string();
        GossipAdvert {
            artifact_id: ArtifactId::FileTreeSync(artifact_id.clone()),
            attribute: ArtifactAttribute::FileTreeSync(artifact_id),
            size: 0,
            // Integrity hash is not checked in the tests here
            integrity_hash: CryptoHash(vec![id as u8]),
        }
    }
pub ( crate ) fn make_gossip_advert ( id : u64 ) -> GossipAdvert { let artifact_id = id . to_string ( ) ; GossipAdvert { artifact_id : ArtifactId :: FileTreeSync ( artifact_id . clone ( ) ) , attribute : ArtifactAttribute :: FileTreeSync ( artifact_id ) , size : 0 , // Integrity hash is not checked in the tests here integrity_hash : CryptoHash ( vec ! [ id as u8 ] ) , } }
Returns an advert with the given ID
Returns an advert with the given ID
id
u64