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

Simple Geolocation Probing refactoring #498

Closed
wants to merge 63 commits into from

Conversation

Soptq
Copy link
Contributor

@Soptq Soptq commented Sep 24, 2021

  1. Add geocoding TTL at contract level.
  2. Moving probing to pruntime with sidetask and secure message channel.
  3. Refactor the geolocation contract for readability.
  4. Add on_block_end callback to contracts.

Note that currently geolocation probing is disabled by default in this PR. To enable it, you need to add a --enable_geoprobing flag to pruntime app:

./app --enable_geoprobing

Copy link
Contributor

@h4x3rotab h4x3rotab left a comment

Choose a reason for hiding this comment

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

Don't forget to run cargo fmt on your changed directories. (Don't include the changes it makes on the file you didn't touch)

crates/phactory/src/prpc_service.rs Outdated Show resolved Hide resolved
crates/phactory/src/prpc_service.rs Outdated Show resolved Hide resolved
crates/phactory/src/contracts/geolocation.rs Outdated Show resolved Hide resolved
crates/phala-types/src/lib.rs Outdated Show resolved Hide resolved
crates/phactory/src/system/side_tasks/geo_probe.rs Outdated Show resolved Hide resolved
crates/phactory/src/contracts/geolocation.rs Outdated Show resolved Hide resolved
crates/phactory/src/contracts/geolocation.rs Outdated Show resolved Hide resolved
crates/phactory/src/contracts/geolocation.rs Outdated Show resolved Hide resolved
crates/phactory/src/contracts/geolocation.rs Outdated Show resolved Hide resolved
crates/phactory/src/system/side_tasks/geo_probe.rs Outdated Show resolved Hide resolved
@Soptq Soptq marked this pull request as draft September 27, 2021 08:23
@Soptq Soptq marked this pull request as ready for review September 27, 2021 13:14
@Soptq
Copy link
Contributor Author

Soptq commented Sep 27, 2021

@h4x3rotab Done. Currently build checks will fail because the upstream PR has not been merged yet.
Phala-Network/prpc-protos#7.

@Soptq
Copy link
Contributor Author

Soptq commented Sep 29, 2021

Sorry I accidentally messed up this PR's commit history. Will create another PR instead.

@Soptq
Copy link
Contributor Author

Soptq commented Sep 29, 2021

#510

@h4x3rotab
Copy link
Contributor

Closing in favor of #510

@h4x3rotab h4x3rotab closed this Sep 30, 2021
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.

None yet

3 participants