This is an automated email from the ASF dual-hosted git repository.
toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
The following commit(s) were added to refs/heads/master by this push:
new 9fed200 Pass password directly as argument
9fed200 is described below
commit 9fed20087e1cf189976100bd4a61b354a1fc85c0
Author: Antoine Toulme <[email protected]>
AuthorDate: Tue Dec 15 21:08:48 2020 -0800
Pass password directly as argument
---
eth-faucet/README.md | 10 ++++++++--
.../main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt | 6 +-----
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/eth-faucet/README.md b/eth-faucet/README.md
index dab109b..66ad8ab 100644
--- a/eth-faucet/README.md
+++ b/eth-faucet/README.md
@@ -14,9 +14,15 @@ The faucet will top up their accounts up to to max balance
that is permitted.
## Running locally
-Start the faucet with the main method in `FaucetApplication`.
+Start the faucet with the script in the distribution `eth-faucet`.
-When the system starts, enter the password for your wallet. If it is the first
time the application runs, the wallet is created.
+You will need to pass in a wallet password.
+
+```
+$> ./eth-faucet --wallet.password=changeit
+```
+
+If it is the first time the application runs, the wallet is created.
Navigate to localhost:8080 and sign in using github.
diff --git
a/eth-faucet/src/main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt
b/eth-faucet/src/main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt
index d5ea7dc..1f01a8e 100644
--- a/eth-faucet/src/main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt
+++ b/eth-faucet/src/main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt
@@ -108,11 +108,7 @@ class FaucetApplication {
fun main(args: Array<String>) {
Security.addProvider(BouncyCastleProvider())
- println("Please enter your wallet password:")
- val scanner = Scanner(System.`in`)
- val password: String = scanner.next()
- scanner.close()
- runApplication<FaucetApplication>(*args, "--wallet.password=$password")
+ runApplication<FaucetApplication>(*args)
}
@Component("htmlConfig")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]