Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix pr comments #38

Merged
merged 1 commit into from
Feb 14, 2024
Merged

chore: fix pr comments #38

merged 1 commit into from
Feb 14, 2024

Conversation

ppoliani
Copy link
Contributor

Fixes comments in this PR #30

impl Compliance {
const BTC_ID: &'static str = "344";
const TICK_INTERVAL: u64 = 600;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so every 10min, maybe we can relax this even more... mmm... I think it'd be a good idea to log it when we detect an update on the sanction list, so that we can have an idea of the frequency and revise this number later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The good thing is that there is pre-fetch stage which will fetch a few bytes initially. Those few bytes are enough to see if there is a fresh version of the dataset. Basically, the XML includes a tag that has the publish date of the document. So if the there is no fresh data then we don't fetch and parse the large XML file. This takes a few milliseconds to run.

@mimoo mimoo merged commit 2680ea3 into sigma0-dev:main Feb 14, 2024
1 check failed
@mimoo
Copy link
Contributor

mimoo commented Feb 14, 2024

nice!

@ppoliani ppoliani deleted the chore/pr_fixes branch February 18, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants