code: func NewLocalNode(db *DB, key *ecdsa.PrivateKey) *LocalNode {
  	ln := &LocalNode{
  		id:       PubkeyToIDV4(&key.PublicKey),
  		db:       db,
  		key:      key,
  		udpTrack: netutil.NewIPTracker(iptrackWindow, iptrackContactWindow, iptrackMinStatements),
  		entries:  make(map[string]enr.Entry),
  	}
  	ln.seq = db.localSeq(ln.id)
  	ln.invalidate()
  	return ln
  }
docs: // NewLocalNode creates a local node.