server

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountIsExist

func AccountIsExist(address string) bool

Types

type Server

type Server struct {
	MptDB   *pebble.DB
	ChainDB *pebble.DB
	TxDB    *pebble.DB
	pb.UnimplementedRpcServer
}

func (*Server) GetAllBlock

func (s *Server) GetAllBlock(ctx context.Context, req *pb.GetAllBlockReq) (*pb.GetAllBlockResp, error)

func (*Server) GetAllTx

func (s *Server) GetAllTx(ctx context.Context, req *pb.GetAllTxReq) (*pb.GetAllTxResp, error)

func (*Server) GetBalance

func (s *Server) GetBalance(ctx context.Context, req *pb.GetBalanceReq) (*pb.GetBalanceResp, error)

func (*Server) GetInfoByBlockHash

func (s *Server) GetInfoByBlockHash(ctx context.Context, req *pb.GetInfoByBlockHashReq) (*pb.GetInfoByBlockHashResp, error)

func (*Server) GetInfoByBlockNum

func (s *Server) GetInfoByBlockNum(ctx context.Context, req *pb.GetInfoByBlockNumReq) (*pb.GetInfoByBlockNumResp, error)

func (*Server) GetInfoByTxHash

func (s *Server) GetInfoByTxHash(ctx context.Context, req *pb.GetInfoByTxHashReq) (*pb.GetInfoByTxHashResp, error)

func (*Server) GetTxPool

func (s *Server) GetTxPool(ctx context.Context, req *pb.GetTxPoolReq) (*pb.GetTxPoolResp, error)

func (*Server) Mine

func (s *Server) Mine(ctx context.Context, req *pb.MineReq) (*pb.MineResp, error)

func (*Server) NewAccount

func (s *Server) NewAccount(ctx context.Context, req *pb.NewAccountReq) (*pb.NewAccountResp, error)

func (*Server) NewBlock

func (s *Server) NewBlock(ctx context.Context, req *pb.NewBlockReq) (*pb.NewBlockResp, error)

func (*Server) NewTx

func (s *Server) NewTx(ctx context.Context, req *pb.NewTxReq) (*pb.NewTxResp, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL