1. Add new TxLedger APIs: BlockCount, GetBlocks

2. Update AcChain APIs
3. Change hashes from 32 bytes to 20 bytes
This commit is contained in:
Nex
2018-12-11 15:57:06 +08:00
parent 07f1e05962
commit def8e3feab
3 changed files with 402 additions and 33 deletions

View File

@@ -39,7 +39,7 @@ message Block {
uint64 number = 1; // 区块号,当区块处于待确认状态时为`null`
bytes hash = 2; // 区块的哈希,当区块处于待确认状态时为`null`
bytes parent_hash = 3; // 父区块的哈希
bytes witness = 4; // 见证者账户地址
repeated bytes witnesses = 4; // 见证者账户地址的数组
uint64 timestamp = 5; // 区块产生时的UNIX时间戳
uint64 size = 6; // 区块大小的字节数
bytes transactions_root = 7; // 区块的事务树根