cardano-foundation / cardano-foundation/cardano-rosetta-java

Add mock block zero data to Test Generator.

Open
#415 0 comments 0 reactions 0 assignees View on GitHub
Non Functional Requirement
Dominant language
Java
Stars
26
Forks
15
Avg merge
5d 3h
Merged PRs (30d)
2

Description

In general we would like to replace test generator in this project with a more out of the box solution and most importantly automated one in the future however for the moment it's there.

As part of: https://github.com/cardano-foundation/cardano-rosetta-java/pull/412/files

We had to make a hack that to change genesis block from -1 to 0:
```sql
UPDATE block SET number = 0 WHERE number = -1;
UPDATE transaction SET block = 0 WHERE block_hash = 'Genesis';
```

This ticket is about fixing it properly and generating a fake block 0 with a couple of "genesis transactions".

This limitation comes from the fact that nobody is starting anymore from zero within Conway other than yaci-dev-kit.

We would see this issue if now from latest node somebody starts a new test-net then we would be missing block 0.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.