client: implement rudimentary zmq client

This commit is contained in:
George Tankersley
2018-09-29 00:44:34 +00:00
parent bf2d3afd2b
commit e91ccd258f
5 changed files with 118 additions and 2 deletions

View File

@@ -16,6 +16,14 @@ func NewBlock() *block {
return &block{}
}
func (b *block) GetVersion() int {
return int(b.hdr.Version)
}
func (b *block) GetTxCount() int {
return len(b.vtx)
}
func (b *block) ParseFromSlice(data []byte) (rest []byte, err error) {
hdr := NewBlockHeader()
data, err = hdr.ParseFromSlice(data)