Compare commits

...

1 Commits

Author SHA1 Message Date
lash
6c360ca2e5 Add reserved check method 2022-04-29 06:28:01 +00:00
3 changed files with 11 additions and 1 deletions

View File

@@ -134,6 +134,10 @@ class QueueEntry:
self.store.cache.set_block(self.tx_hash, block, tx)
def test(self, state):
return self.__match_state(state)
def __str__(self):
v = self.store.get(self.tx_hash)
n = self.store.state(v[0])

View File

@@ -153,3 +153,9 @@ class Store:
entry = QueueEntry(self, k)
entry.load()
entry.sent()
def is_reserved(self, k):
entry = QueueEntry(self, k)
entry.load()
return entry.test(self.RESERVED)

View File

@@ -1,6 +1,6 @@
[metadata]
name = chainqueue
version = 0.1.3
version = 0.1.5
description = Generic blockchain transaction queue control
author = Louis Holbrook
author_email = dev@holbrook.no