lukso-network / lukso-orchestrator

Orchestrating the dance of vanguard and pandora.
Apache License 2.0
6 stars 7 forks source link

Provide `orc_confirmBlockHashes` for pandora and vanguard #12

Closed blazejkrzak closed 3 years ago

blazejkrzak commented 3 years ago

Provide orc_confirmBlockHashes endpoint for pandora and vanguard. Proposition is to statuses instead of boolean. Possible statuses:

3. 🦺 pan > orc : confirmBlockBatch: 'orc_confirmBlockHashes', params: [[{slot: 1, hash: blockHash},...]]
    > [{slot: 1, status: 'pending'}, {slot: 2, 'verified'}, {slot: 3, 'invalid'}, ...]
blazejkrzak commented 3 years ago

Im on it.

In first iteration it will be just simply returning true for each hash, and be used more like a mock to test the connectivity. Next iteration will provide logic to confirm validity of blocks

blazejkrzak commented 3 years ago

https://hackmd.io/@eo9jf8QvQfWAZwf73BXHBg/HJtL6zBtd/edit

atif-konasl commented 3 years ago

@blazejkrzak the api will get request of sorted slots and will provide response also in sorted slots

atif-konasl commented 3 years ago

Closing this issue. Already merged the feature.