Fix bug where the defensive copy loses the computed leaf paths. (#400)

This commit was merged in pull request #400.
This commit is contained in:
2023-07-21 18:42:07 -05:00
committed by GitHub
parent 9bc81a3f68
commit c72b45fab4
+3 -1
View File
@@ -90,7 +90,9 @@ func (p *ParamsWithMutex) CopyParams() Params {
p.RLock()
defer p.RUnlock()
return p.Params.Copy()
copy := p.Params.Copy()
copy.ComputeWatchedAddressesLeafPaths()
return copy
}
// Args bundles the arguments for the state diff builder