mirror of
https://github.com/guggero/chantools.git
synced 2026-08-15 12:50:52 +02:00
Fix loop assignment issue
This commit is contained in:
parent
0a517d1a75
commit
aac8a2a728
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ func fixOldChannelBackup(multiFile *chanbackup.MultiFile,
|
|||
log.Infof("Checking shachain root of %d channels, this might take a "+
|
||||
"while.", len(multi.StaticBackups))
|
||||
fixedChannels := 0
|
||||
for _, single := range multi.StaticBackups {
|
||||
for idx, single := range multi.StaticBackups {
|
||||
err := ring.CheckDescriptor(single.ShaChainRootDesc)
|
||||
switch err {
|
||||
case nil:
|
||||
|
|
@ -77,7 +77,7 @@ func fixOldChannelBackup(multiFile *chanbackup.MultiFile,
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
single.ShaChainRootDesc = baseKeyDesc
|
||||
multi.StaticBackups[idx].ShaChainRootDesc = baseKeyDesc
|
||||
fixedChannels++
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue