Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c360ca2e5
|
||
|
|
ff74679de8
|
@@ -134,6 +134,10 @@ class QueueEntry:
|
|||||||
self.store.cache.set_block(self.tx_hash, block, tx)
|
self.store.cache.set_block(self.tx_hash, block, tx)
|
||||||
|
|
||||||
|
|
||||||
|
def test(self, state):
|
||||||
|
return self.__match_state(state)
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
v = self.store.get(self.tx_hash)
|
v = self.store.get(self.tx_hash)
|
||||||
n = self.store.state(v[0])
|
n = self.store.state(v[0])
|
||||||
|
|||||||
@@ -153,3 +153,9 @@ class Store:
|
|||||||
entry = QueueEntry(self, k)
|
entry = QueueEntry(self, k)
|
||||||
entry.load()
|
entry.load()
|
||||||
entry.sent()
|
entry.sent()
|
||||||
|
|
||||||
|
|
||||||
|
def is_reserved(self, k):
|
||||||
|
entry = QueueEntry(self, k)
|
||||||
|
entry.load()
|
||||||
|
return entry.test(self.RESERVED)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
pysha3==1.0.2
|
#pysha3==1.0.2
|
||||||
hexathon~=0.1.5
|
hexathon~=0.1.5
|
||||||
leveldir~=0.3.0
|
leveldir~=0.3.0
|
||||||
alembic==1.4.2
|
#alembic==1.4.2
|
||||||
SQLAlchemy==1.3.20
|
#SQLAlchemy==1.3.20
|
||||||
confini~=0.6.0
|
confini~=0.6.0
|
||||||
pyxdg~=0.27
|
#pyxdg~=0.27
|
||||||
chainlib>=0.1.0b1,<=0.1.0
|
chainlib~=0.1.1
|
||||||
shep>=0.1.1rc1,<=0.3.0
|
shep~=0.2.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainqueue
|
name = chainqueue
|
||||||
version = 0.1.3
|
version = 0.1.5
|
||||||
description = Generic blockchain transaction queue control
|
description = Generic blockchain transaction queue control
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
|||||||
Reference in New Issue
Block a user