thecomputergenie / kmd-solo-mining Goto Github PK
View Code? Open in Web Editor NEWA local stratum pool for solo mining Komodo
License: GNU General Public License v3.0
A local stratum pool for solo mining Komodo
License: GNU General Public License v3.0
Since July 27 is not working anymore, same problem with knomp but it was fixed
Since this is a shitpile of years of crammed in crap, it needs sorted.
// public members
var txHash;
// TODO: Better coding
// Since this is a shitpile of years of crammed in crap, it needs sorted.
// labels: enhancement
exports.txHash = function() {
return txHash;
};
const scriptCompile = addrHash =>
bitcoin.script.compile([
bitcoin.opcodes.OP_DUP, //76
as per JasonEtco/todo#293 todo bot is sunsetted and alternative needs be used
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/todo.yaml
actions/checkout v4
alstr/todo-to-issue-action v4
package.json
async ^3.0.0
base58-native ^0.1.4
bignum dccf7b7
body-parser ^1.18.2
color ^4.0.0
colors 1.4.0
dot ^2.0.0-beta.0
dotenv ^16.0.0
express 4.19.2
express-dot-engine 1.0.8
express-rate-limit 7.2.0
find-commit ^0.2.2
merkle-bitcoin ^1.0.2
trim-newlines 5.0.0
promise ^8.0.1
node >=21.4
examine and see how much is antiquated leftovers and rework the commandStringBuffer concept.
KMD-solo-mining/lib/stratum/peer.js
Lines 6 to 11 in 53a4eca
todo
comment in 53a4eca. It's been assigned to @TheComputerGenie because they committed the code.this diff is "wrong" and the reason all the rest of the math is off.
KMD-solo-mining/lib/stratum/algoProperties.js
Lines 4 to 7 in 53a4eca
todo
comment in 53a4eca. It's been assigned to @TheComputerGenie because they committed the code.npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/BitGo/blake2b-wasm.git
npm ERR! [email protected]: Permission denied (publickey).
it works for a couple of minutes then restarts and shows the next message:
node:buffer:323
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at Function.from (node:buffer:323:9)
at scriptCompileP2PK (/home/aldoserv/KMD-solo-mining/lib/stratum/transactions.js:26:12)
at exports.createGeneration (/home/aldoserv/KMD-solo-mining/lib/stratum/transactions.js:97:25)
at new BlockTemplate (/home/aldoserv/KMD-solo-mining/lib/stratum/blockTemplate.js:35:35)
at JobManager.processTemplate (/home/aldoserv/KMD-solo-mining/lib/stratum/jobManager.js:79:32)
at /home/aldoserv/KMD-solo-mining/lib/stratum/pool.js:418:66
at itemFinished (/home/aldoserv/KMD-solo-mining/lib/stratum/daemon.js:117:36)
at /home/aldoserv/KMD-solo-mining/lib/stratum/daemon.js:124:88
at parseJson (/home/aldoserv/KMD-solo-mining/lib/stratum/daemon.js:69:17)
at IncomingMessage. (/home/aldoserv/KMD-solo-mining/lib/stratum/daemon.js:75:41) {
code: 'ERR_INVALID_ARG_TYPE'
}
Node.js v21.5.0
[Pool][Thread 0][12/26 20:35:53] Fork 0 died, spawning replacement worker...
Greetings. Does this remote control work with the manners of Z15 420ksol. If it works, which Diff should be set.
Do we leave the Worker and password fields empty in the manner settings?
Please install our new product, Sonatype Lift with advanced features
Fix messaging issues.
KMD-solo-mining/lib/stratum/transactions.js
Line 120 in 5311f52
// assign
txHash = tx.getHash().toString("hex");
// TODO: Better messaging
// Fix messaging issues.
// labels: enhancement
return txHex;
};
been testing and installed easily but not accepted shares from authorized miner.
also got error, i think on redis server
CLI: CLI listening on port 17118
[Init][Thread 0][02/14 20:41:48] Spawned proxy on 1 threads(s)
[Website][Thread 0][02/14 20:41:48] Example app listening at http://0.0.0.0:8088
[Blocks][Thread 0][02/14 20:41:48] Current block would pay: 3.00262746
[PoolWorker][Thread 0][02/14 20:41:48] Stratum Pool Server Started for Komodo [KMD]
Network Connected: Mainnet
Current Connect Peers: 16
Network Hash Rate: 99.72 MH
Current Block Height: 2265451
Stratum Port(s): 3850, 3851
Current Block Diff: 407555545.0011091
Network Difficulty: 411209501.6595058
Block polling every: 5 seconds
[PoolWorker][Thread 0][02/14 20:41:48] p2p connection successful
[PoolWorker][Thread 0][02/14 20:42:48] Authorized RQHibKZzKSzkVTHqgheFm7m7mJ7qbXsLFV.z9-50x131:x@::ffff:136.32.180.78
[PoolWorker][Thread 0][02/14 20:42:48] Unknown stratum method from RQHibKZzKSzkVTHqgheFm7m7mJ7qbXsLFV.z9-50x131 [::ffff:136.32.180.78]: mining.multi_version
[PoolWorker][Thread 0][02/14 20:42:58] No new blocks for 70 seconds - updating transactions & rebroadcasting work
[Blocks][Thread 0][02/14 20:42:58] Current block would pay: 3.00536218
[PoolWorker][Thread 0][02/14 20:44:08] Block notification via p2p -->> Block: 2265451
[Blocks][Thread 0][02/14 20:44:08] Current block would pay: 3.0065269
[PoolWorker][Thread 0][02/14 20:44:31] Block notification via p2p -->> Block: 2265452
wait loop data: {"error":{"code":-1,"message":"CreateNewBlock(): create block failed"},"response":null,"instance":{"host":"127.0.0.1","port":8770,"user":"entrust","password":"entrust","index":0}}
[Blocks][Thread 0][02/14 20:44:34] Current block would pay: 3
[PoolWorker][Thread 0][02/14 20:44:34] Block notification via RPC polling
[PoolWorker][Thread 0][02/14 20:45:44] No new blocks for 70 seconds - updating transactions & rebroadcasting work
[Blocks][Thread 0][02/14 20:45:44] Current block would pay: 3.00181044
[PoolWorker][Thread 0][02/14 20:46:54] No new blocks for 70 seconds - updating transactions & rebroadcasting work
[Blocks][Thread 0][02/14 20:46:54] Current block would pay: 3.00375574
[PoolWorker][Thread 0][02/14 20:48:04] No new blocks for 70 seconds - updating transactions & rebroadcasting work
[Blocks][Thread 0][02/14 20:48:04] Current block would pay: 3.00456758
[PoolWorker][Thread 0][02/14 20:48:55] Block notification via p2p -->> Block: 2265453
[Blocks][Thread 0][02/14 20:48:55] Current block would pay: 3
[PoolWorker][Thread 0][02/14 20:50:05] No new blocks for 70 seconds - updating transactions & rebroadcasting work
[Blocks][Thread 0][02/14 20:50:05] Current block would pay: 3.000624
[PoolWorker][Thread 0][02/14 20:50:14] Socket disconnected RQHibKZzKSzkVTHqgheFm7m7mJ7qbXsLFV.z9-50x131 [::ffff:136.32.180.78]
[PoolWorker][Thread 0][02/14 20:50:47] Authorized RQHibKZzKSzkVTHqgheFm7m7mJ7qbXsLFV.z9-50x131:x@::ffff:136.32.180.78
[PoolWorker][Thread 0][02/14 20:50:47] Unknown stratum method from RQHibKZzKSzkVTHqgheFm7m7mJ7qbXsLFV.z9-50x131 [::ffff:136.32.180.78]: mining.multi_version
[PoolWorker][Thread 0][02/14 20:51:15] No new blocks for 70 seconds - updating transactions & rebroadcasting work
[Blocks][Thread 0][02/14 20:51:15] Current block would pay: 3.00465397
[PoolWorker][Thread 0][02/14 20:52:25] No new blocks for 70 seconds - updating transactions & rebroadcasting work
[Blocks][Thread 0][02/14 20:52:25] Current block would pay: 3.00527797
[PoolWorker][Thread 0][02/14 20:52:35] Block notification via p2p -->> Block: 2265454
[Blocks][Thread 0][02/14 20:52:35] Current block would pay: 3.00565241
Error: Cannot find module 'express-rate-limit'
Require stack:
Hello
When I do npm start
I'm getting an error like this. Can you please help? Everything seems normal. Is there something I'm missing?
root@solo:~/KMD-solo-mining# npm start
[email protected] start
node --no-deprecation init.js
/root/KMD-solo-mining/lib/stratum/transactions.js:5
var dateFormat = require("dateformat");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /root/KMD-solo-mining/node_modules/dateformat/lib/dateformat.js from /root/KMD-solo-mining/lib/stratum/transactions.js not supported.
Instead change the require of dateformat.js in /root/KMD-solo-mining/lib/stratum/transactions.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/root/KMD-solo-mining/lib/stratum/transactions.js:5:18) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v21.5.0
root@solo:~/KMD-solo-mining#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.