delvingbitcoin

Libbitcoin for Core people

Libbitcoin for Core people

Original Postby andrewtoth

Posted on: December 2, 2024 20:17 UTC

The process of validation for input scripts is contingent upon the existence of the prevout.

Failure in this context occurs when the prevout is non-existent, highlighting a critical dependency in the validation mechanism. During the execution phase, specifically within block.connect, a query is initiated for the output. This particular operation is characterized by its lack of sequential order and is executed concurrently across multiple blocks. Despite the concurrent nature of this operation, concerns are raised regarding the necessity of having a predefined order. The crux of this issue lies in the temporal aspect of transaction storage; if the transaction containing the prevout has not yet been recorded in the system at the time of the check, the verification process will result in failure, regardless of the actual existence of the prevout. This scenario underscores a potential flaw or oversight in the current validation strategy, suggesting a need for revisiting the sequence and timing with which transactions, and specifically prevouts, are stored and verified within the system.