events: Build on chain API calls

This commit is contained in:
Łukasz Magiera
2019-09-18 13:01:52 +02:00
parent 3e45088812
commit fe7efa753d
10 changed files with 200 additions and 95 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ type ChainAPI struct {
PubSub *pubsub.PubSub
}
func (a *ChainAPI) ChainNotify(ctx context.Context) (<-chan *store.HeadChange, error) {
func (a *ChainAPI) ChainNotify(ctx context.Context) (<-chan []*store.HeadChange, error) {
return a.Chain.SubHeadChanges(ctx), nil
}