Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# measure-tip-sync-speed
# measure-tip-sync

Measures Celestia Mocha testnet sync-to-tip speed by spinning up a full node on Digital Ocean.
Measures Celestia Mocha testnet sync-to-tip time by spinning up a full node on Digital Ocean.

## Prerequisites

Expand All @@ -17,20 +17,20 @@ Measures Celestia Mocha testnet sync-to-tip speed by spinning up a full node on
3. **Install the tool**

```bash
go install ./tools/measure-tip-sync-speed
go install ./tools/measure-tip-sync
```

## Usage

```bash
# Required: specify your SSH private key
go run ./tools/measure-tip-sync-speed -k ~/.ssh/id_ed25519
go run ./tools/measure-tip-sync -k ~/.ssh/id_ed25519

# Multiple iterations + cooldown
go run ./tools/measure-tip-sync-speed -k ~/.ssh/id_ed25519 -n 20 -c 30
go run ./tools/measure-tip-sync -k ~/.ssh/id_ed25519 -n 20 -c 30

# Test specific branch
go run ./tools/measure-tip-sync-speed -k ~/.ssh/id_ed25519 -b my-branch
go run ./tools/measure-tip-sync -k ~/.ssh/id_ed25519 -b my-branch
```

## Flags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func main() {
)

cmd := &cobra.Command{
Use: "measure-tip-sync-speed",
Short: "Measure Celestia Mocha testnet sync-to-tip speed",
Use: "measure-tip-sync",
Short: "Measure Celestia Mocha testnet sync-to-tip time",
RunE: func(cmd *cobra.Command, args []string) error {
return run(cmd.Context(), sshKeyPath, iterations, cooldown, branch, noCleanup, skipBuild)
},
Expand Down Expand Up @@ -181,7 +181,7 @@ func createDroplet(ctx context.Context, client *godo.Client, name string, sshKey
SSHKeys: []godo.DropletCreateSSHKey{
{ID: sshKey.ID, Fingerprint: sshKey.Fingerprint},
},
Tags: []string{"celestia-sync-speed", sshKey.Name},
Tags: []string{"celestia-tip-sync", sshKey.Name},
}

droplet, _, err := client.Droplets.Create(ctx, req)
Expand Down
Loading