mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-04 06:03:10 +00:00
Add missing DaShare
This commit is contained in:
parent
6e026f3a7e
commit
8b800b0800
@ -2,6 +2,7 @@ from unittest import TestCase
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from da.api.common import *
|
from da.api.common import *
|
||||||
|
from da.verifier import DAShare
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@ -25,7 +26,7 @@ class MockStore(BlobStore):
|
|||||||
self.app_id_store[metadata.app_id][metadata.index] = cert_id
|
self.app_id_store[metadata.app_id][metadata.index] = cert_id
|
||||||
|
|
||||||
# Implements `get_multiple` method from BlobStore abstract class.
|
# Implements `get_multiple` method from BlobStore abstract class.
|
||||||
def get_multiple(self, app_id, indexes) -> List[Optional[DABlob]]:
|
def get_multiple(self, app_id, indexes) -> List[Optional[DAShare]]:
|
||||||
return [
|
return [
|
||||||
self.blob_store.get(self.app_id_store[app_id].get(i), None) if self.app_id_store[app_id].get(i) else None for i in indexes
|
self.blob_store.get(self.app_id_store[app_id].get(i), None) if self.app_id_store[app_id].get(i) else None for i in indexes
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user