Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinax-network/leap-dmlog-gen
https://github.com/pinax-network/leap-dmlog-gen
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pinax-network/leap-dmlog-gen
- Owner: pinax-network
- Created: 2023-08-24T17:53:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-04T19:40:29.000Z (about 1 year ago)
- Last Synced: 2024-04-02T16:23:34.778Z (9 months ago)
- Language: Python
- Size: 45.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deep
These scripts are used to generate and validate deep-mind logs produced by leap boot and battlefield process
## Prerequsites
* Ubuntu 20.04/22.04
* Leap with cleos and keosd
* Python
* Go## Validation process
### Boot
```bash
$ ./boot.sh
```
This will boot the nodes, set system contracts, run test actions, etc. Also the script will generate two log files:* `./run/deep-mind-x.x.x.dmlog` - deep-mind log for the entire boot/test sequence,
* `./run/deep-mind-x.x.x.expected.jsonl` - log of expected actions and dbops### Decode
```bash
$ ./decode.sh
```
This will decode deep-mind log into JSON using firehose decoder and generate `./run/deep-mind-x.x.x.dmlog.json` file### Validate
```bash
$ ./validate.sh
```
This will extract validate expected actions/dbops from `deep-mind-x.x.x.expected.jsonl` vs deep-mind produced logs## Known issues
Because there is no transaction guarantee, sometimes some transactions might not make it on block and compare script may error out. Try re-running the boot script in this case.