github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/p2p/types.proto (about)

     1  syntax = "proto3";
     2  package seitendermint.p2p;
     3  
     4  option go_package = "github.com/ari-anchor/sei-tendermint/proto/tendermint/p2p";
     5  
     6  import "gogoproto/gogo.proto";
     7  import "google/protobuf/timestamp.proto";
     8  
     9  message ProtocolVersion {
    10    uint64 p2p   = 1 [(gogoproto.customname) = "P2P"];
    11    uint64 block = 2;
    12    uint64 app   = 3;
    13  }
    14  
    15  message NodeInfo {
    16    ProtocolVersion protocol_version = 1 [(gogoproto.nullable) = false];
    17    string          node_id          = 2 [(gogoproto.customname) = "NodeID"];
    18    string          listen_addr      = 3;
    19    string          network          = 4;
    20    string          version          = 5;
    21    bytes           channels         = 6;
    22    string          moniker          = 7;
    23    NodeInfoOther   other            = 8 [(gogoproto.nullable) = false];
    24  }
    25  
    26  message NodeInfoOther {
    27    string tx_index    = 1;
    28    string rpc_address = 2 [(gogoproto.customname) = "RPCAddress"];
    29  }
    30  
    31  message PeerInfo {
    32    string                    id             = 1 [(gogoproto.customname) = "ID"];
    33    repeated PeerAddressInfo  address_info   = 2;
    34    google.protobuf.Timestamp last_connected = 3 [(gogoproto.stdtime) = true];
    35  }
    36  
    37  message PeerAddressInfo {
    38    string                    address           = 1;
    39    google.protobuf.Timestamp last_dial_success = 2
    40        [(gogoproto.stdtime) = true];
    41    google.protobuf.Timestamp last_dial_failure = 3
    42        [(gogoproto.stdtime) = true];
    43    uint32 dial_failures = 4;
    44  }