server

package
v0.0.0-...-8d1acea Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func InitServer

func InitServer(nodeId string) *Server

InitServer creates Server instance with empty miner address

func (*Server) KnownNodes

func (s *Server) KnownNodes() []string

func (*Server) SendTx

func (s *Server) SendTx(addr string, tnx *transaction.Transaction)

func (*Server) Start

func (s *Server) Start(minerAddress string)

Start starts a node

Jump to

Keyboard shortcuts

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