Fix bug where the defensive copy loses the computed leaf paths.

This commit is contained in:
Thomas E Lackey 2023-07-21 18:41:18 -05:00
parent 1b72d2f737
commit 29000d9404

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