I just got a bitcoin node from mynodebtc.com. I set it up and Bitcoin is sync. Now, I am trying to do solo mining and wants to install public-pool. I did the following
git clone https://github.com/benjamin-wilson/public-pool.git
cd public-pool
npm install
cp .env.example .env and I edited it to be like this
Please help as I am not that good in Linux but can definitely follow instructions. THANKS IN ADVANCE
bitcoin node running in your private network 10.51.127.0/24
#My home network is 10.51.127.0/24
BITCOIN_RPC_URL=http://localhost
bitcoin node running undockered on the same PC
needs to add rpcallowip=172.16.0.0/12_ to your bitcoin.conf
#BITCOIN_RPC_URL=http://host.docker.internal**
#I put the 2 commands ABOVE this line in my bitcoin.conf
BITCOIN_RPC_USER=
BITCOIN_RPC_PASSWORD=
BITCOIN_RPC_PORT=8332
BITCOIN_RPC_TIMEOUT=10000
You can use this instead of BITCOIN_RPC_USER and BITCOIN_RPC_PASSWORD
BITCOIN_RPC_COOKIEFILE=/mnt/hdd/mynode/bitcoin/.cookie
Enable in bitcoin.conf with
zmqpubrawblock=tcp://*:3000
BITCOIN_ZMQ_HOST="tcp://10.51.127.153:3000"
#I added the above 2 commands in bitcoinf as well
API_PORT=3334
STRATUM_PORT=3333
#optional telegram bot
#TELEGRAM_BOT_TOKEN=
#optional discord bot
#DISCORD_BOT_CLIENTID=
#DISCORD_BOT_GUILD_ID=
#DISCORD_BOT_CHANNEL_ID=
#optional
DEV_FEE_ADDRESS=
mainnet | testnet
NETWORK=mainnet
API_SECURE=false
Default is "Public-Pool", you can change it to any string it will be removed if it will make the block or coinbase script too big
POOL_IDENTIFIER="Public-Pool"
The problem is every time I run the command "npm run start", I get discord.js error messages like the following:
npm run start
public-pool@0.0.1 start
nest start
src/main.ts:30:75 - error TS2769: No overload matches this call.
Overload 1 of 2, '(module: any, options?: NestApplicationOptions): Promise<NestFastifyApplication>', gave the following error.
Argument of type 'FastifyAdapter<RawServerDefault, FastifyRawRequest, ServerResponse, FastifyRequest<...>, FastifyReply<...>, FastifyInstance<...>>' is not assignable to parameter of type 'NestApplicationOptions'.
Property 'logger' is protected in type 'FastifyAdapter<RawServerDefault, FastifyRawRequest, ServerResponse, FastifyRequest<...>, FastifyReply<...>, FastifyInstance<...>>' but public in type 'NestApplicationOptions'.
Overload 2 of 2, '(module: any, httpAdapter: AbstractHttpAdapter<any, any, any>, options?: NestApplicationOptions): Promise<NestFastifyApplication>', gave the following error.
Argument of type 'FastifyAdapter<RawServerDefault, FastifyRawRequest, ServerResponse, FastifyRequest<...>, FastifyReply<...>, FastifyInstance<...>>' is not assignable to parameter of type 'AbstractHttpAdapter<any, any, any>'.
Types of property 'enableCors' are incompatible.
Type '(options?: FastifyCorsOptions) => void' is not assignable to type '(options: CorsOptions | CorsOptionsDelegate, prefix?: string) => any'.
Types of parameters 'options' and 'options' are incompatible.
Type 'CorsOptions | CorsOptionsDelegate' is not assignable to type 'FastifyCorsOptions'.
Type 'CorsOptionsDelegate' has no properties in common with type 'FastifyCorsOptions'.
30 const app = await NestFactory.create(AppModule, new FastifyAdapter(options));
~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/services/discord.service.ts:4:30 - error TS2305: Module '"discord.js"' has no exported member 'Events'.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~~~
src/services/discord.service.ts:4:38 - error TS2305: Module '"discord.js"' has no exported member 'GatewayIntentBits'.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~~~~~~~~~~~~~~
src/services/discord.service.ts:4:57 - error TS2305: Module '"discord.js"' has no exported member 'REST'.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~
src/services/discord.service.ts:4:63 - error TS2305: Module '"discord.js"' has no exported member 'Routes'.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~~~
src/services/discord.service.ts:4:71 - error TS2459: Module '"discord.js"' declares 'SlashCommandBuilder' locally, but it is not exported.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:14:3
14 SlashCommandBuilder,
~~~~~~~~~~~~~~~~~~~
'SlashCommandBuilder' is declared here.
Found 6 error(s).
I just got a bitcoin node from mynodebtc.com. I set it up and Bitcoin is sync. Now, I am trying to do solo mining and wants to install public-pool. I did the following
git clone https://github.com/benjamin-wilson/public-pool.git
cd public-pool
npm install
cp .env.example .env and I edited it to be like this
Please help as I am not that good in Linux but can definitely follow instructions. THANKS IN ADVANCE
bitcoin node running in your private network 10.51.127.0/24
#My home network is 10.51.127.0/24
BITCOIN_RPC_URL=http://localhost
bitcoin node running undockered on the same PC
needs to add rpcallowip=172.16.0.0/12_ to your bitcoin.conf
#BITCOIN_RPC_URL=http://host.docker.internal**
#I put the 2 commands ABOVE this line in my bitcoin.conf
BITCOIN_RPC_USER=
BITCOIN_RPC_PASSWORD=
BITCOIN_RPC_PORT=8332
BITCOIN_RPC_TIMEOUT=10000
You can use this instead of BITCOIN_RPC_USER and BITCOIN_RPC_PASSWORD
BITCOIN_RPC_COOKIEFILE=/mnt/hdd/mynode/bitcoin/.cookie
Enable in bitcoin.conf with
zmqpubrawblock=tcp://*:3000
BITCOIN_ZMQ_HOST="tcp://10.51.127.153:3000"
#I added the above 2 commands in bitcoinf as well
API_PORT=3334
STRATUM_PORT=3333
#optional telegram bot
#TELEGRAM_BOT_TOKEN=
#optional discord bot
#DISCORD_BOT_CLIENTID=
#DISCORD_BOT_GUILD_ID=
#DISCORD_BOT_CHANNEL_ID=
#optional
DEV_FEE_ADDRESS=
mainnet | testnet
NETWORK=mainnet
API_SECURE=false
Default is "Public-Pool", you can change it to any string it will be removed if it will make the block or coinbase script too big
POOL_IDENTIFIER="Public-Pool"
The problem is every time I run the command "npm run start", I get discord.js error messages like the following:
npm run start
src/main.ts:30:75 - error TS2769: No overload matches this call.
Overload 1 of 2, '(module: any, options?: NestApplicationOptions): Promise<NestFastifyApplication>', gave the following error.
Argument of type 'FastifyAdapter<RawServerDefault, FastifyRawRequest, ServerResponse, FastifyRequest<...>, FastifyReply<...>, FastifyInstance<...>>' is not assignable to parameter of type 'NestApplicationOptions'.
Property 'logger' is protected in type 'FastifyAdapter<RawServerDefault, FastifyRawRequest, ServerResponse, FastifyRequest<...>, FastifyReply<...>, FastifyInstance<...>>' but public in type 'NestApplicationOptions'.
Overload 2 of 2, '(module: any, httpAdapter: AbstractHttpAdapter<any, any, any>, options?: NestApplicationOptions): Promise<NestFastifyApplication>', gave the following error.
Argument of type 'FastifyAdapter<RawServerDefault, FastifyRawRequest, ServerResponse, FastifyRequest<...>, FastifyReply<...>, FastifyInstance<...>>' is not assignable to parameter of type 'AbstractHttpAdapter<any, any, any>'.
Types of property 'enableCors' are incompatible.
Type '(options?: FastifyCorsOptions) => void' is not assignable to type '(options: CorsOptions | CorsOptionsDelegate, prefix?: string) => any'.
Types of parameters 'options' and 'options' are incompatible.
Type 'CorsOptions | CorsOptionsDelegate' is not assignable to type 'FastifyCorsOptions'.
Type 'CorsOptionsDelegate' has no properties in common with type 'FastifyCorsOptions'.
30 const app = await NestFactory.create(AppModule, new FastifyAdapter(options));
~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/services/discord.service.ts:4:30 - error TS2305: Module '"discord.js"' has no exported member 'Events'.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~~~
src/services/discord.service.ts:4:38 - error TS2305: Module '"discord.js"' has no exported member 'GatewayIntentBits'.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~~~~~~~~~~~~~~
src/services/discord.service.ts:4:57 - error TS2305: Module '"discord.js"' has no exported member 'REST'.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~
src/services/discord.service.ts:4:63 - error TS2305: Module '"discord.js"' has no exported member 'Routes'.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~~~
src/services/discord.service.ts:4:71 - error TS2459: Module '"discord.js"' declares 'SlashCommandBuilder' locally, but it is not exported.
4 import { Client, Collection, Events, GatewayIntentBits, REST, Routes, SlashCommandBuilder, TextChannel } from 'discord.js';
~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:14:3
14 SlashCommandBuilder,
~~~~~~~~~~~~~~~~~~~
'SlashCommandBuilder' is declared here.
Found 6 error(s).