301 Commits

Author SHA1 Message Date
Benjamin Wilson
277aa10144 StratumBaseMessage validation 2024-07-05 08:33:19 -04:00
Benjamin Wilson
f08103bd8c open stratum base message to accept number or string 2024-07-05 08:19:37 -04:00
Benjamin Wilson
811e7972f9 always clear jobs on diff change 2024-07-05 08:14:09 -04:00
Benjamin Wilson
c654a706ae ensure block template is fresh 2024-07-04 20:21:53 -04:00
Benjamin Wilson
e0239d2805 handle partial socket data 2024-07-04 20:21:41 -04:00
Benjamin Wilson
fc96b9ea45 getBlockTemplate improvements 2024-07-04 16:41:15 -04:00
Benjamin Wilson
ad1f32cc2c ensure getblocktemplate always returns a value 2024-07-03 14:31:33 -04:00
Benjamin Wilson
917d312211 remove dead code 2024-07-03 14:28:28 -04:00
Marcel Hernandez
76e2426c30
add option to conect to Bitcoin RPC with cookie file (#40) 2024-06-10 07:43:47 -04:00
Oscar Fawkes
098fe2867a
read full lines of json-rpc from clients (#46)
Lgtm, thanks for your contribution
2024-06-10 07:41:18 -04:00
Michael Schmid
6e3902b732
nodejs requires curl for some dependencies, make sure they are part of the build container (#42) 2024-05-27 18:03:58 -04:00
Georges
8c62817f73
stratum: set_difficulty should always be a notification (#32) 2024-02-23 12:51:27 -05:00
Ben Wilson
9f723782ab optional password 2024-02-20 19:17:20 -05:00
Ben Wilson
2e296c00d5 client statistics share calculation 2024-02-18 14:56:08 -05:00
Ben Wilson
437b0c9bc4 updated at, hashrate calculation 2024-02-18 12:32:21 -05:00
Ben Wilson
deed775d55 change coinbase tag 2024-02-17 20:31:39 -05:00
Ben Wilson
ed537658ac misc 2024-02-17 20:12:09 -05:00
Ben Wilson
29e0d884e3 share updates 2024-02-17 18:40:14 -05:00
Ben Wilson
e35bacc648 optimized share calculation and updating 2024-02-17 18:22:09 -05:00
Arman The Parman
d486c778a3
Docker changes (#29)
* Update README.md

I needed to change 
-v .env:.env 
to
-v .env:/.env
to get it to work.
Docker (Linux) was not happy otherwise.

* Update Dockerfile

Added cmake to Dockerfile, so Pi4 (ARM chip) will work.

* Update README.md

Corrected volume mount
2024-02-13 14:41:06 -05:00
WantClue
1bf32d075a
adding pool endpoint (#23) 2024-02-08 10:31:52 -05:00
Ben Wilson
3fac0dfaa9 zmq await 2024-01-24 11:50:59 -05:00
Ben Wilson
dadb03ed1c re-add zmq with pre-built binaries and pinned version 2024-01-23 21:24:33 -05:00
Ben Wilson
a98ec3879e block template fix for NULL NODE_APP_INSTANCE 2024-01-23 18:40:50 -05:00
Ben Wilson
e29caad377 remove cache typeorm option 2024-01-22 17:38:08 -05:00
Ben Wilson
537e06ef50 turn back cache sizes to default for sqlite 2024-01-22 17:34:46 -05:00
Ben Wilson
300fd99067 bug fixes 2024-01-15 20:03:55 -05:00
Ben Wilson
1d6670051f reduce heartbeat updates 2024-01-15 19:47:04 -05:00
Ben
982194b4e9 ClientStatisticsEntity rowid 2023-12-24 17:57:03 -05:00
Ben
d97dafe185 separate background tasks 2023-12-24 17:54:40 -05:00
Ben Wilson
ab1e7bb8a0 batch save share statistics 2023-12-23 19:31:14 -05:00
Ben Wilson
76285ba728 stratum jobs array to dictionary 2023-12-23 19:30:19 -05:00
Ben
38fda85f63 back port some changes from postgres 2023-12-23 19:30:05 -05:00
Seth For Privacy
8f6eeaba73
Dockerfile improvements and automatic Github Actions builds (#14)
* Initial GA push

* Fix Actions

* Remove test runs

* Update Trivy scanner to latest syntax

* Remove unnecessary build stage

* Switch to slim base images

* Minor Dockerfile improvements

* Fix slim builds

* Fix slim builds round 2
2023-12-12 20:11:36 -05:00
Thomas Shufps
f7303d73af
Feat/regtest network (#11)
Feat/regtest network
2023-12-03 20:45:21 -05:00
Ben
8075c83fe2 batch insert 2023-12-01 22:08:08 -05:00
Ben
c6885abd71 undo stratum changes 2023-12-01 21:51:47 -05:00
Ben
8657ffec78 reduce connections 2023-12-01 20:18:48 -05:00
Ben
c39de1387b try to ramp connections 2023-12-01 20:18:26 -05:00
Ben
f1d470b2c6 increase mmap_size 2023-12-01 19:32:51 -05:00
Ben
071deccbd7 test 2023-12-01 00:00:51 -05:00
Ben
37b92329ba change cron to interval 2023-11-30 23:50:13 -05:00
Thomas Shufps
eef8978250
Adds a full setup (bitcoin core + public-pool) (#10)
* full setup bitcoin + public-pool for docker
2023-11-28 08:07:57 -05:00
Ben
3ed6b8f5c4 bug 2023-11-24 16:18:43 -05:00
Ben
5ee67bb5fe bug 2023-11-24 15:43:09 -05:00
Ben
b9af79978f RPC load reduction 2023-11-24 14:56:35 -05:00
Thomas Shufps
2aa0ebe587
some changes for docker setup (#9)
* added SIGTERM handler for graceful docker shutdown

* added error message

* added example for bitcoind running on the host undockered

* added docker-compose and extended example

* added docker-compose section to README

* addes some note for rpcallowip

* added restart policy

* added DB folder for persistent data

* added $NETWORK as prefix for database path to not get in conflict with testnet setup

* used env variables for stratum and api ports
2023-11-19 14:16:50 -05:00
Jeremy Chabernaud
a10aa9c52f
feat: add docker (#6)
* misc: improve match version of types/node

* feat: improve stop with sigint signal

* feat: add docker

* feat: add docker in readme
2023-11-15 15:33:05 -05:00
Benjamin Wilson
a1197fc77e
Merge pull request #8 from dustinb/zeromq
Use zeromq if configured
2023-10-15 18:06:10 -04:00
Dustin Butler
c7e23389aa Use zeromq if configured 2023-10-15 15:47:38 -06:00