rpcserver

package
v0.0.0-...-149a895 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRPCServer

func NewRPCServer(btcLC *btclightclient.BTCLightClient) *httptest.Server

NewRPCServer creates a new instance of the rpcServer and starts listening

Types

type RPCServerHandler

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

Have a type with some exported methods

func (*RPCServerHandler) GetBTCHeaderChainTip

func (h *RPCServerHandler) GetBTCHeaderChainTip() (*chainhash.Hash, error)

returns the block height and hash of tip block stored in babylon chain

func (*RPCServerHandler) InsertHeaders

func (h *RPCServerHandler) InsertHeaders(
	blockHeaders []*wire.BlockHeader,
) error

txn to insert bitcoin block headers to babylon chain

func (*RPCServerHandler) Ping

func (h *RPCServerHandler) Ping(in int) int

Jump to

Keyboard shortcuts

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