Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PutBlock ¶
type PutBlock struct {
Height int64 `msg:"height"`
// Block is bitcoin core encoding of a Bitcoin block
Block []byte `msg:"block"`
}
PutBlock wraps serialized Bitcoin block (using Bitcoin core encoding) and the block height.
func (*PutBlock) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type PutBlocksReq ¶
type PutBlocksReq []PutBlock
PutBlocksReq is the type expected by the PUT bitcoin/blocks endpoint
func (*PutBlocksReq) DecodeMsg ¶
func (z *PutBlocksReq) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (PutBlocksReq) EncodeMsg ¶
func (z PutBlocksReq) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (PutBlocksReq) MarshalMsg ¶
func (z PutBlocksReq) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (PutBlocksReq) Msgsize ¶
func (z PutBlocksReq) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PutBlocksReq) UnmarshalMsg ¶
func (z *PutBlocksReq) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
Click to show internal directories.
Click to hide internal directories.