mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-12-01 11:27:10 +03:00
Bump clvm rs version (#6892)
* use deserialize_and_run_program2 from clvm_rs * bump clvm_rs to 0.1.8 * bump clvm to 0.9.7
This commit is contained in:
parent
375ec8f69d
commit
6cd7a7f5b3
@ -7,7 +7,7 @@ from clvm.casts import int_from_bytes
|
||||
from clvm.EvalError import EvalError
|
||||
from clvm.operators import OP_REWRITE, OPERATOR_LOOKUP
|
||||
from clvm.serialize import sexp_from_stream, sexp_to_stream
|
||||
from clvm_rs import STRICT_MODE, deserialize_and_run_program, serialized_length
|
||||
from clvm_rs import STRICT_MODE, deserialize_and_run_program2, serialized_length
|
||||
from clvm_tools.curry import curry, uncurry
|
||||
|
||||
from chia.types.blockchain_format.sized_bytes import bytes32
|
||||
@ -212,7 +212,7 @@ class SerializedProgram:
|
||||
native_opcode_names_by_opcode = dict(
|
||||
("op_%s" % OP_REWRITE.get(k, k), op) for op, k in KEYWORD_FROM_ATOM.items() if k not in "qa."
|
||||
)
|
||||
cost, ret = deserialize_and_run_program(
|
||||
cost, ret = deserialize_and_run_program2(
|
||||
self._buf,
|
||||
serialized_args,
|
||||
KEYWORD_TO_ATOM["q"][0],
|
||||
@ -221,8 +221,7 @@ class SerializedProgram:
|
||||
max_cost,
|
||||
flags,
|
||||
)
|
||||
# TODO this could be parsed lazily
|
||||
return cost, Program.to(sexp_from_stream(io.BytesIO(ret), SExp.to))
|
||||
return cost, Program.to(ret)
|
||||
|
||||
|
||||
NIL = Program.from_bytes(b"\x80")
|
||||
|
4
setup.py
4
setup.py
@ -5,8 +5,8 @@ dependencies = [
|
||||
"chiavdf==1.0.2", # timelord and vdf verification
|
||||
"chiabip158==1.0", # bip158-style wallet filters
|
||||
"chiapos==1.0.3", # proof of space
|
||||
"clvm==0.9.6",
|
||||
"clvm_rs==0.1.7",
|
||||
"clvm==0.9.7",
|
||||
"clvm_rs==0.1.8",
|
||||
"clvm_tools==0.4.3",
|
||||
"aiohttp==3.7.4", # HTTP server for full node rpc
|
||||
"aiosqlite==0.17.0", # asyncio wrapper for sqlite, to store blocks
|
||||
|
Loading…
Reference in New Issue
Block a user