-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: increase simulation likelihood of low probability events (#68)
* feat: add self-transfers to simulation * feat: add GenerateReceivingKeys, FlushToPublic, and SelfTransfer to sim * feat: add zero-transaction to simulation * feat: add simulation action
- Loading branch information
Showing
13 changed files
with
799 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Simulation | ||
on: | ||
workflow_dispatch: | ||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: -D warnings | ||
RUST_BACKTRACE: full | ||
jobs: | ||
simulation: | ||
name: Simulation (${{ matrix.os }}) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
agents: | ||
- 1 | ||
- 2 | ||
- 3 | ||
- 10 | ||
- 100 | ||
rounds: | ||
- 10 | ||
- 100 | ||
- 1000 | ||
- 10000 | ||
os: | ||
- ubuntu-latest | ||
channel: | ||
- nightly | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: rustup update ${{ matrix.channel }} --no-self-update && rustup default ${{ matrix.channel }} | ||
- run: cargo run --package manta-pay --all-features --release --bin simulation ${{ matrix.agents }} ${{ matrix.rounds }} 10 100000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.