Use geth state diff source in composeAndExecute

This commit is contained in:
Elizabeth Engelman
2019-09-25 16:32:27 -05:00
parent 8c4a4d6587
commit a577811e0a
3 changed files with 39 additions and 12 deletions
@@ -17,6 +17,7 @@ package streamer
import (
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum/statediff"
"github.com/sirupsen/logrus"
"github.com/vulcanize/vulcanizedb/pkg/core"
)
@@ -29,6 +30,7 @@ type StateDiffStreamer struct {
}
func (streamer *StateDiffStreamer) Stream(payloadChan chan statediff.Payload) (*rpc.ClientSubscription, error) {
logrus.Info("streaming diffs from geth")
return streamer.client.Subscribe("statediff", payloadChan, "stream")
}