Piscine

How do I create and manage my own mining pool?

How do I create and manage my own mining pool? – Ethereum Stack Exchange []Stack Exchange Network[*]

Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

  1. 0
  2. +0
  3. Log in Sign up

Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.

Sign up to join this community

Anybody can ask a question

Anybody can answer

The best answers are voted up and rise to the top

Asked 4 years, 7 months ago

Viewed 10k times

I realize that there are already answers to the question, but I don’t think they are detailed enough.

For my use case, I have 4-5 gaming PCs, some desktop and some laptop, laying around the house. I would like to create my own pool and put them all to work.

A previous answer states that you simply run geth on a master machine and then run ethminer on your other machines which are pointing to the master. That’s great, but how do the other machines know which account they are mining for? Also, is there a way to track productivity on a per-machine basis. I would like to know how much output I am getting from each machine.

Thanks in advance!

asked Jul 20, 2017 at 21:47

Matt CashattMatt Cashatt

20111 gold badge33 silver badges99 bronze badges

In the “just run geth” method, the geth program is told which Ethereum account should receive block rewards. This is known as the etherbase. Thus, when geth generates data for hashing, the work sent to miners implicitly includes this information. In fact, the mining software doesn’t even need to explicitly determine what account is being credited! For extra security, your geth node doesn’t need to have the private key for account being credited, either. This can be done by adding the –etherbase option for geth (the command in the referenced answer is otherwise unchanged). This method really is as simple as the other post states. One command to start geth on the “master” computer and another command to tell the mining computers where to get work from.

If you want to track productivity per-machine, you can use pool software such as https://github.com/sammy007/open-ethereum-pool . This software includes step-by-step instructions for setting it up on the Ubuntu operating system. You can run it from inside a virtual machine if you don’t want to run Ubuntu as your primary operating system. This particular pool software connects to a running geth instance to figure out the current state of the blockchain in order to generate work for miners. Pool software (not just Open Ethereum Pool) uses a lower “virtual difficulty” so that miners can submit solutions to blocks to prove they are doing work; these solutions are not broadcast to the blockchain unless they are of sufficient difficulty to meet the real blockchain difficulty. See also For pool mining, what exactly is a share? .

answered Jul 20, 2017 at 21:59

lungjlungj

6,47022 gold badges1515 silver badges4444 bronze badges

0

Your Answer

Thanks for contributing an answer to Ethereum Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

Draft saved

Draft discarded

Post as a guest

