In PublishState a check is done to see if the current ClaimsTreeRoot is different than the ClaimsTreeRoot used in the published state; if so, the current ClaimsTreeRoot is added to the RootsTree.
If any further function fails, the next time PublishState is called, adding the ClaimsTreeRoot to the RootsTree will fail because the leaf will already be there.
In the Issuer:
In
PublishState
a check is done to see if the currentClaimsTreeRoot
is different than theClaimsTreeRoot
used in the published state; if so, the currentClaimsTreeRoot
is added to theRootsTree
.If any further function fails, the next time
PublishState
is called, adding theClaimsTreeRoot
to theRootsTree
will fail because the leaf will already be there.