Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Move TOP=true param. to config.json #285

Closed
Gr33nDrag0n69 opened this issue Sep 30, 2016 · 7 comments
Closed

Move TOP=true param. to config.json #285

Gr33nDrag0n69 opened this issue Sep 30, 2016 · 7 comments
Assignees

Comments

@Gr33nDrag0n69
Copy link

Gr33nDrag0n69 commented Sep 30, 2016

In order to activate this functionality on the lisk client. The parameter must be pass to nodejs from command line. It would be great if this parameter could be moved to the config.json file with a false value by default. It would prevent having to modify lisk.sh every time I update to enable this functionality for lisk-explorer. (Or any other 3rd party apps wanting to access this functionality.)

@Isabello
Copy link
Contributor

Can you provide some detail about this flag and what it does?

On Sep 30, 2016 17:11, "Gr33nDrag0n" notifications@github.com wrote:

In order to activate this functionality on the lisk client. The parameter
must be pass to nodejs from command line. It would be great if this
parameter could be moved n the config.json file with a false value by
default. It would prevent having to modify lisk.sh every time I update to
enable this functionality for lisk-explorer. (Or any other 3rd party apps
wanting to access this functionality.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#285, or mute the thread
https://github.com/notifications/unsubscribe-auth/APzFsKMe65I0KvCmOA_S_ntJebvbibnoks5qvYj4gaJpZM4KLjpR
.

@Gr33nDrag0n69
Copy link
Author

In order for this page of lisk-explorer to work as expected, I need to do the following modification in lisk.sh each upgrade. I don't wan't to use a sed replace for it since I feel that this particulatr line starting lisk app.js can be modified anytime. Using a jq command would make it simpler and cleaner.

https://testnet-explorer.lisknode.io/topAccounts

vi lisk.sh
#--------------------------------------------------------------------
# In start_lisk() function, replace
forever start -u lisk -a -l $LOG_FILE --pidFile $PID_FILE -m 1 app.js -c $LISK_CONFIG &> /dev/null
# By
TOP=true forever start -u lisk -a -l $LOG_FILE --pidFile $PID_FILE -m 1 app.js -c $LISK_CONFIG &> /dev/null
#--------------------------------------------------------------------

@karmacoma
Copy link
Contributor

@Gr33nDrag0n69: Thanks for your suggestion. Yes we will implement. I agree it would better to enable / disable this option within config.json, rather than as an environment variable.

@Gr33nDrag0n69
Copy link
Author

@karmacoma thanxs greatly appreciated. It's the only option I know that can only be enabled from env. var. I don't know if there is others options but maybe check for that too while being at it. Moving all of them at once would probably save some time later.

@ghost
Copy link

ghost commented Oct 2, 2016

Duplicated. I have already reported that one before
#234

But there is flag - Won't fix.

@karmacoma
Copy link
Contributor

@karek314 Okay this issue was closed, and should not have been. We will fix here now. Thanks 👍

@Isabello Isabello self-assigned this Oct 31, 2016
@Isabello
Copy link
Contributor

I will resolve this shortly.

karmacoma pushed a commit that referenced this issue Nov 2, 2016
- Do not apply or undo transaction when syncing (before processing).
- Fixed #293. Expected type string but found type null @Isabello.
- Closed #285. Moved TOP=true param. to config.json @Isabello.
- Fixed state filter on GET /api/peers/ endpoint.
- Using extend consistently for all object extension.
- Handling NaN port in Peers.prototype.inspect.
- Revised and improved schema validations.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants