mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
changed validate broadcast logic, added new queries to
validator-engine-console
This commit is contained in:
parent
47814dca3d
commit
d8244eff53
24 changed files with 695 additions and 84 deletions
|
@ -31,7 +31,8 @@ class ValidateBroadcast : public td::actor::Actor {
|
|||
BlockHandle last_masterchain_block_handle_;
|
||||
td::Ref<MasterchainState> last_masterchain_state_;
|
||||
BlockHandle last_known_masterchain_block_handle_;
|
||||
td::Ref<Proof> last_known_masterchain_block_proof_;
|
||||
|
||||
ProofLink::BasicHeaderInfo header_info_;
|
||||
|
||||
td::actor::ActorId<ValidatorManager> manager_;
|
||||
td::Timestamp timeout_;
|
||||
|
@ -45,6 +46,10 @@ class ValidateBroadcast : public td::actor::Actor {
|
|||
|
||||
td::PerfWarningTimer perf_timer_{"validatebroadcast", 0.1};
|
||||
|
||||
bool exact_key_block_handle_;
|
||||
td::Ref<ProofLink> key_proof_link_;
|
||||
td::Ref<MasterchainState> zero_state_;
|
||||
|
||||
public:
|
||||
ValidateBroadcast(BlockBroadcast broadcast, BlockHandle last_masterchain_block_handle,
|
||||
td::Ref<MasterchainState> last_masterchain_state, BlockHandle last_known_masterchain_block_handle,
|
||||
|
@ -59,6 +64,11 @@ class ValidateBroadcast : public td::actor::Actor {
|
|||
}
|
||||
|
||||
void start_up() override;
|
||||
void got_key_block_id(BlockIdExt block_id);
|
||||
void got_key_block_handle(BlockHandle block_handle);
|
||||
void got_key_block_proof_link(td::Ref<ProofLink> proof_link);
|
||||
void got_zero_state(td::Ref<MasterchainState> state);
|
||||
void check_signatures_common(td::Ref<ConfigHolder> conf);
|
||||
void checked_signatures();
|
||||
void got_block_handle(BlockHandle handle);
|
||||
void written_block_data();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue