Skip to content

Commit 0db22ea

Browse files
committed
removed the lru cache from WoCInterface call to get_raw_transaction
1 parent 4e2fa24 commit 0db22ea

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "chain-gang"
3-
version = "0.7.5"
3+
version = "0.7.6"
44
description = "This is a library that enables monitoring of multiple blockchains (BTC, BCH, BSV)."
55
# repository = "https://github.com/brentongunning/rust-sv"
66
authors = ["Arthur Gordon <a.gordon@nchain.com>"]

docs/Releases.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@
4949
* v0.7.2 - Added OP_2MUL and OP_2DIV script operations
5050
* v0.7.3 - Fixed WoC endpoints get_block_header and get_merkle_proof to use new TSC endpoint
5151
* v0.7.4 - Updated to support Python 3.14
52-
* v0.7.5 - Updated Python dependencies cryptography and requests
52+
* v0.7.5 - Updated Python dependencies cryptography and requests
53+
* v0.7.6 - Removed the use of LRU cache around WoCInterface for get_raw_transaction

python/src/tx_engine/interface/woc_interface.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"""
33

44
import logging
5-
import functools
65
from typing import Dict, Optional, List, Any
76

87
from . import woc
@@ -71,10 +70,8 @@ def get_transaction(self, txid: str):
7170
"""Return the transaction associated with this txid"""
7271
return woc.get_transaction(txid, testnet=self.is_testnet())
7372

74-
@functools.lru_cache
7573
def get_raw_transaction(self, txid: str) -> Optional[str]:
7674
"""Return the transaction associated with this txid.
77-
Use cached copy if available.
7875
"""
7976
return woc.get_raw_transaction(txid, testnet=self.is_testnet())
8077

0 commit comments

Comments
 (0)