{function S(t){var a=e[t];if(void 0!==a)return a.exports;var s=e[t]={exports:{}};return n[t].call(s.exports,s,s.exports,S),s.exports}var n={291:function(Kt,e){var t;!function(e,t){“use strict”;”object”==typeof Kt.exports?Kt.exports=e.document?t(e,!0):function(n){if(!n.document)throw new Error(“jQuery requires a window with a document”);return t(n)}:t(e)}(“undefined”==typeof window?this:window,function(Zt,n){“use strict”;function r(a,e,t){var n,s,r=(t=t||y).createElement(“script”);if(r.text=a,e)for(n in g)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&r.setAttribute(n,s);t.head.appendChild(r).parentNode.removeChild(r)}function w(t){return null==t?t+””:”object”==typeof t||”function”==typeof t?c[u.call(t)]||”object”:typeof t}function T(a){var o=!!a&&”length”in a&&a.length,s=w(a);return!dn(a)&&!v(a)&&(“array”===s||0===o||”number”==typeof o&&0o;o+=2)”margin”===t&&(s+=ln.css(d,t+te[o],!0,l)),n?(“content”===t&&(s-=ln.css(d,”padding”+te[o],!0,l)),”margin”!==t&&(s-=ln.css(d,”border”+te[o]+”Width”,!0,l))):(s+=ln.css(d,”padding”+te[o],!0,l),”padding”===t?a+=ln.css(d,”border”+te[o]+”Width”,!0,l):s+=ln.css(d,”border”+te[o]+”Width”,!0,l));return!n&&0n;n+=2-o)s[“margin”+(t=te[n])]=s[“padding”+t]=a;return o&&(s.opacity=s.width=a),s}function ct(s,e,t){for(var n,r=(ft.tweeners[e]||[]).concat(ft.tweeners[“*”]),i=0,o=r.length;ia?o:0);return this.pushStack(0<=t&&t/,M=/:((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+)(?:(((‘((?:\.|[^\’])*)’|”((?:\.|[^\”])*)”)|((?:\.|[^\()[]]|[[x20trnf]*((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+)(?:[x20trnf]*([*^$|!~]?=)[x20trnf]*(?:'((?:\.|[^\’])*)’|”((?:\.|[^\”])*)”|((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+))|)[x20trnf]*])*)|.*))|)/,R=/^(?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+$/,B={ID:/^#((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+)/,CLASS:/^.((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+)/,TAG:/^((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+|[*])/,ATTR:/^[[x20trnf]*((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+)(?:[x20trnf]*([*^$|!~]?=)[x20trnf]*(?:'((?:\.|[^\’])*)’|”((?:\.|[^\”])*)”|((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+))|)[x20trnf]*]/,PSEUDO:/^:((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+)(?:(((‘((?:\.|[^\’])*)’|”((?:\.|[^\”])*)”)|((?:\.|[^\()[]]|[[x20trnf]*((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+)(?:[x20trnf]*([*^$|!~]?=)[x20trnf]*(?:'((?:\.|[^\’])*)’|”((?:\.|[^\”])*)”|((?:\[da-fA-F]{1,6}[x20trnf]?|\[^rnf]|[w-]|[^-x7f])+))|)[x20trnf]*])*)|.*))|)/,CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:([x20trnf]*(even|odd|(([+-]|)(d*)n|)[x20trnf]*(?:([+-]|)[x20trnf]*(d+)|))[x20trnf]*)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[x20trnf]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:([x20trnf]*((?:-d)?d*)[x20trnf]*)|)(?=[^-]|$)/i},F=/HTML$/i,z=/^(?:input|select|textarea|button)$/i,X=/^hd$/i,$=/^[^{]+{s*[native w/,U=/^(?:#([w-]+)|(w+)|.([w-]+))$/,V=/[+~]/,Y=/\[da-fA-F]{1,6}[x20trnf]?|\([^rnf])/g,Q=function(a,e){var t=String.fromCharCode,o=”0x”+a.slice(1)-65536;return e||(0>o?t(o+65536):t(55296|o>>10,56320|1023&o))},K=/([-x1fx7f]|^-?d)|^-$|[^-x1fx7f-uFFFFw-]/g,J=function(n,e){return e?””===n?”uFFFD”:n.slice(0,-1)+”\”+n.charCodeAt(n.length-1).toString(16)+” “:”\”+n},Z=function(){De()},ee=be(function(t){return!0===t.disabled&&”fieldset”===t.nodeName.toLowerCase()},{dir:”parentNode”,next:”legend”});try{k.apply(t=N.call(h.childNodes),h.childNodes),t[h.childNodes.length].nodeType}catch(n){k={apply:t.length?function(n,e){E.apply(n,N.call(e))}:function(a,e){for(var t=a.length,n=0;a[t++]=e[n++];);a.length=t-1}}}for(Se in Ee=_.support={},n=_.isXML=function(a){var e=a&&a.namespaceURI,t=a&&(a.ownerDocument||a).documentElement;return!F.test(e||t&&t.nodeName||”HTML”)},De=_.setDocument=function(r){var e,t,i=r?r.ownerDocument||r:h;return i!=d&&9===i.nodeType&&i.documentElement?(o=(d=i).documentElement,Le=!n(d),h!=d&&(t=d.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener(“unload”,Z,!1):t.attachEvent&&t.attachEvent(“onunload”,Z)),Ee.scope=ue(function(t){return o.appendChild(t).appendChild(d.createElement(“div”)),void 0!==t.querySelectorAll&&!t.querySelectorAll(“:scope fieldset div”).length}),Ee.attributes=ue(function(t){return t.className=”i”,!t.getAttribute(“className”)}),Ee.getElementsByTagName=ue(function(t){return t.appendChild(d.createComment(“”)),!t.getElementsByTagName(“*”).length}),Ee.getElementsByClassName=$.test(d.getElementsByClassName),Ee.getById=ue(function(t){return o.appendChild(t).id=He,!d.getElementsByName||!d.getElementsByName(He).length}),Ee.getById?(ke.filter.ID=function(n){var a=n.replace(Y,Q);return function(t){return t.getAttribute(“id”)===a}},ke.find.ID=function(a,e){if(void 0!==e.getElementById&&Le){var t=e.getElementById(a);return t?[t]:[]}}):(ke.filter.ID=function(n){var a=n.replace(Y,Q);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode(“id”);return e&&e.value===a}},ke.find.ID=function(a,e){if(void 0!==e.getElementById&&Le){var t,n,s,r=e.getElementById(a);if(r){if((t=r.getAttributeNode(“id”))&&t.value===a)return[r];for(s=e.getElementsByName(a),n=0;r=s[n++];)if((t=r.getAttributeNode(“id”))&&t.value===a)return[r]}return[]}}),ke.find.TAG=Ee.getElementsByTagName?function(n,e){return void 0===e.getElementsByTagName?Ee.qsa?e.querySelectorAll(n):void 0:e.getElementsByTagName(n)}:function(a,e){var t,n=[],s=0,r=e.getElementsByTagName(a);if(“*”===a){for(;t=r[s++];)1===t.nodeType&&n.push(t);return n}return r},ke.find.CLASS=Ee.getElementsByClassName&&function(n,e){if(void 0!==e.getElementsByClassName&&Le)return e.getElementsByClassName(n)},s=[],p=[],(Ee.qsa=$.test(d.querySelectorAll))&&(ue(function(n){var e;o.appendChild(n).innerHTML=”“,n.querySelectorAll(“[msallowcapture^=”]”).length&&p.push(“[*^$]=[\x20\t\r\n\f]*(?:”|””)”),n.querySelectorAll(“[selected]”).length||p.push(“\[[\x20\t\r\n\f]*(?:value|”+j+”)”),n.querySelectorAll(“[id~=”+He+”-]”).length||p.push(“~=”),(e=d.createElement(“input”)).setAttribute(“name”,””),n.appendChild(e),n.querySelectorAll(“[name=”]”).length||p.push(“\[[\x20\t\r\n\f]*name[\x20\t\r\n\f]*=[\x20\t\r\n\f]*(?:”|””)”),n.querySelectorAll(“:checked”).length||p.push(“:checked”),n.querySelectorAll(“a#”+He+”+*”).length||p.push(“.#.+[+~]”),n.querySelectorAll(“\f”),p.push(“[\r\n\f]”)}),ue(function(n){n.innerHTML=”“;var e=d.createElement(“input”);e.setAttribute(“type”,”hidden”),n.appendChild(e).setAttribute(“name”,”D”),n.querySelectorAll(“[name=d]”).length&&p.push(“name[\x20\t\r\n\f]*[*^$|!~]?=”),2!==n.querySelectorAll(“:enabled”).length&&p.push(“:enabled”,”:disabled”),o.appendChild(n).disabled=!0,2!==n.querySelectorAll(“:disabled”).length&&p.push(“:enabled”,”:disabled”),n.querySelectorAll(“*,:x”),p.push(“,.*:”)})),(Ee.matchesSelector=$.test(u=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ue(function(t){Ee.disconnectedMatch=u.call(t,”*”),u.call(t,”[s!=”]:x”),s.push(“!=”,”:(“+L+”)(?:\(((‘((?:\\.|[^\\’])*)’|”((?:\\.|[^\\”])*)”)|((?:\\.|[^\\()[\]]|”+(“\[[\x20\t\r\n\f]*(“+L+”)(?:”+D+”*([*^$|!~]?=)”+D+”*(?:'((?:\\.|[^\\’])*)’|”((?:\\.|[^\\”])*)”|(“+L+”))|)”+D+”*\]”)+”)*)|.*)\)|)”)}),p=p.length&&new RegExp(p.join(“|”)),s=s.length&&new RegExp(s.join(“|”)),e=$.test(o.compareDocumentPosition),qe=e||$.test(o.contains)?function(a,e){var t=9===a.nodeType?a.documentElement:a,n=e&&e.parentNode;return a===n||n&&1===n.nodeType&&(t.contains?t.contains(n):a.compareDocumentPosition&&16&a.compareDocumentPosition(n))}:function(n,e){if(e)for(;e=e.parentNode;)if(e===n)return!0;return!1},C=e?function(n,e){if(n===e)return c=!0,0;var t=!n.compareDocumentPosition-!e.compareDocumentPosition;return t||(1&(t=(n.ownerDocument||n)==(e.ownerDocument||e)?n.compareDocumentPosition(e):1)||!Ee.sortDetached&&e.compareDocumentPosition(n)===t?n==d||n.ownerDocument==h&&qe(h,n)?-1:e==d||e.ownerDocument==h&&qe(h,e)?1:l?A(l,n)-A(l,e):0:4&t?-1:1)}:function(p,e){if(p===e)return c=!0,0;var t,n=0,r=p.parentNode,u=e.parentNode,g=[p],a=[e];if(!r||!u)return p==d?-1:e==d?1:r?-1:u?1:l?A(l,p)-A(l,e):0;if(r===u)return fe(p,e);for(t=p;t=t.parentNode;)g.unshift(t);for(t=e;t=t.parentNode;)a.unshift(t);for(;g[n]===a[n];)n++;return n?fe(g[n],a[n]):g[n]==h?-1:a[n]==h?1:0},d):d},_.matches=function(n,e){return _(n,null,null,e)},_.matchesSelector=function(n,e){if(De(n),Ee.matchesSelector&&Le&&!T[e+” “]&&(!s||!s.test(e))&&(!p||!p.test(e)))try{var t=u.call(n,e);if(t||Ee.disconnectedMatch||n.document&&11!==n.document.nodeType)return t}catch(t){T(e,!0)}return 0″:{dir:”parentNode”,first:!0},” “:{dir:”parentNode”},”+”:{dir:”previousSibling”,first:!0},”~”:{dir:”previousSibling”}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Y,Q),t[3]=(t[3]||t[4]||t[5]||””).replace(Y,Q),”~=”===t[2]&&(t[3]=” “+t[3]+” “),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),”nth”===t[1].slice(0,3)?(t[3]||_.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*(“even”===t[3]||”odd”===t[3])),t[5]=+(t[7]+t[8]||”odd”===t[3])):t[3]&&_.error(t[0]),t},PSEUDO:function(a){var e,t=!a[6]&&a[2];return B.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||””:t&&M.test(t)&&(e=r(t,!0))&&(e=t.indexOf(“)”,t.length-e)-t.length)&&(a[0]=a[0].slice(0,e),a[2]=t.slice(0,e)),a.slice(0,3))}},filter:{TAG:function(n){var a=n.replace(Y,Q).toLowerCase();return”*”===n?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===a}},CLASS:function(n){var a=i[n+” “];return a||(a=new RegExp(“(^|[\x20\t\r\n\f])”+n+”(“+D+”|$)”))&&i(n,function(t){return a.test(“string”==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute(“class”)||””)})},ATTR:function(a,e,o){return function(n){var s=_.attr(n,a);return null==s?”!=”===e:!e||(s+=””,”=”===e?s===o:”!=”===e?s!==o:”^=”===e?o&&0===s.indexOf(o):”*=”===e?o&&-1t?t+e:t]}),even:ge(function(a,e){for(var t=0;te?e:t;0t?t+e:t;++n]*|#([w-]+))$/;(ln.fn.init=function(a,o,s){var n,r;if(!a)return this;if(s=s||A,”string”==typeof a){if(!(n=””===a[a.length-1]&&3<=a.length?[null,a,null]:j.exec(a))||!n[1]&&o)return!o||o.jquery?(o||s).find(a):this.constructor(o).find(a);if(n[1]){if(o=o instanceof ln?o[0]:o,ln.merge(this,ln.parseHTML(n[1],o&&o.nodeType?o.ownerDocument||o:y,!0)),N.test(n[1])&&ln.isPlainObject(o))for(n in o)dn(this[n])?this[n](o[n]):this.attr(n,o[n]);return this}return(r=y.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):dn(a)?void 0===s.ready?a(ln):s.ready(a):ln.makeArray(a,this)}).prototype=ln.fn,A=ln(y);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};ln.fn.extend({has:function(a){var o=ln(a,this),t=o.length;return this.filter(function(){for(var n=0;n=a&&(t!==I&&(i=void 0,s=[n]),e.rejectWith(i,s))}};o?d():(ln.Deferred.getStackHook&&(d.stackTrace=ln.Deferred.getStackHook()),Zt.setTimeout(d))}}var a=0;return ln.Deferred(function(a){d[0][3].add(p(0,a,dn(n)?n:q,a.notifyWith)),d[1][3].add(p(0,a,dn(t)?t:q)),d[2][3].add(p(0,a,dn(e)?e:I))}).promise()},promise:function(n){return null==n?t:ln.extend(n,t)}},l={};return ln.each(d,function(n,o){var r=o[2],a=o[5];t[o[1]]=r.add,a&&r.add(function(){e=a},d[3-n][2].disable,d[3-n][3].disable,d[0][2].lock,d[0][3].lock),r.add(o[3].fire),l[o[0]]=function(){return l[o[0]+”With”](this===l?void 0:this,arguments),this},l[o[0]+”With”]=r.fireWith}),t.promise(l),a&&a.call(l,l),l},when:function(s){var d=arguments.length,e=d,l=Array(e),r=an.call(arguments),i=ln.Deferred(),n=function(t){return function(e){l[t]=this,r[t]=1=d&&(W(s,i.done(n(e)).resolve,i.reject,!d),”pending”===i.state()||dn(r[e]&&r[e].then)))return i.then();for(;e–;)W(r[e],n(e),i.reject);return i.promise()}});var O=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ln.Deferred.exceptionHook=function(n,e){Zt.console&&Zt.console.warn&&n&&O.test(n.name)&&Zt.console.warn(“jQuery.Deferred exception: “+n.message,n.stack,e)},ln.readyException=function(t){Zt.setTimeout(function(){throw t})};var M=ln.Deferred();ln.fn.ready=function(t){return M.then(t).catch(function(t){ln.readyException(t)}),this},ln.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?–ln.readyWait:ln.isReady)||(ln.isReady=!0,!0!==t&&0<--ln.readyWait||M.resolveWith(y,[ln]))}}),ln.ready.then=M.then,"complete"!==y.readyState&&("loading"===y.readyState||y.documentElement.doScroll)?(y.addEventListener("DOMContentLoaded",_),Zt.addEventListener("load",_)):Zt.setTimeout(ln.ready);var R=function(d,e,t,n,r,i,o){var a=0,s=d.length,p=null==t;if("object"===w(t))for(a in r=!0,t)R(d,e,a,t[a],!0,i,o);else if(void 0!==n&&(r=!0,dn(n)||(o=!0),p&&(o?(e.call(d,n),e=null):(p=e,e=function(a,e,t){return p.call(ln(a),t)})),e))for(;a“,””],col:[2,”

“,””],tr:[2,”

“,””],td:[3,”

“,””],_default:[0,””,””]};me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td,rn.option||(me.optgroup=me.option=[1,””,””]);var ye=/<|&#?w+;/,be=/^([^.]*)(?:.(.+)|)/;ln.event={global:{},add:function(y,e,t,b,x){var v,o,a,s,u,l,c,f,d,T,h,C=U.get(y);if($(y))for(t.handler&&(t=(v=t).handler,x=v.selector),x&&ln.find.matchesSelector(oe,x),t.guid||(t.guid=ln.guid++),(s=C.events)||(s=C.events=Object.create(null)),(o=C.handle)||(o=C.handle=function(e){return void 0!==ln&&ln.event.triggered!==e.type?ln.event.dispatch.apply(y,arguments):void 0}),u=(e=(e||"").match(P)||[""]).length;u--;)d=h=(a=be.exec(e[u])||[])[1],T=(a[2]||"").split(".").sort(),d&&(c=ln.event.special[d]||{},d=(x?c.delegateType:c.bindType)||d,c=ln.event.special[d]||{},l=ln.extend({type:d,origType:h,data:b,handler:t,guid:t.guid,selector:x,needsContext:x&&ln.expr.match.needsContext.test(x),namespace:T.join(".")},v),(f=s[d])||((f=s[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(y,b,T,o)||y.addEventListener&&y.addEventListener(d,o)),c.add&&(c.add.call(y,l),l.handler.guid||(l.handler.guid=t.guid)),x?f.splice(f.delegateCount++,0,l):f.push(l),ln.event.global[d]=!0)},remove:function(y,e,t,n,r){var b,o,a,s,u,l,c,f,d,p,h,g=U.hasData(y)&&U.get(y);if(g&&(s=g.events)){for(u=(e=(e||"").match(P)||[""]).length;u--;)if(d=h=(a=be.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),d){for(c=ln.event.special[d]||{},f=s[d=(n?c.delegateType:c.bindType)||d]||[],a=a[2]&&new RegExp("(^|\.)"+p.join("\.(?:.*\.|)")+"(\.|$)"),o=b=f.length;b--;)l=f[b],!r&&h!==l.origType||t&&t.guid!==l.guid||a&&!a.test(l.namespace)||n&&n!==l.selector&&("**"!==n||!l.selector)||(f.splice(b,1),l.selector&&f.delegateCount--,c.remove&&c.remove.call(y,l));o&&!f.length&&(c.teardown&&!1!==c.teardown.call(y,p,g.handle)||ln.removeEvent(y,d,g.handle),delete s[d])}else for(d in s)ln.event.remove(y,d+e[u],t,n,!0);ln.isEmptyObject(s)&&U.remove(y,"handle events")}},dispatch:function(d){var e,t,n,r,i,o,a=Array(arguments.length),s=ln.event.fix(d),p=(U.get(this,"events")||Object.create(null))[s.type]||[],l=ln.event.special[s.type]||{};for(a[0]=s,e=1;eo&&(o=0))),A.status=o,A.statusText=(r||x)+””,c?g.resolveWith(p,[u,x,A]):g.rejectWith(p,[A,x,d]),A.statusCode(v),v=void 0,l&&h.trigger(c?”ajaxSuccess”:”ajaxError”,[A,N,c?u:d]),m.fireWith(p,[A,x]),l&&(h.trigger(“ajaxComplete”,[A,N]),–ln.active||ln.event.trigger(“ajaxStop”)))}”object”==typeof r&&(b=r,r=void 0),b=b||{};var S,n,i,o,k,t,s,l,c,u,N=ln.ajaxSetup({},b),p=N.context||N,h=N.context&&(p.nodeType||p.jquery)?ln(p):ln.event,g=ln.Deferred(),m=ln.Callbacks(“once memory”),v=N.statusCode||{},d={},f={},x=”canceled”,A={readyState:0,getResponseHeader:function(n){var e;if(s){if(!o)for(o={};e=Lt.exec(i);)o[e[1].toLowerCase()+” “]=(o[e[1].toLowerCase()+” “]||[]).concat(e[2]);e=o[n.toLowerCase()+” “]}return null==e?null:e.join(“, “)},getAllResponseHeaders:function(){return s?i:null},setRequestHeader:function(n,e){return null==s&&(n=f[n.toLowerCase()]=f[n.toLowerCase()]||n,d[n]=e),this},overrideMimeType:function(t){return null==s&&(N.mimeType=t),this},statusCode:function(n){if(n)if(s)A.always(n[A.status]);else for(var e in n)v[e]=[v[e],n[e]];return this},abort:function(n){var e=n||x;return S&&S.abort(e),E(0,e),this}};if(g.promise(A),N.url=((r||N.url||xt.href)+””).replace(Ht,xt.protocol+”//”),N.type=b.method||b.type||N.method||N.type,N.dataTypes=(N.dataType||”*”).toLowerCase().match(P)||[“”],null==N.crossDomain){t=y.createElement(“a”);try{t.href=N.url,t.href=t.href,N.crossDomain=Mt.protocol+”//”+Mt.host!=t.protocol+”//”+t.host}catch(t){N.crossDomain=!0}}if(N.data&&N.processData&&”string”!=typeof N.data&&(N.data=ln.param(N.data,N.traditional)),Ft(Pt,N,b,A),s)return A;for(c in(l=ln.event&&N.global)&&0==ln.active++&&ln.event.trigger(“ajaxStart”),N.type=N.type.toUpperCase(),N.hasContent=!qt.test(N.type),n=N.url.replace(At,””),N.hasContent?N.data&&N.processData&&0===(N.contentType||””).indexOf(“application/x-www-form-urlencoded”)&&(N.data=N.data.replace(Nt,”+”)):(u=N.url.slice(n.length),N.data&&(N.processData||”string”==typeof N.data)&&(n+=(Ct.test(n)?”&”:”?”)+N.data,delete N.data),!1===N.cache&&(n=n.replace(jt,”$1″),u=(Ct.test(n)?”&”:”?”)+”_=”+Tt.guid++ +u),N.url=n+u),N.ifModified&&(ln.lastModified[n]&&A.setRequestHeader(“If-Modified-Since”,ln.lastModified[n]),ln.etag[n]&&A.setRequestHeader(“If-None-Match”,ln.etag[n])),(N.data&&N.hasContent&&!1!==N.contentType||b.contentType)&&A.setRequestHeader(“Content-Type”,N.contentType),A.setRequestHeader(“Accept”,N.dataTypes[0]&&N.accepts[N.dataTypes[0]]?N.accepts[N.dataTypes[0]]+(“*”===N.dataTypes[0]?””:”, “+It+”; q=0.01″):N.accepts[“*”]),N.headers)A.setRequestHeader(c,N.headers[c]);if(N.beforeSend&&(!1===N.beforeSend.call(p,A,N)||s))return A.abort();if(x=”abort”,m.add(N.complete),A.done(N.success),A.fail(N.error),S=Ft(Ot,N,b,A)){if(A.readyState=1,l&&h.trigger(“ajaxSend”,[A,N]),s)return A;N.async&&0

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

 

Lascia un commento

Il tuo indirizzo email non sarà pubblicato.