Skip to content

Commit e7a06db

Browse files
authored
Merge pull request #41 from rrruko/rrruko/ledger-conformance-test-vectors
Add ledger conformance test tarball
2 parents e6f3991 + d388010 commit e7a06db

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
vectors.tar.gz is a set of test vectors dumped from the cardano-ledger
2+
conway-era test suite that can be used to test alternative ledger
3+
implementations. Each vector consists of one transaction and a pair of "before"
4+
and "after" ledger states. Vectors are grouped into directories based on the
5+
unit test that generated the vector, and numbered sequentially.
6+
7+
Test vectors were obtained by running [this](https://github.com/SundaeSwap-finance/cardano-ledger-conformance-tests/commit/34365e427e6507442fd8079ddece9f4a565bf1b9) fork of cardano-ledger:
8+
9+
```
10+
git clone [email protected]:SundaeSwap-finance/cardano-ledger-conformance-tests.git
11+
cd cardano-ledger-conformance-tests
12+
git checkout 34365e427e6507442fd8079ddece9f4a565bf1b9
13+
cabal test cardano-ledger-conway
14+
tar czf vectors.tar.gz eras/conway/impl/dump/*
15+
```
16+
17+
Ledger V9 tests were removed, as well as two tests (BodyRefScriptsSizeTooBig,
18+
TxRefScriptsSizeTooBig) that produced very large sequences of transactions
19+
without a correspondingly significant impact on coverage.
20+
21+
To optimize the size of the vector set, the ledger state format is modified to
22+
represent protocol parameters records by their hash. Each unique protocol parameters record can be found in the pparams-by-hash directory.
23+
24+
See also:
25+
[this](https://github.com/IntersectMBO/cardano-ledger/issues/4892#issuecomment-2880444621)
26+
discussion in the cardano-ledger repository.
1.7 MB
Binary file not shown.

0 commit comments

Comments
 (0)