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
Click to show internal directories.
Click to hide internal directories.