Blacklist API #740
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-21#740
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "blacklist_api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Addresses #496.
This PR adds two new API commands:
addAddressToBlackWhiteList
andremoveAddressFromBlackWhiteList
, which add and remove black-/white-list entries (respectively) depending on which of(blacklist|whitelist)
the user has set.Two new API codes (28 and 29) are added for alerting API clients of when an entry already exists or does not exist (also respectively).
In
bitmessageqt/__init__.py
loadBlackWhiteList
is refactored intorerenderBlackWhiteList
to be more consistent with the rest of the rerender methods. Finally, it also accepts a new UI signal to refresh the black-/white-list UI pane.There was no testing suite to speak of, but I did test the breadth of the functionality manually as thoroughly as I could.
This works excellently for me. Thank you!