Skip to content

Commit aa06130

Browse files
authored
Fix type cast from UnixTime to CatchainSeqno (both are td::uint32) (#1887)
1 parent c5639ab commit aa06130

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

validator/full-node-serializer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static td::Result<BlockBroadcast> deserialize_block_broadcast(ton_api::tonNode_b
6060
}
6161
return BlockBroadcast{create_block_id(f.id_),
6262
std::move(signatures),
63-
static_cast<UnixTime>(f.catchain_seqno_),
63+
static_cast<CatchainSeqno>(f.catchain_seqno_),
6464
static_cast<td::uint32>(f.validator_set_hash_),
6565
std::move(f.data_),
6666
std::move(f.proof_)};
@@ -84,7 +84,7 @@ static td::Result<BlockBroadcast> deserialize_block_broadcast(ton_api::tonNode_b
8484
<< data.size() + proof.size() + signatures.size() * 96;
8585
return BlockBroadcast{create_block_id(f.id_),
8686
std::move(signatures),
87-
static_cast<UnixTime>(f.catchain_seqno_),
87+
static_cast<CatchainSeqno>(f.catchain_seqno_),
8888
static_cast<td::uint32>(f.validator_set_hash_),
8989
std::move(data),
9090
std::move(proof)};
@@ -106,7 +106,7 @@ static td::Result<BlockBroadcast> deserialize_block_broadcast(ton_api::tonNode_b
106106
<< data.size() + proof.size() + signatures.size() * 96;
107107
return BlockBroadcast{create_block_id(f.id_),
108108
std::move(signatures),
109-
static_cast<UnixTime>(f.catchain_seqno_),
109+
static_cast<CatchainSeqno>(f.catchain_seqno_),
110110
static_cast<td::uint32>(f.validator_set_hash_),
111111
std::move(data),
112112
std::move(proof)};

0 commit comments

Comments
 (0)