gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
https://gno.land/
Other
841 stars 342 forks source link

chore: sandbox sentry nodes #2438

Closed albttx closed 1 hour ago

albttx commented 5 days ago

Here is a sandbox to works on sentry nodes. see https://github.com/gnolang/gno/issues/2430

Network is 3 validators (gno1, gno2, gno3) and 2 sentry nodes (gno3-sentry-1, gno3-sentry-2).

graph TD
    gno1[Validator: gno1]
    gno2[Validator: gno2]
    gno3[Validator: gno3]
    gno3-sentry-1[Sentry Node: gno3-sentry-1]
    gno3-sentry-2[Sentry Node: gno3-sentry-2]

    gno2 --> gno1
    gno3-sentry-1 --> gno1
    gno3-sentry-2 --> gno1
    gno3 --> gno3-sentry-1
    gno3 --> gno3-sentry-2

If you need to hack on the gnoland code, download this Dockerfile in root of the gnolang/gno repo.

and run

docker build -t ghcr.io/gnolang/gno/gnoland:master --target gnoland .

# restart the docker compose.
docker compose down
docker compose up -d
codecov[bot] commented 5 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 54.68%. Comparing base (4f16ad3) to head (7fbb2f8). Report is 3 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2438 +/- ## ========================================== - Coverage 54.68% 54.68% -0.01% ========================================== Files 583 583 Lines 78503 78503 ========================================== - Hits 42929 42926 -3 - Misses 32365 32368 +3 Partials 3209 3209 ``` | [Flag](https://app.codecov.io/gh/gnolang/gno/pull/2438/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | Coverage Δ | | |---|---|---| | [misc/autocounterd](https://app.codecov.io/gh/gnolang/gno/pull/2438/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `0.00% <ø> (ø)` | | | [misc/genproto](https://app.codecov.io/gh/gnolang/gno/pull/2438/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `0.00% <ø> (ø)` | | | [misc/genstd](https://app.codecov.io/gh/gnolang/gno/pull/2438/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `73.90% <ø> (ø)` | | | [misc/goscan](https://app.codecov.io/gh/gnolang/gno/pull/2438/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `0.00% <ø> (ø)` | | | [misc/logos](https://app.codecov.io/gh/gnolang/gno/pull/2438/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `17.38% <ø> (-0.31%)` | :arrow_down: | | [misc/loop](https://app.codecov.io/gh/gnolang/gno/pull/2438/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `0.00% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

albttx commented 5 days ago

this is working fine, feel free to merge it if you want to have an example, or feel free to close it :)

cc: @moul @zivkovicmilos

moul commented 2 days ago

I suggest moving this good example to either the hackerspace repository or a dedicated repository for validators to share snippets and tools.

albttx commented 1 hour ago

closing for: https://github.com/gnolang/hackerspace/pull/71