Skip to content

Can RollForward.tip ever be 'origin'? #302

Answered by KtorZ
mkazlauskas asked this question in Q & A
Discussion options

You must be logged in to vote

It can't. The only reason it's specified as such is because the type is reused in some other places where origin is a possible case. This should have been modeled as two different types but since I am also relying on input-output's codebase for some parts of the testing (reusing arbitrary generators for property-based testing), I needed to play along and keep that. There are a few other "inconsistency" like this one in the JSON schema which are a bit annoying and stem mainly from the underlying ledger/consensus Haskell representations.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mkazlauskas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q & A
Labels
None yet
2 participants