pushes node-instance along with version early in gossip
This commit is contained in:
parent
8cd5eb9863
commit
542198180a
|
@ -425,7 +425,7 @@ pub fn make_accounts_hashes_message(
|
|||
type Ping = ping_pong::Ping<[u8; GOSSIP_PING_TOKEN_SIZE]>;
|
||||
|
||||
// TODO These messages should go through the gpu pipeline for spam filtering
|
||||
#[frozen_abi(digest = "8L3mKuv292LTa3XFCGNVdaFihWnsgYE4hf941p9gqUxF")]
|
||||
#[frozen_abi(digest = "6PpTdBvyX37y5ERokb8DejgKobpsuTbFJC39f8Eqz7Vy")]
|
||||
#[derive(Serialize, Deserialize, Debug, AbiEnumVisitor, AbiExample)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
enum Protocol {
|
||||
|
@ -1809,9 +1809,14 @@ impl ClusterInfo {
|
|||
let mut last_contact_info_trace = timestamp();
|
||||
let mut adopt_shred_version = self.my_shred_version() == 0;
|
||||
let recycler = PacketsRecycler::default();
|
||||
|
||||
let message = CrdsData::Version(Version::new(self.id()));
|
||||
self.push_message(CrdsValue::new_signed(message, &self.keypair));
|
||||
let crds_data = vec![
|
||||
CrdsData::Version(Version::new(self.id())),
|
||||
CrdsData::NodeInstance(self.instance.read().unwrap().clone()),
|
||||
];
|
||||
for value in crds_data {
|
||||
let value = CrdsValue::new_signed(value, &self.keypair);
|
||||
self.push_message(value);
|
||||
}
|
||||
let mut generate_pull_requests = true;
|
||||
loop {
|
||||
let start = timestamp();
|
||||
|
|
Loading…
Reference in New Issue