Corrects tx insertion to statement cache.
This commit is contained in:
parent
5f064bf713
commit
7aa2565a3f
@ -47,6 +47,7 @@ def cache_statement(parsed_transaction: dict, querying_party: str):
|
|||||||
statement_transactions = []
|
statement_transactions = []
|
||||||
if cached_statement:
|
if cached_statement:
|
||||||
statement_transactions = json.loads(cached_statement)
|
statement_transactions = json.loads(cached_statement)
|
||||||
|
if parsed_transaction not in statement_transactions:
|
||||||
statement_transactions.append(parsed_transaction)
|
statement_transactions.append(parsed_transaction)
|
||||||
data = json.dumps(statement_transactions)
|
data = json.dumps(statement_transactions)
|
||||||
identifier = bytes.fromhex(querying_party)
|
identifier = bytes.fromhex(querying_party)
|
||||||
|
Loading…
Reference in New Issue
Block a user