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 {
|
2020-07-13 20:40:10 +08:00
|
|
|
return api.bxh.BlockExecutor.SubscribeBlockEvent(ch)
|
2020-03-29 21:32:01 +08:00
|
|
|
}
|