Comments (1)
Duplicate keys are not allowed in none of the maps in cbor, simply because the mapping must be unique from keys to values. The difference is in some cases we fail hard on duplicates while in others we discard the duplicate mapping from the map. It is a bit unfortunate, but it has to do with the limitation of current implementation of serialization that we have. Although we do have strong plans on fixing it throughout all of the ledger types.
As far as the tooling is concerned, IMHO it should not allow duplicate keys, because that is the ultimate goal. That being said, I am totally for documenting this discrepancy for every map/set occurrence in the cddl
from cardano-ledger.
Related Issues (20)
- Fix some mistakes in the Babbage formal spec
- Add missing `NoThunks` instances to `ConwayUtxowPredFailure` and `ConwayUtxoPredFailure`
- BUG - node is not validating UTXO integrity with input token combined with mints HOT 6
- Add an AccountState ledger state query
- Specify numeric ranges explicitly in CDDL HOT 1
- No tag for `plutus_v3_script` in `script` cddl type? HOT 1
- Add a CI status check to prevent merging PRs that already have merges in them HOT 1
- Speed up CI by allowing tests to start as soon as the build for the same ghc version has finished
- document: how to calculate script integrity hash for Plutus v3 HOT 3
- Ensure DRep thresholds are ignored in the bootstrap period
- Write tests for voting behavior
- Move `DelegateeNotRegisteredDELEG` from `CERTS` to `DELPL` in Shelley
- Ensure Imp tests have realistic initial SPO thresholds
- Optional Datum for PlutusV3: CIP-0069 HOT 1
- `translateUpperBoundForPlutusScripts` clarification HOT 1
- DRep pulser property test needs fixing HOT 1
- Fix "Full NewEpochState" test due to `Cannot find futurePParams in env` HOT 1
- Create a SPO stake distribution query for voting
- DRep "expiry" is incremented even for inactive DReps HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cardano-ledger.