Reuse milhouse subtrees to shrink inactivity_scores in memory (#7062)

* SSZ bump in a single clean commit

* Do the actual intra-rebases

* Update milhouse
This commit is contained in:
Michael Sproul
2025-03-03 16:33:04 +11:00
committed by GitHub
parent 8f43cb98b7
commit 6399ad482b
15 changed files with 202 additions and 63 deletions

View File

@@ -1186,7 +1186,7 @@ impl<E: EthSpec> Network<E> {
) {
let metadata = self.network_globals.local_metadata.read().clone();
// The encoder is responsible for sending the negotiated version of the metadata
let event = RpcResponse::Success(RpcSuccessResponse::MetaData(metadata));
let event = RpcResponse::Success(RpcSuccessResponse::MetaData(Arc::new(metadata)));
self.eth2_rpc_mut()
.send_response(peer_id, id, request_id, event);
}
@@ -1601,7 +1601,7 @@ impl<E: EthSpec> Network<E> {
}
RpcSuccessResponse::MetaData(meta_data) => {
self.peer_manager_mut()
.meta_data_response(&peer_id, meta_data);
.meta_data_response(&peer_id, meta_data.as_ref().clone());
None
}
/* Network propagated protocols */