This commit is contained in:
Nex
2020-04-05 11:40:37 +08:00
parent 9f8985cd33
commit cb5dd94140

View File

@@ -33,13 +33,13 @@ message Transaction {
} }
message Block { message Block {
bytes hash = 1; // 区块的哈希,当区块处于待确认状态时为`null` bytes hash = 1; // 区块的哈希,当区块处于待确认状态时为`null`
repeated bytes parent_hashes = 2; // 父区块的哈希 repeated bytes parent_hashes = 2; // 父区块的哈希
repeated bytes witnesses = 3; // 见证者账户地址 repeated bytes witnesses = 3; // 见证者账户地址
int64 timestamp = 4; // 区块产生时的 UNIX 时间戳,单位为秒 int64 timestamp = 4; // 区块产生时的 UNIX 时间戳,单位为秒
uint64 size = 5; // 区块大小的字节数 uint64 size = 5; // 区块大小的字节数
uint32 transaction_count = 6; // 区块包含的事务数量 uint32 transaction_count = 6; // 区块包含的事务数量
bytes transactions_root = 7; // 区块的事务默克尔树根 bytes transactions_root = 7; // 区块的事务默克尔树根
repeated Transaction transactions = 8; // 事务对象的数组,或为空 repeated Transaction transactions = 8; // 事务对象的数组,或为空
repeated bytes transaction_hashes = 9; // 20字节的交易哈希的数组或为空 repeated bytes transaction_hashes = 9; // 20字节的交易哈希的数组或为空
} }