Skip to content

memocash/index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

932 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memo Index

Install Go

https://go.dev/doc/install

Checkout repo and run server

git clone git@github.com:memocash/index.git
cd index
go build
./index serve live

Architecture

graph TD
    BCH[BCH Node] <-->|P2P| Lead[Lead Processor]
    Lead -->|Blocks/Txs| CS[Cluster Shards]

    subgraph Shard["Each Shard (0..N)"]
        CS --> Queue[Queue Server]
        Queue --> DB[(LevelDB)]
    end

    GraphQL[GraphQL Server] -->|gRPC| Queue
    Admin[Admin Server] -->|gRPC| Queue
    Network[Network Server] -->|gRPC| Queue

    Client([Client]) -->|Query| GraphQL
    Client -->|Manage| Admin
    Client -->|Submit Tx| Broadcast[Broadcast Server]
    Broadcast -->|Raw Tx| Lead
Loading

Configuration

Two options for setting config values.

  1. Use environment variables, e.g.
    NODE_HOST=example.com:8333 ./index serve live
  2. Use a config file, e.g. config.yaml:
    NODE_HOST: example.com:8333
    GRAPHQL_PORT: 8080

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors