19
19
import anyio
20
20
from chia_puzzles_py .programs import CHIALISP_DESERIALISATION , ROM_BOOTSTRAP_GENERATOR
21
21
from chia_rs import (
22
- MEMPOOL_MODE ,
23
22
AugSchemeMPL ,
24
23
ConsensusConstants ,
25
24
G1Element ,
75
74
from chia .ssl .create_ssl import create_all_ssl
76
75
from chia .types .blockchain_format .classgroup import ClassgroupElement
77
76
from chia .types .blockchain_format .coin import Coin
78
- from chia .types .blockchain_format .program import INFINITE_COST , Program
77
+ from chia .types .blockchain_format .program import DEFAULT_FLAGS , INFINITE_COST , Program
79
78
from chia .types .blockchain_format .proof_of_space import (
80
79
ProofOfSpace ,
81
80
calculate_pos_challenge ,
@@ -1951,7 +1950,7 @@ def compute_cost_test(generator: BlockGenerator, constants: ConsensusConstants,
1951
1950
1952
1951
if height >= constants .HARD_FORK_HEIGHT :
1953
1952
blocks = generator .generator_refs
1954
- cost , result = generator .program ._run (INFINITE_COST , MEMPOOL_MODE , [DESERIALIZE_MOD , blocks ])
1953
+ cost , result = generator .program ._run (INFINITE_COST , DEFAULT_FLAGS , [DESERIALIZE_MOD , blocks ])
1955
1954
clvm_cost += cost
1956
1955
1957
1956
for spend in result .first ().as_iter ():
@@ -1960,13 +1959,13 @@ def compute_cost_test(generator: BlockGenerator, constants: ConsensusConstants,
1960
1959
puzzle = spend .at ("rf" )
1961
1960
solution = spend .at ("rrrf" )
1962
1961
1963
- cost , result = puzzle ._run (INFINITE_COST , MEMPOOL_MODE , solution )
1962
+ cost , result = puzzle ._run (INFINITE_COST , DEFAULT_FLAGS , solution )
1964
1963
clvm_cost += cost
1965
1964
condition_cost += conditions_cost (result )
1966
1965
1967
1966
else :
1968
1967
block_program_args = SerializedProgram .to ([generator .generator_refs ])
1969
- clvm_cost , result = GENERATOR_MOD ._run (INFINITE_COST , MEMPOOL_MODE , [generator .program , block_program_args ])
1968
+ clvm_cost , result = GENERATOR_MOD ._run (INFINITE_COST , DEFAULT_FLAGS , [generator .program , block_program_args ])
1970
1969
1971
1970
for res in result .first ().as_iter ():
1972
1971
# each condition item is:
0 commit comments