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

This commit is contained in:
Thomas E Lackey 2023-07-21 18:42:07 -05:00 committed by GitHub
parent 9bc81a3f68
commit c72b45fab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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