github.com/lbryio/lbcd@v0.22.119/rpcclient/examples/lbcdblocknotify/adapter.go (about) 1 package main 2 3 import ( 4 "github.com/lbryio/lbcd/wire" 5 "github.com/lbryio/lbcutil" 6 ) 7 8 type eventBlockConected struct { 9 height int32 10 header *wire.BlockHeader 11 txns []*lbcutil.Tx 12 } 13 14 type adapter struct { 15 *bridge 16 } 17 18 func (a *adapter) onFilteredBlockConnected(height int32, header *wire.BlockHeader, txns []*lbcutil.Tx) { 19 a.eventCh <- &eventBlockConected{height, header, txns} 20 }