cuprated: Removing panicking assert in address_book_config (#506)

Remove addressb_book_config assert. Be careful.
This commit is contained in:
SyntheticBird
2025-06-06 15:04:38 +00:00
committed by GitHub
parent 392653c659
commit d4caf95838

View File

@@ -274,11 +274,6 @@ impl AddressBookConfig {
network: Network,
our_own_address: Option<Z::Addr>,
) -> cuprate_address_book::AddressBookConfig<Z> {
assert!(
!Z::BROADCAST_OWN_ADDR && our_own_address.is_some(),
"This network DO NOT take an incoming address."
);
cuprate_address_book::AddressBookConfig {
max_white_list_length: self.max_white_list_length,
max_gray_list_length: self.max_gray_list_length,