1/x @Liquid_BTC Liquid Network appears to have experienced a consensus divergence at block 4,050,336. Approximately 13 minutes later, a 3,996.01834922 L-BTC peg-out was recorded on the branch that continued beyond the divergent block.
Our preliminary analysis, informed by the findings shared by @stutxo, suggests that a potential issue in the rangeproof-verification cache mechanism in certain Elements Core builds may have contributed to the incident:
Previously, the cache key for successful rangeproof verifications was derived only from the rangeproof and value commitment. It did not include the asset commitment or scriptPubKey, although both are inputs to full verification.
This could allow different verification contexts to map to the same cache entry. After a valid context populated the cache, a modified context might hit that entry and return true without undergoing full verification.
A recent patch adds the missing inputs to the cache key:
If reachable during consensus validation, this behavior could cause nodes with different cache states or implementations to reach different conclusions about the same transaction.
Link: https://t.co/hGf1ZxSISy
Link: https://t.co/q63HEFBZwX
