ipld-eth-server/main.go
2017-10-23 14:33:08 -05:00

16 lines
327 B
Go

package main
import (
"flag"
"github.com/8thlight/vulcanizedb/core"
)
func main() {
ipcPath := flag.String("ipcPath", "", "location geth.ipc")
flag.Parse()
var blockchain core.Blockchain = core.NewGethBlockchain(*ipcPath)
blockchain.RegisterObserver(core.BlockchainLoggingObserver{})
blockchain.SubscribeToEvents()
}