1

Is transaction "status" flagged inside the block when it's mined?

Like if a transaction is mined but failed due to out of gas or not meeting contract conditions, is the transaction marked as "failed" as part of the raw hexadecimal block?

1 Answer 1

0

The transaction status is part of the transaction receipt that is stored locally by the nodes in the transaction receipt trie. The block header includes a reference to the receipt trie called the receiptsRoot which is a hash of the root node of the trie.

All transactions included in the block, failed or successful, have an impact on the block hash.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.