1a6bdd4099
* [pubsub] - remove pubsub package * [chain] - Add height to chain * [peer] - remove unnecesary println * [server] - Implement server package * Add main.go to run node
20 lines
349 B
Go
20 lines
349 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/CityOfZion/neo-go/pkg/server"
|
|
"github.com/CityOfZion/neo-go/pkg/wire/protocol"
|
|
)
|
|
|
|
func main() {
|
|
s, err := server.New(protocol.MainNet, 10332)
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
return
|
|
}
|
|
err = s.Run()
|
|
if err != nil {
|
|
fmt.Println("Server has stopped from the following error: ", err.Error())
|
|
}
|
|
}
|