1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00
This commit is contained in:
ton 2020-04-10 23:06:01 +04:00
parent 8be3fc99ed
commit be9c34c62d
699 changed files with 1171 additions and 978 deletions

View file

@ -79,6 +79,17 @@ class ValidatorGroup : public td::actor::Actor {
private:
std::unique_ptr<validatorsession::ValidatorSession::Callback> make_validator_session_callback();
struct PostponedAccept {
RootHash root_hash;
FileHash file_hash;
td::BufferSlice block;
td::Ref<BlockSignatureSet> sigs;
td::Ref<BlockSignatureSet> approve_sigs;
td::Promise<td::Unit> promise;
};
std::list<PostponedAccept> postoned_accept_;
ShardIdFull shard_;
PublicKeyHash local_id_;
PublicKey local_id_full_;
@ -100,6 +111,7 @@ class ValidatorGroup : public td::actor::Actor {
td::actor::ActorOwn<validatorsession::ValidatorSession> session_;
bool init_ = false;
bool started_ = false;
bool allow_unsafe_self_blocks_resync_;
td::uint32 last_known_round_id_ = 0;
};