1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

liteclient signature check support

1. update liteclient/liteserver. Now liteserver sends signatures of
blocks and liteclient checks them. I.e. liteclient completely checks
received data.
2. validator-engine: more GC options
3. blockchain-explorer: show all block transactions (instead of 256)
4. some bugfixes
This commit is contained in:
ton 2019-09-14 18:14:55 +04:00
parent d8244eff53
commit 9d6853ef24
58 changed files with 1480 additions and 325 deletions

View file

@ -310,6 +310,8 @@ struct ZeroStateIdExt {
struct BlockSignature {
NodeIdShort node;
td::BufferSlice signature;
BlockSignature(const NodeIdShort& _node, td::BufferSlice _signature) : node(_node), signature(std::move(_signature)) {
}
};
struct ReceivedBlock {
@ -356,6 +358,9 @@ struct Ed25519_PublicKey {
operator Bits256() const {
return _pubkey;
}
td::Slice as_slice() const {
return _pubkey.as_slice();
}
bool operator==(const Ed25519_PublicKey& other) const {
return _pubkey == other._pubkey;
}