Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update receiptroot.rst #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ch4/receiptroot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
若我们取出收据树中的一个节点并放大来仔细查看,则一个节点就是一次交易的收据。
交易 **收据** (transaction receipt)是一个键值对映射,它的 **键** 是交易的编号,它的 **值** 是 RLP 编码过的四个域:交易后的状态、交易实际花费的交易费、交易产生的日志集合、日志的索引结构组成。

在实际应用中,在本区块内的数笔交易都顺利执行完毕后,也产生了数笔相对应的交易收据,由 MPT 树组织起来,计算得出根哈希值,称为receiptsRoot **交易树** ,该值将进入区块头部被永久保留。所有收据和对应着收据的日志将被存于世界各地以太坊节点计算机的数据库里,方便客户进行查询。
在实际应用中,在本区块内的数笔交易都顺利执行完毕后,也产生了数笔相对应的交易收据,由 MPT 树组织起来,计算得出根哈希值,称为receiptsRoot **收据树** ,该值将进入区块头部被永久保留。所有收据和对应着收据的日志将被存于世界各地以太坊节点计算机的数据库里,方便客户进行查询。