From 5ff6cc24ee08dd65dd3d93cb64315b60c9034399 Mon Sep 17 00:00:00 2001 From: Nex Date: Sat, 7 Mar 2020 13:14:49 +0800 Subject: [PATCH] Update Block, remove 'index', add 'transaction_count' --- bdledger/api/common.proto | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bdledger/api/common.proto b/bdledger/api/common.proto index 3ad65e0..47150ba 100644 --- a/bdledger/api/common.proto +++ b/bdledger/api/common.proto @@ -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字节的交易哈希的数组,或为空 -} \ No newline at end of file +}