Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Mockchain properties #108

Closed
wants to merge 9 commits into from
Closed

WIP: Mockchain properties #108

wants to merge 9 commits into from

Conversation

qnikst
Copy link
Contributor

@qnikst qnikst commented Dec 26, 2018

This is a work in progress branch, for storing early discussions about the mockchain testing.

Ledger {
unspent_outputs: genesis,
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I would have modified the new() function to take the genesis state. I don't see a reason not to provide the genesis state.

Introduce new tests that can be used for testing
any ledger that have required traits implemented.

The tests do not require any special properties
from the blockchain, other than listed in the
blockcfg::properties. More involved tests that
care about the structure may be written latter.
@@ -309,6 +321,7 @@ impl std::fmt::Display for Error {
}
Error::InvalidSignature(_, _, _) => write!(f, "Input is not signed properly"),
Error::InvalidTxSignature(_) => write!(f, "Transaction was not signed"),
Error::TransactionSumIsNonZero(_, _) => write!(f, "Transaction is not zero"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message leaves out the "sum". Could it be named more concisely: NonZeroBalance?

@qnikst
Copy link
Contributor Author

qnikst commented Jan 15, 2019

code has moved to rust-cardano repo, closing

@qnikst qnikst closed this Jan 15, 2019
@NicolasDP NicolasDP deleted the mockchain-prop branch March 28, 2019 09:14
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.

None yet

3 participants