Compare commits
No commits in common. "master" and "v0.1.1" have entirely different histories.
@ -1,9 +1,3 @@
|
|||||||
- 0.1.5
|
|
||||||
* Upgrade chainlib to 0.3.0
|
|
||||||
- 0.1.4
|
|
||||||
* Update file store on chainlib 0.2.0
|
|
||||||
- 0.1.3
|
|
||||||
* Upgrade deps
|
|
||||||
- 0.1.2
|
- 0.1.2
|
||||||
* Upgrade deps
|
* Upgrade deps
|
||||||
- 0.1.1
|
- 0.1.1
|
||||||
|
@ -25,7 +25,7 @@ def chain_dir_for(chain_spec, base_dir=default_base_dir):
|
|||||||
class FileStore:
|
class FileStore:
|
||||||
|
|
||||||
def put_tx(self, tx, include_data=False):
|
def put_tx(self, tx, include_data=False):
|
||||||
raw = pack(tx.src, self.chain_spec)
|
raw = pack(tx.src(), self.chain_spec)
|
||||||
tx_hash_dirnormal = strip_0x(tx.hash).upper()
|
tx_hash_dirnormal = strip_0x(tx.hash).upper()
|
||||||
tx_hash_bytes = bytes.fromhex(tx_hash_dirnormal)
|
tx_hash_bytes = bytes.fromhex(tx_hash_dirnormal)
|
||||||
self.tx_raw_dir.add(tx_hash_bytes, raw)
|
self.tx_raw_dir.add(tx_hash_bytes, raw)
|
||||||
@ -62,10 +62,10 @@ class FileStore:
|
|||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
if include_data:
|
if include_data:
|
||||||
src = json.dumps(tx.src).encode('utf-8')
|
src = json.dumps(tx.src()).encode('utf-8')
|
||||||
self.tx_dir.add(bytes.fromhex(strip_0x(tx.hash)), src)
|
self.tx_dir.add(bytes.fromhex(strip_0x(tx.hash)), src)
|
||||||
|
|
||||||
rcpt_src = tx.result.src
|
rcpt_src = tx.rcpt_src()
|
||||||
logg.debug('rcpt {}'.format(rcpt_src))
|
logg.debug('rcpt {}'.format(rcpt_src))
|
||||||
if rcpt_src != None:
|
if rcpt_src != None:
|
||||||
rcpt_src = json.dumps(rcpt_src).encode('utf-8')
|
rcpt_src = json.dumps(rcpt_src).encode('utf-8')
|
||||||
@ -79,7 +79,7 @@ class FileStore:
|
|||||||
num_bytes = block.number.to_bytes(8, 'big')
|
num_bytes = block.number.to_bytes(8, 'big')
|
||||||
self.block_hash_dir.add(hash_bytes, num_bytes)
|
self.block_hash_dir.add(hash_bytes, num_bytes)
|
||||||
if include_data:
|
if include_data:
|
||||||
src = json.dumps(block.src).encode('utf-8')
|
src = json.dumps(block.src()).encode('utf-8')
|
||||||
self.block_src_dir.add(hash_bytes, src)
|
self.block_src_dir.add(hash_bytes, src)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
hexathon~=0.1.7
|
hexathon~=0.1.6
|
||||||
jsonrpc-std~=0.1.0
|
jsonrpc-std~=0.1.0
|
||||||
leveldir~=0.3.0
|
leveldir~=0.3.0
|
||||||
chainlib-eth~=0.3.0
|
chainlib-eth~=0.1.2
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = eth-cache
|
name = eth-cache
|
||||||
version = 0.1.5
|
version = 0.1.2
|
||||||
description = Ethereum chain data caching tools
|
description = Ethereum chain data caching tools
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
url = https://git.defalsify.org/eth-cache
|
url = https://git.defalsify.org/eth-monitor
|
||||||
keywords =
|
keywords =
|
||||||
dlt
|
dlt
|
||||||
blockchain
|
blockchain
|
||||||
@ -26,7 +26,7 @@ licence_files =
|
|||||||
|
|
||||||
[options]
|
[options]
|
||||||
include_package_data = True
|
include_package_data = True
|
||||||
python_requires = >= 3.9
|
python_requires = >= 3.7
|
||||||
packages =
|
packages =
|
||||||
eth_cache
|
eth_cache
|
||||||
eth_cache.store
|
eth_cache.store
|
||||||
|
Loading…
Reference in New Issue
Block a user