Add Transaction.block_timestamp

This commit is contained in:
Nex
2020-06-15 07:29:47 +08:00
parent eb604852a8
commit c32a9b8ce7

View File

@@ -17,16 +17,17 @@ enum TransactionType {
message Transaction { message Transaction {
bytes block_hash = 1; // 事务所在的区块的哈希,当事务处于待确认状态时为`null` bytes block_hash = 1; // 事务所在的区块的哈希,当事务处于待确认状态时为`null`
uint32 index = 2; // 事务在区块中的位置 index当事务处于待确认状态时为`null` int64 block_timestamp = 2; // 事务所在的区块产生时的 UNIX 时间戳,单位为秒
bytes hash = 3; // 事务的哈希 uint32 index = 3; // 事务在区块中的位置 index当事务处于待确认状态时为`null`
TransactionType type = 4; // 事务类型 bytes hash = 4; // 事务的哈希
bytes from = 5; // 发送账户地址 TransactionType type = 5; // 事务类型
uint64 nonce = 6; // 这条事务之前发送者所发送的事务数量 bytes from = 6; // 发送账户地址
bytes to = 7; // 接收账户地址,或者调用的合约地址,或者`null`如为合约创建 uint64 nonce = 7; // 这条事务之前发送者所发送的事务数量
bytes data = 8; // 数据或合约代码 bytes to = 8; // 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
bytes v = 9; // ECDSA recovery id bytes data = 9; // 数据或合约代码
bytes r = 10; // ECDSA signature r bytes v = 10; // ECDSA recovery id
bytes s = 11; // ECDSA signature s bytes r = 11; // ECDSA signature r
bytes s = 12; // ECDSA signature s
} }
message Block { message Block {