mirror of
https://github.com/EvernodeXRPL/sashimono.git
synced 2026-07-29 01:50:47 +00:00
Minor logging and conversion fixes (#379)
This commit is contained in:
@@ -2104,6 +2104,8 @@ WantedBy=timers.target" >/etc/systemd/system/$EVERNODE_AUTO_UPDATE_SERVICE.timer
|
||||
|
||||
local min_reputation_xah_requirement=$(echo "$MIN_REPUTATION_COST_PER_MONTH*$MIN_OPERATIONAL_DURATION + 1.2" | bc)
|
||||
local lease_amount=$(jq ".xrpl.leaseAmount | select( . != null )" "$MB_XRPL_CONFIG")
|
||||
# Format lease amount since jq gives it in exponential format.
|
||||
local lease_amount=$(awk -v lease_amount="$lease_amount" 'BEGIN { printf("%f\n", lease_amount) }' </dev/null)
|
||||
local min_reputation_evr_requirement=$(echo "$lease_amount*24*30*$MIN_OPERATIONAL_DURATION" | bc)
|
||||
|
||||
local need_xah=$(echo "$min_reputation_xah_requirement > 0" | bc -l)
|
||||
@@ -2131,7 +2133,7 @@ WantedBy=timers.target" >/etc/systemd/system/$EVERNODE_AUTO_UPDATE_SERVICE.timer
|
||||
! sudo -u $REPUTATIOND_USER REPUTATIOND_DATA_DIR=$REPUTATIOND_DATA node $REPUTATIOND_BIN prepare && echo "Error preparing account" && return 1
|
||||
|
||||
if [ "$upgrade" == "0" ]; then
|
||||
echomult "\n\nIn order to register in reputation and reward system you need to have $min_reputation_evr_requirement EVR balance in your host account. Please deposit the required registration fee in EVRs.
|
||||
echomult "\n\nIn order to register in reputation and reward system you need to have $min_reputation_evr_requirement EVR balance in your host account. Please deposit the required amount in EVRs.
|
||||
\nYou can scan the provided QR code in your wallet app to send funds."
|
||||
|
||||
while true; do
|
||||
|
||||
@@ -172,7 +172,7 @@ class Setup {
|
||||
const moment = await hostClient.getMoment();
|
||||
|
||||
if (!repInfo) {
|
||||
console.log('You haven\'t opted in for reputation.');
|
||||
console.log('You don\'t have reputation info yet.\n Make sure you have opted-in. If opted-in, wait until your host reporting for first reputation.');
|
||||
return;
|
||||
}
|
||||
else if (!repInfo.moment) {
|
||||
|
||||
Reference in New Issue
Block a user