func (n *NodeNetwork) SetExtraManager(storage NodeNetworkStorage) {
	n.Storage = storage
}
Set extra storage for a nodes
package net
import (
	"encoding/hex"
	"encoding/json"
	"io/ioutil"
	"net/http"
	"strings"
	"sync"
	"time"
	"github.com/gelembjuk/democoin/lib"
	"github.com/gelembjuk/democoin/lib/utils"
)
type NodeNetworkStorage interface {
	GetNodes() ([]NodeAddr, error)
	AddNodeToKnown(addr NodeAddr)
	RemoveNodeFromKnown(addr NodeAddr)
	GetCountOfKnownNodes() (int, error)
}
type NodeNetwork struct {
	Logger  *utils.LoggerMan
	Nodes   []NodeAddr
	Storage NodeNetworkStorage
	lock    *sync.Mutex
}
type NodesListJSON struct {
	Nodes   []NodeAddr
	Genesis string
}
func (n *NodeNetwork) Init() {
	n.lock = &sync.Mutex{}
}