ipld-eth-server/main.go

16 lines
327 B
Go
Raw Normal View History

2017-10-18 20:14:17 +00:00
package main
import (
"flag"
"github.com/8thlight/vulcanizedb/core"
)
2017-10-18 20:14:17 +00:00
func main() {
ipcPath := flag.String("ipcPath", "", "location geth.ipc")
flag.Parse()
var blockchain core.Blockchain = core.NewGethBlockchain(*ipcPath)
blockchain.RegisterObserver(core.BlockchainLoggingObserver{})
2017-10-23 18:58:33 +00:00
blockchain.SubscribeToEvents()
2017-10-18 20:14:17 +00:00
}