Closed ppoliani closed 8 months ago
It takes around 35s to update fetch the latest OFAC list and extract all addresses from XML to the in memory hashmap. The logic runs in a separate non-blocking thread so it should not cause any issues. Also, they update the list every few days so it's gonna run that often
I believe we should start this thread when we run the orchestrator. It should wait for the fist sync of the OFAC list before it starts
BTW let me know when this is ready for review (looks like CI doesn't pass atm)
BTW let me know when this is ready for review (looks like CI doesn't pass atm)
Fixed the lint issues. You can review this :)
Sanction ist
I've added a comment regarding this.
https://github.com/sigma0-xyz/zkbitcoin/pull/30#issuecomment-1915156179
It's an XML file and is 92MB big.
Add sanction list based to the discussion here https://github.com/sigma0-xyz/zkbitcoin/issues/5.
The logic goes like this:
is_sanctioned
method that returns true if the address is in the sanction list.