Update Block, remove 'index', add 'transaction_count'

This commit is contained in:
Nex
2020-03-07 13:14:49 +08:00
parent bbe9b2123d
commit 5ff6cc24ee

View File

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