Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: skip Plutus cost check on testnets #2792

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion cardano_node_tests/tests/plutus_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from cardano_clusterlib import clusterlib

from cardano_node_tests.tests import issues
from cardano_node_tests.utils import cluster_nodes
from cardano_node_tests.utils import clusterlib_utils
from cardano_node_tests.utils import dbsync_utils
from cardano_node_tests.utils import helpers
Expand Down Expand Up @@ -492,11 +493,15 @@ class ScriptCost:

def check_plutus_costs(
plutus_costs: tp.List[dict], expected_costs: tp.List[ExecutionCost], frac: float = 0.15
):
) -> None:
"""Check plutus transaction cost.

units: the time is in picoseconds and the space is in bytes.
"""
if cluster_nodes.get_cluster_type().type == cluster_nodes.ClusterType.TESTNET:
# We have the costs calibrated only for local testnet
return

# sort records by total cost
sorted_plutus = sorted(
plutus_costs,
Expand Down
Loading