mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix BlockHeader is_key_block and add gen_utime, flags
This commit is contained in:
parent
179415f815
commit
8303f2c84f
3 changed files with 4 additions and 1 deletions
|
@ -208,7 +208,7 @@ blocks.shards shards:vector<ton.BlockIdExt> = blocks.Shards;
|
|||
blocks.accountTransactionId account:bytes lt:int64 = blocks.AccountTransactionId;
|
||||
blocks.shortTxId mode:# account:mode.0?bytes lt:mode.1?int64 hash:mode.2?bytes = liteServer.TransactionId;
|
||||
blocks.transactions id:ton.blockIdExt req_count:int32 incomplete:Bool transactions:vector<blocks.shortTxId> = blocks.Transactions;
|
||||
blocks.header id:ton.blockIdExt global_id:int32 version:int32 after_merge:Bool after_split:Bool before_split:Bool want_merge:Bool want_split:Bool validator_list_hash_short:int32 catchain_seqno:int32 min_ref_mc_seqno:int32 is_key_block:Bool prev_key_block_seqno:int32 start_lt:int64 end_lt:int64 vert_seqno:# prev_blocks:vector<ton.blockIdExt> = blocks.Header;
|
||||
blocks.header id:ton.blockIdExt global_id:int32 version:int32 flags:# after_merge:Bool after_split:Bool before_split:Bool want_merge:Bool want_split:Bool validator_list_hash_short:int32 catchain_seqno:int32 min_ref_mc_seqno:int32 is_key_block:Bool prev_key_block_seqno:int32 start_lt:int64 end_lt:int64 gen_utime:int53 vert_seqno:# prev_blocks:vector<ton.blockIdExt> = blocks.Header;
|
||||
//blocks.shortData header:blocks.Header transactions:blocks.Header = blocks.BlockData;
|
||||
|
||||
configInfo config:tvm.cell = ConfigInfo;
|
||||
|
|
Binary file not shown.
|
@ -4351,6 +4351,7 @@ td::Status TonlibClient::do_request(const tonlib_api::blocks_getBlockHeader& req
|
|||
header.id_ = to_tonlib_api(blk_id);
|
||||
header.global_id_ = blk.global_id;
|
||||
header.version_ = info.version;
|
||||
header.flags_ = info.flags;
|
||||
header.after_merge_ = info.after_merge;
|
||||
header.after_split_ = info.after_split;
|
||||
header.before_split_ = info.before_split;
|
||||
|
@ -4361,6 +4362,8 @@ td::Status TonlibClient::do_request(const tonlib_api::blocks_getBlockHeader& req
|
|||
header.min_ref_mc_seqno_ = info.min_ref_mc_seqno;
|
||||
header.start_lt_ = info.start_lt;
|
||||
header.end_lt_ = info.end_lt;
|
||||
header.gen_utime_ = info.gen_utime;
|
||||
header.is_key_block_ = info.key_block;
|
||||
header.vert_seqno_ = info.vert_seq_no;
|
||||
if(!info.not_master) {
|
||||
header.prev_key_block_seqno_ = info.prev_key_block_seqno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue