From 8d5f779ec322a3fa37459b50171b75d9cfa8f794 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Tue, 26 Nov 2024 20:22:02 -0500 Subject: [PATCH] p2p: remove tmp `AddressBookRequest::NextNeededPruningSeed` --- p2p/address-book/src/book.rs | 3 +-- p2p/p2p-core/src/client/handshaker/builder/dummy.rs | 3 +-- p2p/p2p-core/src/services.rs | 6 ------ 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/p2p/address-book/src/book.rs b/p2p/address-book/src/book.rs index 10be8e3..3e5269f 100644 --- a/p2p/address-book/src/book.rs +++ b/p2p/address-book/src/book.rs @@ -424,8 +424,7 @@ impl Service> for AddressBook { | AddressBookRequest::ConnectionCount | AddressBookRequest::SetBan(_) | AddressBookRequest::GetBans - | AddressBookRequest::ConnectionInfo - | AddressBookRequest::NextNeededPruningSeed => { + | AddressBookRequest::ConnectionInfo => { todo!("finish https://github.com/Cuprate/cuprate/pull/297") } }; diff --git a/p2p/p2p-core/src/client/handshaker/builder/dummy.rs b/p2p/p2p-core/src/client/handshaker/builder/dummy.rs index e4e8047..48b3daf 100644 --- a/p2p/p2p-core/src/client/handshaker/builder/dummy.rs +++ b/p2p/p2p-core/src/client/handshaker/builder/dummy.rs @@ -112,8 +112,7 @@ impl Service> for DummyAddressBook { | AddressBookRequest::ConnectionCount | AddressBookRequest::SetBan(_) | AddressBookRequest::GetBans - | AddressBookRequest::ConnectionInfo - | AddressBookRequest::NextNeededPruningSeed => { + | AddressBookRequest::ConnectionInfo => { todo!("finish https://github.com/Cuprate/cuprate/pull/297") } })) diff --git a/p2p/p2p-core/src/services.rs b/p2p/p2p-core/src/services.rs index 63853e7..6d1089c 100644 --- a/p2p/p2p-core/src/services.rs +++ b/p2p/p2p-core/src/services.rs @@ -132,9 +132,6 @@ pub enum AddressBookRequest { /// Get the state of all bans. GetBans, - - /// Get the next [`PruningSeed`] needed for a pruned sync. - NextNeededPruningSeed, } /// A response from the address book service. @@ -172,7 +169,4 @@ pub enum AddressBookResponse { /// Response to [`AddressBookRequest::GetBans`]. GetBans(Vec>), - - /// Response to [`AddressBookRequest::NextNeededPruningSeed`]. - NextNeededPruningSeed(PruningSeed), }