Skip to content

cardano-testnet: cover Dijkstra hard forks, transactions and guards - #6709

Draft
Jimbo4350 wants to merge 4 commits into
masterfrom
jordan/dijkstra-testnet-start-test
Draft

Jimbo4350 wants to merge 4 commits into
masterfrom
jordan/dijkstra-testnet-start-test

Conversation

@Jimbo4350

@Jimbo4350 Jimbo4350 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Add 26 cardano-testnet integration properties covering governance hard forks into Dijkstra, nested transactions, Plutus V4 scripts, required guards, and direct ADA deposits.

  • Hard fork a Conway cluster through protocol versions 10 → 11 → 12, then verify the reported era, ledger state, block production, and clean shutdown.
  • Settle a native-token swap with independently signed sub-transactions and a separate fee payer.
  • Exercise native and Plutus V4 spending, minting, staking, and governance with direct and reference witnesses.
  • Check required top-level key, native, and Plutus V4 guards, including missing-guard rejection and recovery. Run each of the six guarded script purposes independently, include a missing-datum rejection control, and test top-level V4 minting and spending without guards or sub-transactions.
  • Cover direct ADA deposits with all three top-level builders and nested transactions, multiple recipients, repeated credits, V4 withdrawals, and invalid-recipient rejection.

Enable experimental hard forks in generated testnet configurations and update the default-config golden file. Use the dependencies already supplied by master, including cardano-cli 11.6; no extra dependency pins or CLI overrides are required. The API supplies outer script guards where the CLI does not expose them.

Rebased directly onto master at 8edbc1c041. The history contains four signed commits: hard-fork setup, nested swap, script and guard properties, and direct deposits. Herald descriptions are each kept on one physical line.

GHC 9.6 compatibility: construct the existential era value before the Hedgehog comparison. This fixes the ambiguous result type reported by the GHC 9.6 Linux/macOS and Hydra builds in DijkstraEra.hs. Local GHC 9.12 compilation, lint, and formatting pass after the change; the new CI run will verify GHC 9.6.

Validation on GHC 9.12.4:

  • cabal build cardano-testnet:test:cardano-testnet-test cardano-testnet:test:cardano-testnet-golden --enable-tests -j4: passes.
  • HLint 3.10 on the new Dijkstra modules: no hints.
  • stylish-haskell 0.14.4.0 on every changed Haskell file: passes.
  • git diff --check and signature verification for all four commits: pass.
  • golden_DefaultConfig: passes.
  • Six of seven focused live properties pass: hard fork, nested swap, top-level V4 mint/spend with direct and reference witnesses, direct deposits via build-raw, and the missing-datum rejection control.
  • Required top-level V4 guard Spending fails on transaction submission: the CLI reports BearerClosed, and the node log confirms Decoder was expected to provide the original ByteString.
  • GitHub HLint passes. The stylish-haskell job initially crashed during its repository-wide scan; its retry passes.

The full 26-property integration set has not been rerun during this rebase. The spending-guard failure reproduces the streaming-decoder issue previously seen in the Plutus V4 top-level guard property. This PR remains a draft; the tests retain their strict assertions.

Run the full Dijkstra set with:

env -u CARDANO_CLI -u CARDANO_NODE DISABLE_RETRIES=1 \
  cabal test cardano-testnet-test --enable-tests -j4 --test-show-details=direct \
  --test-options='--num-threads=3 -p "/Dijkstra/ || /Nested transaction swap/"'

@Jimbo4350
Jimbo4350 force-pushed the jordan/dijkstra-testnet-start-test branch 2 times, most recently from ad0be01 to d5c25ac Compare September 29, 2026 18:28
@Jimbo4350 Jimbo4350 changed the title cardano-testnet: add test that starts a cluster in the Dijkstra era cardano-testnet: add test that hard forks a cluster into the Dijkstra era Sep 29, 2026
@Jimbo4350 Jimbo4350 changed the title cardano-testnet: add test that hard forks a cluster into the Dijkstra era cardano-testnet: Dijkstra hard fork and nested transaction swap tests Sep 29, 2026
@Jimbo4350
Jimbo4350 force-pushed the jordan/dijkstra-testnet-start-test branch 2 times, most recently from 93980ed to 64e1edb Compare October 5, 2026 20:55
@Jimbo4350
Jimbo4350 changed the base branch from master to js/koslambrou/prepare-11.2 October 5, 2026 20:56
@Jimbo4350
Jimbo4350 changed the base branch from js/koslambrou/prepare-11.2 to master October 6, 2026 19:16
@Jimbo4350
Jimbo4350 force-pushed the jordan/dijkstra-testnet-start-test branch 2 times, most recently from 1d3e280 to 4ca8ee5 Compare October 14, 2026 16:42
@Jimbo4350 Jimbo4350 changed the title cardano-testnet: Dijkstra hard fork and nested transaction swap tests cardano-testnet: Dijkstra hard fork, sub-transaction and top-level guard properties Oct 14, 2026
@Jimbo4350
Jimbo4350 changed the base branch from master to koslambrou/prepare-11.2 October 14, 2026 16:42
@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch 7 times, most recently from 918a9df to 3026f0b Compare October 21, 2026 13:31
@carbolymer
carbolymer force-pushed the koslambrou/prepare-11.2 branch from ef1cfc4 to 1e701d5 Compare October 22, 2026 10:31
@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch 3 times, most recently from e1cd357 to 96e9dba Compare October 26, 2026 19:14
@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch 2 times, most recently from 2691236 to 632883f Compare October 27, 2026 12:01
@johnalotoski
johnalotoski force-pushed the koslambrou/prepare-11.2 branch 3 times, most recently from f61f91e to afb6c20 Compare October 27, 2026 17:06
Base automatically changed from koslambrou/prepare-11.2 to master October 27, 2026 20:36
Start a Conway cluster at protocol version 10, enact governance hard forks
to versions 11 and 12, and verify the Dijkstra era and block production.
Enable experimental hard forks in generated testnet configurations and
update the default configuration golden file.
@Jimbo4350
Jimbo4350 force-pushed the jordan/dijkstra-testnet-start-test branch from d19ceeb to cf6a2f4 Compare October 29, 2026 17:44
@Jimbo4350 Jimbo4350 changed the title cardano-testnet: Dijkstra hard fork, sub-transaction and top-level guard properties cardano-testnet: cover Dijkstra hard forks, transactions and guards Oct 29, 2026
Share the governance hard-fork helpers and settle a native-token swap
using two independently signed sub-transactions and a separate fee payer.
Check token ownership and ADA balances from the resulting UTxO set.
Key-locked inputs require their owners' witnesses without extra guards.
Add shared helpers and native and Plutus V4 properties for spending,
minting, staking, governance, and required top-level guards. Exercise
direct and reference witnesses, missing-guard rejection and recovery,
and top-level V4 minting and spending without sub-transactions.

Test each of the six guarded script purposes independently and require
ledger rejection for the missing-datum control. Use the dependencies and
automatic genesis hash refresh already available on master.
Exercise all three top-level transaction builders, signed nested
transactions, multiple recipients, and repeated credits. Cover Plutus V4
withdrawals with direct and reference witnesses and reject unregistered
or wrong-network recipients using the CLI supplied by master.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant