-
Notifications
You must be signed in to change notification settings - Fork 26
Add geolocation fields to the config #104
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
Conversation
|
Needs to add geo-location from blobber.yaml, and pass the geo-location information to 0cahin when registering blobber. Part of 0chain/0chain#238. |
|
I think we should validate longitude and latitude values.. Confirm:
|
|
@Sriep thanks. added. please, recheck. |
|
Merge in the latest master changes, as I think that might fix the failing to fail unit test check. |
|
Please merge in the latest master changes. You need the fix to the unit test checks. |
@Sriep
Need you input. Thanks.
how about to move the GeolocationConfig struct to 0chain main app, specifically here (and import from there to specific services, such as blobber):
https://github.com/0chain/0chain/blob/master/code/go/0chain.net/chaincore/config/config.go
it was also mentioned to add geolocation props to storagsc and minersc smart contracts too. does it mean, the props should be added to these structs specifically (currently they have near to zero fields)?
https://github.com/0chain/0chain/blob/ee5704d2617f42dcf857270cf73be44a9e5c523b/code/go/0chain.net/smartcontract/storagesc/sc.go#L24
https://github.com/0chain/0chain/blob/ee5704d2617f42dcf857270cf73be44a9e5c523b/code/go/0chain.net/smartcontract/minersc/sc.go#L51