bitxhub/internal/coreapi/feed.go

16 lines
386 B
Go
Raw Normal View History

2020-03-29 21:32:01 +08:00
package coreapi
import (
"github.com/ethereum/go-ethereum/event"
"github.com/meshplus/bitxhub/internal/coreapi/api"
"github.com/meshplus/bitxhub/internal/model/events"
)
type FeedAPI CoreAPI
var _ api.FeedAPI = (*FeedAPI)(nil)
func (api *FeedAPI) SubscribeNewBlockEvent(ch chan<- events.NewBlockEvent) event.Subscription {
return api.bxh.BlockExecutor.SubscribeBlockEvent(ch)
2020-03-29 21:32:01 +08:00
}