Upgrade deps

This commit is contained in:
lash 2022-05-05 15:02:21 +00:00
parent 81c1207828
commit 465d692956
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
5 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,5 @@
- 0.2.10
* Upgrade shep to guarantee state lock atomicity
- 0.2.9 - 0.2.9
* Minimize instantiations of adapters in filter execution * Minimize instantiations of adapters in filter execution
- 0.2.8 - 0.2.8

View File

@ -39,3 +39,9 @@ class MockTx:
def __init__(self, tx_hash, status=TxStatus.SUCCESS): def __init__(self, tx_hash, status=TxStatus.SUCCESS):
self.hash = tx_hash self.hash = tx_hash
self.status = status self.status = status
class MockBlock:
def __init__(self, number):
self.number = number

View File

@ -1,6 +1,6 @@
chainlib~=0.1.2 chainlib~=0.1.2
chainqueue~=0.1.12 chainqueue~=0.1.13
chainsyncer~=0.4.4 chainsyncer~=0.4.5
confini~=0.6.0 confini~=0.6.0
funga~=0.5.2 funga~=0.5.2
pyxdg~=0.26 pyxdg~=0.26

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = chaind name = chaind
version = 0.2.9 version = 0.2.10
description = Base package for chain queue service description = Base package for chain queue service
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no

View File

@ -14,6 +14,7 @@ from chaind.filter import StateFilter
# test imports # test imports
from chaind.unittest.common import ( from chaind.unittest.common import (
MockTx, MockTx,
MockBlock,
MockCacheAdapter, MockCacheAdapter,
MockDispatcher, MockDispatcher,
) )
@ -76,7 +77,8 @@ class TestChaindFs(TestChaindFsBase):
fltr = StateFilter(self.chain_spec, self.path, MockCacheAdapter) fltr = StateFilter(self.chain_spec, self.path, MockCacheAdapter)
tx = MockTx(hsh) tx = MockTx(hsh)
fltr.filter(None, None, tx) block = MockBlock(42)
fltr.filter(None, block, tx)
def test_fs_filter_fail(self): def test_fs_filter_fail(self):
@ -87,7 +89,8 @@ class TestChaindFs(TestChaindFsBase):
fltr = StateFilter(self.chain_spec, self.path, MockCacheAdapter) fltr = StateFilter(self.chain_spec, self.path, MockCacheAdapter)
tx = MockTx(hsh, TxStatus.ERROR) tx = MockTx(hsh, TxStatus.ERROR)
fltr.filter(None, None, tx) block = MockBlock(42)
fltr.filter(None, block, tx)
def test_upcoming(self): def test_upcoming(self):