Conversation
|
@kolobus https://github.com/KomodoPlatform/dPoW/blob/dev/iguana/launch_assetchains.sh probably this one should be deleted in this PR? |
please don't |
|
@TheComputerGenie why? scripts moving to dPoW repo wasn't even announced yet and this script is outdated (and by the way not-working) duplicate now. |
|
Not sure which part is "outdated" or now broken, so I'll go back to my hole now |
|
@TheComputerGenie probably you mixed dPOW and komodo (daemon) repositories or not checked script by link in my comment to which you've reffered, I'm not sure.
https://github.com/KomodoPlatform/dPoW/blob/dev/iguana/launch_assetchains.sh is outdated because https://github.com/kolobus/dPoW/blob/dev/iguana/assets.sh doing same thing
https://github.com/KomodoPlatform/dPoW/blob/dev/iguana/launch_assetchains.sh is not working because tilda inside ~ of "" so it's not parsing correct: https://github.com/KomodoPlatform/dPoW/blob/dev/iguana/launch_assetchains.sh#L8 |
|
We should first implement and merge new scripts (m_notary replacement is also coming) and after that I'll cover deleting all old stuff and updating documents. Otherwise a lot of questions will be. |
|
Can we implement general config like above in this iteration, @tonymorony ? |
I'm not about old stuff. I'm about script which was merged in this PR #124 ...
It looks like we reinventing this one: |
|
I guess we are paying too much attention to all of these scripts. My offer is to make something like "base version". Mean, p.s. we can improove these scripts infinitely, but as i guess main purpose of these scripts is to allow everyone "quick start" and learn how the things working. after op is understand how it's working - he definitely will write his own version with improvements needed by him. just an example, i can offer following:
|
iguana/assets.sh
Outdated
| @@ -0,0 +1,39 @@ | |||
| #!/bin/bash | |||
There was a problem hiding this comment.
| #!/bin/bash | |
| #!/usr/bin/env bash |
iguana/assets.sh
Outdated
| seed_ip=`getent hosts zero.kolo.supernet.org | awk '{ print $1 }'` | ||
| komodo_binary="$HOME/komodo/src/komodod" | ||
| cli_binary="$HOME/komodo/src/komodo-cli" | ||
| delay=20 |
There was a problem hiding this comment.
| delay=20 | |
| delay=${delay:-20} |
There was a problem hiding this comment.
Thanks for hint. It's moved to config in newer version
Deleting not working script duplicating one PRed in #127
|
I added newer versions of both scripts with fixes. Tested on both nodes but needs more attention before merging. Will also require huge manual modification for new season. pipefail commented out because it should not fail when one chain/operation failed. |
| # unlock any locked utxos. This will unlock utxos for both iguans, need a filter for address to only unlock the pubkey you need to restart. | ||
| komodo-cli lockunspent true `komodo-cli listlockunspent | jq -c .` | ||
| # unlock any locked utxos. This will unlock utxos for both iguans, need a filter for address to only unlock the pubkey you need to restart. | ||
| komodo-cli lockunspent true `komodo-cli listlockunspent | jq -c .` |
There was a problem hiding this comment.
This should use komodo_binary variable as well.
There was a problem hiding this comment.
No changes here. That’s an old script. My editor fixed white spaces there and commited it, sorry, my mistake
There was a problem hiding this comment.
It's not about whitespaces ... it's about komodo-cli binary. Script uses system-wide komodo-cli binary, but should use komodo_binary variable.
It should be:
$komodo_binary lockunspent true `komodo-cli listlockunspent | jq -c .`
instead of:
komodo-cli lockunspent true `komodo-cli listlockunspent | jq -c .`
There was a problem hiding this comment.
That’s an old script not related to this PR. I will remove that from commit ASAP
There was a problem hiding this comment.
Please, keep this spaces fix in this PR. Editor insists on this fix :) Thanks.
| sleep 3 | ||
|
|
||
| # TODO: Need to get some seeds for both networks. | ||
| curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"178.128.93.117\"}" # lukechilds_AR |
There was a problem hiding this comment.
Also, good to change this bunch of curl calls on something like this:
declare -a seeds_mainnet=(178.128.93.117 67.207.94.69)
for seed_ip in "${seeds_mainnet[@]}"
do
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"${seed_ip}\"}"
done
|
Isn’t it different servers or at min different users? Both passphrases should never be in a same file |
yes, you are absolutely right. that was my bad, that's why i deleted comment right after i posted it. all is ok in that part. sorry for false alarm. |
Replaces
assetchainsscript,fiat-cliscript from Komodo repo and old foldersfiatandacthere. Also replaces m_notary_* manning scripts with single one.Old scripts can be removed only after instructing NNs with new scripts and fixing docs.
Possible improvements:
1. Single~/config.nnto define: pubkey, binary paths, delay, wallet passphrase file (?), seed ip.2.
jqto read json file instead of separate python scripts.