Skip to content

Commit

Permalink
Make funds request more delicate
Browse files Browse the repository at this point in the history
  • Loading branch information
daria305 committed Apr 22, 2024
1 parent d6ea6a2 commit ebf8387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/models/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var ParamsTool = &ParametersTool{}
type ParametersTool struct {
NodeURLs []string `default:"http://localhost:8050" usage:"API URLs for clients used in test separated with commas"`
FaucetURL string `default:"http://localhost:8088" usage:"Faucet URL used in test"`
FaucetSplitNumber int `default:"40" usage:"Number of outputs to split faucet outputs into, this determine number of txs that are sent per one faucet request. Reduce this number if not all txs are accepted due to congestion. "`
FaucetSplitNumber int `default:"20" usage:"Number of outputs to split faucet outputs into, this determine number of txs that are sent per one faucet request. Reduce this number if not all txs are accepted due to congestion. "`

AccountStatesFile string `default:"wallet.dat" usage:"File to store account states in"`
BlockIssuerPrivateKey string `default:"db39d2fde6301d313b108dc9db1ee724d0f405f6fde966bd776365bc5f4a5fb31e4b21eb51dcddf65c20db1065e1f1514658b23a3ddbf48d30c0efc926a9a648" usage:"Block issuer private key (in hex) to use for genesis account spams"`
Expand Down
4 changes: 2 additions & 2 deletions programs/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
)

const (
MaxPendingRequestsRunning = 10
MaxPendingRequestsRunning = 5
FaucetFundsAwaitTimeout = 3 * time.Minute
SelectCheckInterval = 1 * time.Second
SelectCheckInterval = 5 * time.Second
)

func faucetFundsNeededForSpamType(spamType string) bool {
Expand Down

0 comments on commit ebf8387

Please sign in to comment.