diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-05-02 18:52:51 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-05-04 16:42:43 +0800 |
commit | 8a28408616cab76bf756170a4f39025c821e4d21 (patch) | |
tree | 3211df8c26ac55f4743827edf7af461fb233a3e1 /cmd/puppeth/wizard_faucet.go | |
parent | e1dc7ece624a2f539b71f1dfb5901047f7a9f214 (diff) | |
download | dexon-8a28408616cab76bf756170a4f39025c821e4d21.tar dexon-8a28408616cab76bf756170a4f39025c821e4d21.tar.gz dexon-8a28408616cab76bf756170a4f39025c821e4d21.tar.bz2 dexon-8a28408616cab76bf756170a4f39025c821e4d21.tar.lz dexon-8a28408616cab76bf756170a4f39025c821e4d21.tar.xz dexon-8a28408616cab76bf756170a4f39025c821e4d21.tar.zst dexon-8a28408616cab76bf756170a4f39025c821e4d21.zip |
cmd/faucet, cmd/puppeth: support multi-tiered faucet
Diffstat (limited to 'cmd/puppeth/wizard_faucet.go')
-rw-r--r-- | cmd/puppeth/wizard_faucet.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/puppeth/wizard_faucet.go b/cmd/puppeth/wizard_faucet.go index f3fd7c2a1..66ec98c73 100644 --- a/cmd/puppeth/wizard_faucet.go +++ b/cmd/puppeth/wizard_faucet.go @@ -44,6 +44,7 @@ func (w *wizard) deployFaucet() { host: client.server, amount: 1, minutes: 1440, + tiers: 3, } } infos.node.genesis, _ = json.MarshalIndent(w.conf.genesis, "", " ") @@ -68,6 +69,13 @@ func (w *wizard) deployFaucet() { fmt.Printf("How many minutes to enforce between requests? (default = %d)\n", infos.minutes) infos.minutes = w.readDefaultInt(infos.minutes) + fmt.Println() + fmt.Printf("How many funding tiers to feature (x2.5 amounts, x3 timeout)? (default = %d)\n", infos.tiers) + infos.tiers = w.readDefaultInt(infos.tiers) + if infos.tiers == 0 { + log.Error("At least one funding tier must be set") + return + } // Accessing GitHub gists requires API authorization, retrieve it if infos.githubUser != "" { fmt.Println() |