-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faucet don't give a second chance #2210
Conversation
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Codecov Report
@@ Coverage Diff @@
## develop #2210 +/- ##
==========================================
- Coverage 95.42% 95.4% -0.02%
==========================================
Files 109 109
Lines 2295 2287 -8
Branches 116 114 -2
==========================================
- Hits 2190 2182 -8
Misses 92 92
Partials 13 13
|
.aws/faucet.sh
Outdated
ACCOUNT_INFO=$(./gaiacli query account ${DESTINATION} --chain-id ${NETWORK} --trust-node --home .) | ||
dt=$(date '+%d/%m/%Y %H:%M:%S'); | ||
if [[ ${ACCOUNT_INFO} == *"auth/Account"* ]]; then | ||
echo "$dt - $DESTINATION already funded, bye greedy b****rd!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol i don't know about this b****rd
@@ -15,7 +15,7 @@ NODEID=$(./gaiad tendermint show-node-id --home .) | |||
|
|||
# Create our main account and add it to the genesis with a lot of money | |||
echo ${PASSWORD} | ./gaiacli keys add ${ACCOUNT} --home . > account_address.log | |||
./gaiad add-genesis-account $(./gaiacli keys show ${ACCOUNT} --home . --address) 100000000000000000stake,999000000000photino,123123123123cococoin --home . | |||
./gaiad add-genesis-account $(./gaiacli keys show ${ACCOUNT} --home . --address) 1000000000000000000000stake,100000000000000000000photino,123123123123123123cococoin --home . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not 9999999999999999999999999999999 so we don't run out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
18446744073709551615 should be the biggest available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol ok why not that number then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are already overflowing XD:
1000000000000000000000
18446744073709551615
So probably we already have everything we can
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, on SDK I found out big integers are used so we have way more than 64 bits, as soon as I'm sure about the number of bits I'll update this number
.aws/faucet.sh
Outdated
AMOUNTP=5photino | ||
AMOUNTC=1cococoin | ||
AMOUNTP=5000000photino | ||
AMOUNTC=123123cococoin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use pesocoin 🇨🇱
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
next coin will be that one
…ommands Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
ADDRESS=$(./gaiacli keys show ${ACCOUNT} --home . --address) | ||
echo "stakes $AMOUNTS at $DESTINATION" | ||
echo ${PASSWORD} | ./gaiacli tx send ${DESTINATION} ${AMOUNTS} --home . --from ${ADDRESS} --chain-id=${NETWORK} | ||
sleep 5s # TODO: should be smarter, check if block was created or not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smaller timeout doesn't work? @alessio this was the problem I explained
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah in this moment apparently that's the safest solution available
Co-Authored-By: sabau <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Codecov Report
@@ Coverage Diff @@
## develop #2210 +/- ##
========================================
Coverage 95.43% 95.43%
========================================
Files 109 109
Lines 2300 2300
Branches 116 116
========================================
Hits 2195 2195
Misses 92 92
Partials 13 13 |
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Description:
print date to have decent logs
Thank you! 🚀
For contributor:
CHANGELOG.md
with issue # and GitHub usernameFiles changed
in the github PR explorerFor reviewer: