Documentation
¶
Index ¶
- Constants
- Variables
- func AddUnsafeRoutes()
- func BlockHeight() (*ctypes.ResultBlockchainInfo, error)
- func GetWork() (*ctypes.ResultBlockHeaderInfo, error)
- func NetInfo() (*ctypes.ResultNetInfo, error)
- func SetAddrBook(book *p2p.AddrBook)
- func SetBlockStore(bs *txdb.Store)
- func SetEventSwitch(evsw types.EventSwitch)
- func SetLogger(l log.Logger)
- func SetSwitch(sw P2P)
- func SubmitWork(height uint64) (bool, error)
- func UnsafeDialSeeds(seeds []string) (*ctypes.ResultDialSeeds, error)
- type P2P
Constants ¶
View Source
const Version = "3" // rpc routes for profiling, setting config
Variables ¶
View Source
var Routes = map[string]*rpc.RPCFunc{ "net_info": rpc.NewRPCFunc(NetInfo, ""), "getwork": rpc.NewRPCFunc(GetWork, ""), "submitwork": rpc.NewRPCFunc(SubmitWork, "height"), "getBlockHeight": rpc.NewRPCFunc(BlockHeight, ""), }
TODO: better system than "unsafe" prefix
Functions ¶
func AddUnsafeRoutes ¶
func AddUnsafeRoutes()
func BlockHeight ¶
func BlockHeight() (*ctypes.ResultBlockchainInfo, error)
func GetWork ¶
func GetWork() (*ctypes.ResultBlockHeaderInfo, error)
func NetInfo ¶
func NetInfo() (*ctypes.ResultNetInfo, error)
func SetAddrBook ¶
func SetBlockStore ¶
func SetEventSwitch ¶
func SetEventSwitch(evsw types.EventSwitch)
func SubmitWork ¶
func UnsafeDialSeeds ¶
func UnsafeDialSeeds(seeds []string) (*ctypes.ResultDialSeeds, error)
Dial given list of seeds
Types ¶
Click to show internal directories.
Click to hide internal directories.