You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to compute the Merkle Patricia Tree's root for the receipts generated after executing all the transactions in a given block body. For an example, see the computation for the transactions root:
let root = PatriciaMerkleTree::<_,_,Keccak256>::compute_hash_from_sorted_iter(
&transactions_iter,
);
H256(root.into())
}
}
You can check how values are encoded in Ethereum's yellow paper. Similar to transactions, the key should be computed as KECCAK256(RLP(receipts_index)) and the value as tx_type (if tx_type != 0) || RLP(receipt).
The text was updated successfully, but these errors were encountered:
We need to compute the Merkle Patricia Tree's root for the receipts generated after executing all the transactions in a given block body. For an example, see the computation for the transactions root:
ethrex/crates/core/src/types/block.rs
Lines 80 to 111 in 49f0374
You can check how values are encoded in Ethereum's yellow paper. Similar to transactions, the key should be computed as
KECCAK256(RLP(receipts_index))
and the value astx_type (if tx_type != 0) || RLP(receipt)
.The text was updated successfully, but these errors were encountered: