Add Block.Creator and Block.Nonce

This commit is contained in:
Nex
2020-04-21 00:46:04 +08:00
parent 9d0a08fe5d
commit 652b633e71
4 changed files with 47 additions and 9 deletions

View File

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