Comments (8)
Also, not all users need the whole OraclePool
struct. If only one or two properties are used, consider passing them instead.
from oracle-core.
I will work on this. Just to clarify, the goal is to make OraclePool instance static via lazy_static right?
from oracle-core.
I thought about lazy_static, but I see it as a sort of "last resort". I mean it's essentially an immutable global var, which we cannot mock in tests. I'd prefer passing an instance as a parameter and if it gets too ugly, make it a lazy_static.
from oracle-core.
Do we need implement Sync for OraclePool first?
from oracle-core.
Do we need implement Sync for OraclePool first?
Good question. I'd keep it as simple as possible. If it becomes too much of a hassle, we can pass only needed fields as arguments.
from oracle-core.
For simplicity, maybe a channel and spawned OraclePool can be introduced. But the performance will be limited to single thread(or multi by mpmc and multiple spawned). Do you have any good idea?
from oracle-core.
For simplicity, maybe a channel and spawned OraclePool can be introduced. But the performance will be limited to single thread(or multi by mpmc and multiple spawned). Do you have any good idea?
Oh, it sounds way too complicated. It's essentially a bunch of parameters of simple types used to query the node. I mean, I'm not even sure that we need OraclePool
to keep those "scans" together. I believe we can pass them directly to the interested parties. Also, *Scan
types are not set in stone and can be altered if needed.
from oracle-core.
The bounty is sent. Thank you!
from oracle-core.
Related Issues (20)
- Suggest changes to ballot contract to allow ballot token owners to spend ballot boxes without any requirements HOT 2
- Bootstrap a new pool for ERG/XAU on testnet HOT 1
- Pool health OK for a first few minutes while running bootstrapped pool with only 1 oracle
- In oracle boxes scan filter out non-oracle boxes guarded by non-oracle-contract (PK wallets, etc.)
- Return 503 HTTP error for pool and oracle health endpoints when it's down
- Refresh NFT error in pool box after updating min_votes HOT 1
- Better error messages when config files loading failed
- Oracle health OK but the last posted box is 65 blocks old (epoch length is 35)
- Pool health DOWN but active oracle count is not changed
- For status base url use explorer.ergoplatform.com instead of api.ergoplatform.com
- Docker Hub Repo link broken
- Recommended way to run oracle-core when already running full ergo node? HOT 2
- Add CLI switch to auto approve "extract-reward-tokens" command HOT 2
- Add claimable reward token metrics to the Prometheus metrics endpoint HOT 1
- Scan Issue HOT 4
- Failed to found my own oracle box in the filtered posted oracle boxes HOT 10
- Add scan start blockheight parameter in config HOT 2
- Unlock node wallet if locked
- How to run a testnet oracle?
- Fix issues with buyback offchain
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oracle-core.