Merge "Keep track of and persist largest AttributionChainId." into sc-dev