Skip to content

Commit

Permalink
Postpone addition of overlay for block broadcasting (#842)
Browse files Browse the repository at this point in the history
This reverts commit a52045b.
  • Loading branch information
EmelyanenkoK committed Jan 16, 2024
1 parent edb0d0f commit 4303e49
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 338 deletions.
4 changes: 0 additions & 4 deletions adnl/adnl-peer-table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ class AdnlPeerTableImpl : public AdnlPeerTable {
td::actor::ActorId<AdnlChannel> channel) override;
void unregister_channel(AdnlChannelIdShort id) override;

void check_id_exists(AdnlNodeIdShort id, td::Promise<bool> promise) override {
promise.set_value(local_ids_.count(id));
}

void write_new_addr_list_to_db(AdnlNodeIdShort local_id, AdnlNodeIdShort peer_id, AdnlDbItem node,
td::Promise<td::Unit> promise) override;
void get_addr_list_from_db(AdnlNodeIdShort local_id, AdnlNodeIdShort peer_id,
Expand Down
2 changes: 0 additions & 2 deletions adnl/adnl.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ class Adnl : public AdnlSenderInterface {
virtual void add_id_ex(AdnlNodeIdFull id, AdnlAddressList addr_list, td::uint8 cat, td::uint32 mode) = 0;
virtual void del_id(AdnlNodeIdShort id, td::Promise<td::Unit> promise) = 0;

virtual void check_id_exists(AdnlNodeIdShort id, td::Promise<bool> promise) = 0;

// subscribe to (some) messages(+queries) to this local id
virtual void subscribe(AdnlNodeIdShort dst, std::string prefix, std::unique_ptr<Callback> callback) = 0;
virtual void unsubscribe(AdnlNodeIdShort dst, std::string prefix) = 0;
Expand Down
2 changes: 0 additions & 2 deletions tl/generate/scheme/ton_api.tl
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,6 @@ tonNode.newShardBlockBroadcast block:tonNode.newShardBlock = tonNode.Broadcast;

tonNode.shardPublicOverlayId workchain:int shard:long zero_state_file_hash:int256 = tonNode.ShardPublicOverlayId;

tonNode.privateBlockOverlayId zero_state_file_hash:int256 nodes:(vector int256) = tonNode.PrivateBlockOverlayId;

tonNode.keyBlocks blocks:(vector tonNode.blockIdExt) incomplete:Bool error:Bool = tonNode.KeyBlocks;

ton.blockId root_cell_hash:int256 file_hash:int256 = ton.BlockId;
Expand Down
Binary file modified tl/generate/scheme/ton_api.tlo
Binary file not shown.
8 changes: 0 additions & 8 deletions ton/ton-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,6 @@ struct BlockBroadcast {
td::uint32 validator_set_hash;
td::BufferSlice data;
td::BufferSlice proof;

BlockBroadcast clone() const {
std::vector<BlockSignature> new_signatures;
for (const BlockSignature& s : signatures) {
new_signatures.emplace_back(s.node, s.signature.clone());
}
return {block_id, std::move(new_signatures), catchain_seqno, validator_set_hash, data.clone(), proof.clone()};
}
};

struct Ed25519_PrivateKey {
Expand Down
4 changes: 1 addition & 3 deletions validator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ set(FULL_NODE_SOURCE
full-node-master.h
full-node-master.hpp
full-node-master.cpp
full-node-private-overlay.hpp
full-node-private-overlay.cpp


net/download-block.hpp
net/download-block.cpp
net/download-block-new.hpp
Expand Down
175 changes: 0 additions & 175 deletions validator/full-node-private-overlay.cpp

This file was deleted.

86 changes: 0 additions & 86 deletions validator/full-node-private-overlay.hpp

This file was deleted.

Loading

0 comments on commit 4303e49

Please sign in to comment.