Golang implementation of the Idena network node
Building idena-go
required a Go (version 1.12 or later) and a C compiler. idena-go
uses Go modules as a dependency manager.
Once the dependencies are installed, run
go build
To connect to idena network testnet
run executable without parameters. idena-go
uses go-ipfs
and private ipfs network to store data.
--config
Use custom configuration file--datadir
Node data directory (defaultdatadir
)--port
Node tcp port (default40404
)--rpcaddr
RPC listening address (defaultlocalhost
)--rpcport
RPC listening port (default9009
)--ipfsport
IPFS port (default40403
)--bootnode
Set custom bootstrap node--fast
Use fast sync (defaulttrue
)--verbosity
Log verbosity (default3
-Info
)--nodiscovery
Do not discover another nodes (defaultfalse
)
Custom json configuration can be used if --config
parameter is specified
{
"DataDir": "",
"P2P": {
"ListenAddr": ":40404",
"BootstrapNodes": [],
"NoDiscovery": false
},
"RPC": {
"HTTPHost": "localhost",
"HTTPPort": 9009
},
"IpfsConf": {
"DataDir": "",
"IpfsPort": 40403,
"BootNodes": []
},
"Sync": {
"FastSync": true
}
}