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

Merged
telackey merged 1 commits from telackey/copyfix into v1.11.6-statediff-v5 2023-07-21 23:42:07 +00:00

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