Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions resources/charts/bitcoincore/charts/lnd/templates/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,16 @@ spec:
- |
rm -rf /root/.lnd/data/chain

{{- if .Values.cipherSeedMnemonic }}
PHRASE='{{ .Values.cipherSeedMnemonic | toJson }}'
echo "{\"cipher_seed_mnemonic\":$PHRASE}" > /tmp/genseed.json
{{- else }}
until curl --silent --insecure https://localhost:8080/v1/genseed > /tmp/genseed.json; do
sleep 5
done

PHRASE=$(cat /tmp/genseed.json | grep -o '\[[^]]*\]')
{{- end }}

until curl --fail --insecure https://localhost:8080/v1/initwallet --data "{\"macaroon_root_key\":\"{{ .Values.macaroonRootKey }}\", \"wallet_password\":\"AAAAAAAAAAA=\", \"cipher_seed_mnemonic\": $PHRASE}"; do
sleep 5
Expand Down
2 changes: 2 additions & 0 deletions resources/charts/bitcoincore/charts/lnd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ affinity: {}
macaroonRootKey: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
adminMacaroon: 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6

cipherSeedMnemonic: []

baseConfig: |
norest=false
restlisten=0.0.0.0:8080
Expand Down