fix: take the LeafIndex changes from mmr and use it #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
AB#9551
unit test and demo output:
banks:go-datatrails-demos robin$ ta test:unit
{"type":"run_test","name":"TestMain"}
{"type":"end_test","name":"TestMain","result":"PASS"}
{"type":"status","result":"PASS"}
{"type":"output","data":"coverage: [no statements]"}
{"type":"summary","name":"github.com/datatrails/go-datatrails-demos/consistency","result":"ok","duration":1226000000}
{"type":"run_test","name":"TestCompletenessDemo"}
{"type":"end_test","name":"TestCompletenessDemo","result":"PASS","duration":500000000}
{"type":"status","result":"PASS"}
{"type":"coverage","coverage_percentage":30.8}
{"type":"summary","name":"github.com/datatrails/go-datatrails-demos/completeness","result":"ok","duration":1749000000,"coverage_percentage":30.8}
{"type":"run_test","name":"TestIntegrityDemo"}
{"type":"end_test","name":"TestIntegrityDemo","result":"PASS","duration":420000000}
{"type":"status","result":"PASS"}
{"type":"coverage","coverage_percentage":44.4}
{"type":"summary","name":"github.com/datatrails/go-datatrails-demos/integrity","result":"ok","duration":1670000000,"coverage_percentage":44.4}
{"type":"run_test","name":"TestLogVersion0Hash"}
{"type":"run_test","name":"TestLogVersion0Hash/positive_(kat)"}
{"type":"end_test","name":"TestLogVersion0Hash","result":"PASS"}
{"type":"end_test","name":"TestLogVersion0Hash/positive_(kat)","result":"PASS","indent":1}
{"type":"status","result":"PASS"}
{"type":"coverage","coverage_percentage":5.9}
{"type":"summary","name":"github.com/datatrails/go-datatrails-demos/logverification","result":"ok","duration":1238000000,"coverage_percentage":5.9}
banks:go-datatrails-demos robin$ ta demos:integrity
Event included on merkle log: true
banks:go-datatrails-demos robin$ ta demos:completeness
Complete List of events included on merkle log