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