neoneo-go/pkg
Roman Khimov 9a30f2fbcc connmgr: correctly pass binding error to the server
And make the node fail gracefully if it's unable to bind. Before this commit:
-----
Server is starting up
Connection manager started
Error connecting to outbound  listen tcp 127.0.0.1:20332: bind: address already in use
We have connected successfully to:  127.0.0.1:20334
panic: runtime error: invalid memory address or nil pointer dereference
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x6bbfa2]

goroutine 12 [running]:
github.com/CityOfZion/neo-go/pkg/connmgr.New.func1.1(0x0, 0x0)
        /home/rik/dev/neo-go/pkg/connmgr/connmgr.go:47 +0x22
panic(0x718980, 0xa22f70)
        /usr/lib64/go/1.12/src/runtime/panic.go:522 +0x1b5
github.com/CityOfZion/neo-go/pkg/connmgr.New.func1(0xc000013430, 0xc000013450, 0xc000013440, 0xc0005265f0, 0xf, 0x0)
        /home/rik/dev/neo-go/pkg/connmgr/connmgr.go:52 +0x15e
created by github.com/CityOfZion/neo-go/pkg/connmgr.New
        /home/rik/dev/neo-go/pkg/connmgr/connmgr.go:38 +0xfe
exit status 2
-----

After this commit:
-----
listen tcp 127.0.0.1:20332: bind: address already in use
-----
2019-08-19 15:31:22 +03:00
..
chain [Server] Implements Orchestration server (#252) 2019-03-28 22:49:34 +00:00
chaincfg [chain] Refactor, add chaincfg and database initialisation (#243) 2019-03-28 20:23:50 +00:00
connmgr connmgr: correctly pass binding error to the server 2019-08-19 15:31:22 +03:00
crypto Merge branch 'dev' into vm 2019-08-12 19:12:19 +03:00
database Add Chain saving functionality to Database (#206) 2019-03-23 16:57:05 +00:00
peer [Server] Implements Orchestration server (#252) 2019-03-28 22:49:34 +00:00
peermgr [PeerMgr] Add Caching and Re-processing system (#263) 2019-03-30 18:10:27 +00:00
server connmgr: correctly pass binding error to the server 2019-08-19 15:31:22 +03:00
syncmgr [syncmgr] 2019-03-30 22:42:07 +00:00
vm Merge branch 'dev' into vm 2019-08-12 19:12:19 +03:00
wire Add ReverseString, ToReverseScriptHash method (#281) 2019-08-05 09:34:31 +02:00
Readme.md Initial commit 2019-02-25 22:44:14 +00:00

ReadMe

Currently this package is in Development.

References

btcd https://github.com/btcsuite/btcd

geth https://github.com/ethereum/go-ethereum

aeternity https://github.com/aeternity/elixir-node