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:
Arvid Norberg 2021-06-22 20:47:07 +02:00 committed by GitHub
parent 375ec8f69d
commit 6cd7a7f5b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -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")

View File

@ -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