TingChain
  • Overview of Tingchain
  • Backer & Investor
  • Executive Summary
  • Introduction
  • Ting Chain Ecosystem
    • Technical Foundation
    • Product Offerings
    • Utilization of Polygon Technology with TON Products
    • Developers
      • Tokenomics
        • Glossary
        • Tokenomics
      • Testnet
      • Get started
        • Installation
        • Local Setup
        • Cloud Setup
        • CLI Command
      • Additional Features
        • Explorer
        • Network stress testing
      • Architecture
        • Architecture Overview
        • Modules
          • Blockchain
          • Consensus
          • Jason RPC
          • Minimal
          • Networking
          • Other modules
          • Protocol
          • Sealer
          • State
          • Storage
          • TxPool
          • Types
      • Community
        • Propose a new feature
        • Report an issue
      • Concepts
        • State in Ethereum
      • Configuration
        • Manage private keys
        • Server configuration file
      • Consensus
        • Proof of Stake
        • Set up and use Proof of Stake (PoS)
      • Working with node
        • Backup/restore node instance
        • Query JSON RPC endpoints
        • Query operator information
      • Development Roadmap
  • Target Audience
  • 🗺️Roadmap
  • Ambassador Program
  • List Project Testnet
  • Social Channel
  • Conclusion
Powered by GitBook
On this page
  • Overview
  • GRPC for Other Nodes
  • Status Object
  1. Ting Chain Ecosystem
  2. Developers
  3. Architecture
  4. Modules

Protocol

Overview

The Protocol module contains the logic for the synchronization protocol.

The TingChain uses libp2p as the networking layer, and on top of that runs gRPC.

GRPC for Other Nodes

service V1 {
    // Returns status information regarding the specific point in time
    rpc GetCurrent(google.protobuf.Empty) returns (V1Status);
    
    // Returns any type of object (Header, Body, Receipts...)
    rpc GetObjectsByHash(HashRequest) returns (Response);
    
    // Returns a range of headers
    rpc GetHeaders(GetHeadersRequest) returns (Response);
    
    // Watches what new blocks get included
    rpc Watch(google.protobuf.Empty) returns (stream V1Status);
}

Status Object

message V1Status {
    string difficulty = 1;
    string hash = 2;
    int64 number = 3;
}
PreviousOther modulesNextSealer

Last updated 8 months ago