You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.
Ethash.prototype.verifySubmit = function(number,headerHash,nonce, cb) {
var self = this
console.log(number);
this.loadEpoc(number, function(){
console.log("EPOC set");
console.log(this.seed);
var a = self.run(headerHash, new Buffer(nonce, 'hex'), self.fullSize);
var result = new BN(a.result);
cb(result);
})
}
run -> verifySubmit -> loadEpoc - > getEpoc // this.epoc is set
-> findLastSeed // I have make many coorection for working ( not work if epoc >= 1 )
-> cacheDB.get //Fixing seed utils
->mkcache // Failed
For debuging
console.log('Ethash.prototype.calcDatasetItem 1');
console.log(mix);
console.log('i:' + i + ' n:' + n + ' r:' + r);
mix.writeInt32LE(mix.readUInt32LE(0) ^ i)
Ethash.prototype.calcDatasetItem 1
<Buffer 62 8e 0a 0d e9 eb 22 c1 0a b0 d7 b3 29 e0 ae f4 f0 b9 f2 5e ef da c5 9d b8 e3 a7 ee 7c 08 66 8a f8 c2 1c 1e b0 13 34 61 4f b9 5a 43 27 24 6d af 1c 86 5c ...>
i:12511692 n:264179 r:16
buffer.js:786
throw TypeError('offset is not uint');
^
The text was updated successfully, but these errors were encountered: