Skip to content

Commit e32ff81

Browse files
committed
WIP
1 parent 09cb3ff commit e32ff81

File tree

9 files changed

+55
-17
lines changed

9 files changed

+55
-17
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
applyTxErr = ns7< byron.applyMempoolPayloadErr
2+
, shelley.applyTxErr
3+
, allegra.applyTxErr
4+
, mary.applyTxErr
5+
, alonzo.applyTxErr
6+
, babbage.applyTxErr
7+
, conway.applyTxErr>
8+
9+
byron.applyMempoolPayloadErr = undefined
10+
11+
; ShelleyLedgerPredFailure
12+
shelley.applyTxErr = [0, utxowFailure] / [1, delegsFailure]
13+
14+
; ShelleyDelegsPredFailure
15+
delegsFailure = [0, delegateeNotRegistered] / [1, withdrawalsNotInRewards] / [2, delplFailure]
16+
17+
delegateeNotRegistered = keyhash
18+
19+
withdrawalsNotInRewards = { * reward_account => coin }
20+
21+
; ShelleyDlplPredFailure
22+
delplFailure = [0, poolFailure] / [1, delegFailure]
23+
24+
; ShelleyPoolPredFailure
25+
poolFailure = [ 0, keyhash ]
26+
/ [ 1, epochno, epochno, epochno ]
27+
/ [ 3, epochno, epochno ]
28+
/ [ 4, epochno, epochno, keyhash ]
29+
/ [ 5, keyhash, int ]
30+
31+
; ShelleyDelegPredFailure
32+
delegFailure = [

ouroboros-consensus-cardano/cddl/node-to-node/txsubmission2/tx.cddl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
tx =
22
ns7<byron.tx,
3-
serialisedShelleyTx<shelley.tx>,
4-
serialisedShelleyTx<allegra.tx>,
5-
serialisedShelleyTx<mary.tx>,
6-
serialisedShelleyTx<alonzo.tx>,
7-
serialisedShelleyTx<babbage.tx>,
8-
serialisedShelleyTx<conway.tx>>
3+
serialisedShelleyTx<shelley.transaction>,
4+
serialisedShelleyTx<allegra.transaction>,
5+
serialisedShelleyTx<mary.transaction>,
6+
serialisedShelleyTx<alonzo.transaction>,
7+
serialisedShelleyTx<babbage.transaction>,
8+
serialisedShelleyTx<conway.transaction>>
99

1010
serialisedShelleyTx<era> = #6.24(bytes .cbor era)
1111

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
txId =
22
ns7<byronTxId,
3-
shelley.txid,
4-
shelley.txid,
5-
shelley.txid,
6-
shelley.txid,
7-
shelley.txid,
8-
shelley.txid>
3+
shelley.transaction_id,
4+
allegra.transaction_id,
5+
mary.transaction_id,
6+
alonzo.transaction_id,
7+
conway.transaction_id,
8+
babbage.transaction_id>
99

1010
byronTxId = [0, byron.txid]
1111
/ [1, byron.certificateid]
@@ -14,4 +14,9 @@ byronTxId = [0, byron.txid]
1414

1515
;# include byron as byron
1616
;# include shelley as shelley
17+
;# include allegra as allegra
18+
;# include mary as mary
19+
;# include alonzo as alonzo
20+
;# include babbage as babbage
21+
;# include conway as conway
1722
;# import base

ouroboros-consensus-cardano/test/byron-test/Test/Consensus/Byron/Golden.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Test.Util.Paths
1414
import Test.Util.Serialisation.Golden
1515

1616
tests :: TestTree
17-
tests = goldenTest_all codecConfig ($(getGoldenDir) </> "byron") examples
17+
tests = goldenTest_all codecConfig ($(getGoldenDir) </> "byron") Nothing examples
1818

1919
instance ToGoldenDirectory ByronNodeToNodeVersion
2020

ouroboros-consensus-cardano/test/byron-test/Test/Consensus/Byron/Serialisation.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ tests :: TestTree
3737
tests =
3838
testGroup
3939
"Byron"
40-
[ roundtrip_all testCodecCfg dictNestedHdr
40+
[ roundtrip_all testCodecCfg dictNestedHdr Nothing
4141
, testProperty "BinaryBlockInfo sanity check" prop_byronBinaryBlockInfo
4242
, testGroup
4343
"Integrity"

ouroboros-consensus-cardano/test/cardano-test/Test/Consensus/Cardano/GenCDDLs.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ setupCDDLCEnv = do
121121
$ L.intersperse ":"
122122
$ map (mconcat . L.intersperse ":") [byron, shelley, allegra, mary, alonzo, babbage, conway] <> local_paths
123123

124+
writeFile "env" ("CDDL_INCLUDE_PATH=" <> include_path <> ":")
124125
E.setEnv "CDDL_INCLUDE_PATH" (include_path <> ":")
125126

126127
sed :: FilePath -> [String] -> IO ()

ouroboros-consensus-cardano/test/shelley-test/Test/Consensus/Shelley/Golden.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Test.Util.Paths
1717
import Test.Util.Serialisation.Golden
1818

1919
tests :: TestTree
20-
tests = goldenTest_all codecConfig ($(getGoldenDir) </> "shelley") examplesShelley
20+
tests = goldenTest_all codecConfig ($(getGoldenDir) </> "shelley") Nothing examplesShelley
2121

2222
instance ToGoldenDirectory ShelleyNodeToNodeVersion
2323

ouroboros-consensus-cardano/test/shelley-test/Test/Consensus/Shelley/Serialisation.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tests :: TestTree
3131
tests =
3232
testGroup
3333
"Shelley"
34-
[ roundtrip_all testCodecCfg dictNestedHdr
34+
[ roundtrip_all testCodecCfg dictNestedHdr Nothing
3535
, -- Test for real crypto too
3636
testProperty "hashSize real crypto" $ prop_hashSize pReal
3737
, testProperty "ConvertRawHash real crypto" $ roundtrip_ConvertRawHash pReal

ouroboros-consensus-diffusion/test/mock-test/Test/ThreadNet/BFT.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ instance Arbitrary TestSetup where
5555
tests :: TestTree
5656
tests =
5757
testGroup "BFT" $
58-
[ roundtrip_all SimpleCodecConfig dictNestedHdr
58+
[ roundtrip_all SimpleCodecConfig dictNestedHdr Nothing
5959
, testProperty "simple convergence" $ \setup ->
6060
prop_simple_bft_convergence setup
6161
]

0 commit comments

Comments
 (0)