mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-12-31 16:09:58 +00:00
p2p: remove tmp AddressBookRequest::NextNeededPruningSeed
This commit is contained in:
parent
ff48fb4679
commit
8d5f779ec3
3 changed files with 2 additions and 10 deletions
|
@ -424,8 +424,7 @@ impl<Z: BorshNetworkZone> Service<AddressBookRequest<Z>> for AddressBook<Z> {
|
||||||
| AddressBookRequest::ConnectionCount
|
| AddressBookRequest::ConnectionCount
|
||||||
| AddressBookRequest::SetBan(_)
|
| AddressBookRequest::SetBan(_)
|
||||||
| AddressBookRequest::GetBans
|
| AddressBookRequest::GetBans
|
||||||
| AddressBookRequest::ConnectionInfo
|
| AddressBookRequest::ConnectionInfo => {
|
||||||
| AddressBookRequest::NextNeededPruningSeed => {
|
|
||||||
todo!("finish https://github.com/Cuprate/cuprate/pull/297")
|
todo!("finish https://github.com/Cuprate/cuprate/pull/297")
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -112,8 +112,7 @@ impl<N: NetworkZone> Service<AddressBookRequest<N>> for DummyAddressBook {
|
||||||
| AddressBookRequest::ConnectionCount
|
| AddressBookRequest::ConnectionCount
|
||||||
| AddressBookRequest::SetBan(_)
|
| AddressBookRequest::SetBan(_)
|
||||||
| AddressBookRequest::GetBans
|
| AddressBookRequest::GetBans
|
||||||
| AddressBookRequest::ConnectionInfo
|
| AddressBookRequest::ConnectionInfo => {
|
||||||
| AddressBookRequest::NextNeededPruningSeed => {
|
|
||||||
todo!("finish https://github.com/Cuprate/cuprate/pull/297")
|
todo!("finish https://github.com/Cuprate/cuprate/pull/297")
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -132,9 +132,6 @@ pub enum AddressBookRequest<Z: NetworkZone> {
|
||||||
|
|
||||||
/// Get the state of all bans.
|
/// Get the state of all bans.
|
||||||
GetBans,
|
GetBans,
|
||||||
|
|
||||||
/// Get the next [`PruningSeed`] needed for a pruned sync.
|
|
||||||
NextNeededPruningSeed,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A response from the address book service.
|
/// A response from the address book service.
|
||||||
|
@ -172,7 +169,4 @@ pub enum AddressBookResponse<Z: NetworkZone> {
|
||||||
|
|
||||||
/// Response to [`AddressBookRequest::GetBans`].
|
/// Response to [`AddressBookRequest::GetBans`].
|
||||||
GetBans(Vec<BanState<Z::Addr>>),
|
GetBans(Vec<BanState<Z::Addr>>),
|
||||||
|
|
||||||
/// Response to [`AddressBookRequest::NextNeededPruningSeed`].
|
|
||||||
NextNeededPruningSeed(PruningSeed),
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue