-
hyc
I would say, instead of bitcoin p2pool lacked uncle blocks, bitcoin p2pool had a problem with orphan blocks
-
hyc
(which uncle blocks solves)\
-
QuickBASIC
hyc. Yeah I can update it.
-
QuickBASIC
sech1 you merged it before I fixed the missing " in the Windows build section. I'm sorry. I only saw it after I created the PR.
-
QuickBASIC
hyc "P2Pool as a concept was first developed for the Bitcoin blockchain but was never fully realized due to its limitations and because had a problem with orphaned blocks which is solved in Monero P2Pool by uncle blocks.", yes?
-
sech1
Ah, I was too sleepy to see it. Fixed
-
QuickBASIC
sech1 Awesome thank you.
-
QuickBASIC
sech1 s/then select "Build from the menu"/then select "Build" from the menu/
-
QuickBASIC
It probably doesn't matter lol. Messy messy commit history.
-
QuickBASIC
Tangentially related because it's for the monero-site PR for the blog post for P2Pool... is it bad to rebase squash and force push a bunch to times to clean up history?
-
QuickBASIC
hyc added your suggested verbiage.
-
mightysnowman[m]
so I'm confused about coinbase transactions. first off, how is the coinbase reward size decided? can't the miner choose whatever amount they want, since the miner is the one building the block? and how does p2pool make coinbase transactions to multible miners, like if one miner gets added to the coinbase transactions then the block hash changes and mining takes longer?
-
sech1
coinbase reward size is part of Monero consensus, it's calculated for each block
-
mightysnowman[m]
where can I learn more about it?
-
sech1
-
sech1
7.3.1 Block reward
-
abberant[m]
<mightysnowman[m]> "so I'm confused about coinbase..." <- The miners can add whatever they want to the blocks, but nodes wont accept blocks that dont adhere to their conditions, and almost all nodes run the same software with the same conditions
-
mightysnowman[m]
thanks
-
abberant[m]
If p2pool miners can make their own blocks, then how does p2pool prevent them from not paying out miners? I dont understand how merge mining works but I assume p2pool only awards you for shares that have the correct coinbase transactions?
-
sech1
blocks with incorrect payouts will not be accepted by p2pool
-
hyc
QuickBASIC: "because *it\* had a problem"
-
hyc
and I'd say "solved with uncle blocks" - not "by"
-
shadowfax-87[m]
Does anyone know how to direct the blockchain file to a local network location using the --data-dir monerod parameter? What the syntax looks like?
-
QuickBASIC
hyc sorry just seeing this I grok s/by uncle blocks/with uncle blocks/ on line 13, but what's the other suggestion? Emphasis on it?
-
DataHoarder
shadowfax-87[m]: on Linux, you would mount it on a folder, then just point to that folder
-
DataHoarder
on Windows, you would use a ... path with a drive letter?
-
shadowfax-87[m]
DataHoarder: Yes on Linux. But what is the correct syntax? For example -> user⊙110/mnt/data/.bitmonero Is that correct?
-
DataHoarder
you would mount the folder first on your system, then just point to it
-
DataHoarder
so if you mount a folder on /mnt/test
-
DataHoarder
you can just then say /mnt/test/.bitmonero
-
DataHoarder
monerod will not mount it for you, but if you can find where the folder is, it will work that way
-
shadowfax-87[m]
DataHoarder: But in what machine? Is there another form to specify it?
-
DataHoarder
you first need to mount the "remote network location" on the local system
-
DataHoarder
be it using mount manually, adding it to /etc/fstab, or using fuse or similar
-
hyc
QuickBASIC: yeah "it" was missing
-
hyc
LMDB is not supported on network filesystems
-
shadowfax-87[m]
DataHoarder: I think I understand I will try. Thank you.
-
DataHoarder
see hyc's warning first, but if your network FS is POSIX compliant it should work
-
Inge
I'd wager a guess LMDB could run on an iSCSI volume
-
DataHoarder
if it's a block device it would do yes
-
hyc
yeah that ought to work, haven't tried it myself
-
QuickBASIC
hyc I think that got fixed in one of the commits I squashed
-
hyc
ok cool\
-
QuickBASIC
Thank you for your eyes on it though, I'm pretty sloppy as a technical writer. You should have seen the first version that I submitted via the PR lol.
-
hyc
heh
-
grndslm
There you are!!
-
grndslm
curious.... p2pool is using regular monerod to mine, right?
-
DataHoarder
at the moment is using a patched version, pending on a PR to be reviewed and merged, that adds some RPC methods
-
DataHoarder
-
grndslm
and xmrig was separate miner that could get better hashrate, right? is p2pool much lower hashrate, essentially is what i'm asking?
-
DataHoarder
current instructions have building/using a custom monerod build, but should not be needed later on
-
DataHoarder
p2pool is not a miner
-
DataHoarder
you can mine with xmrig here, in fact, I'm doing so at the moment
-
grndslm
so xmrig and p2pool will work together?
-
grndslm
monerod is just necessary for p2p?
-
DataHoarder
p2pool is basically a pool, distributed
-
DataHoarder
monerod is necessary to create your block templates to mine on
-
grndslm
just strange that xmrig didn't use monerod..
-
hyc
it can
-
hyc
for solo mining
-
grndslm
ahh... right
-
DataHoarder
cause xmrig gets the template *usually* from the pool, which gets it from monerod/etc.
-
DataHoarder
monerod < (syncs new blocks and transactions to get fee from, mining template) > p2pool < (gets/sends jobs) > xmrig
-
DataHoarder
typically when mining on centralized/custodial pools xmrig just connects to them, and they do the template/transaction selection on your behalf
-
DataHoarder
on the > is p2pool much lower hashrate
-
DataHoarder
for a pure pool with no bonuses you would get the same hashrate/rewards on average
-
grndslm
i like bonuses :-)
-
grndslm
that's why i'm here. :-D
-
DataHoarder
well, bonuses, I already see lack of fees and you controlling your own setup as a bonus
-
DataHoarder
then some people like xmrvsbeast[m] have added some of their own bonuses, but that's their own choice
-
grndslm
so... i just noticed the [m]'s.... this is like International Team Monero(TM) Support logo?
-
Epsilon
Those are Matrix users
-
grndslm
right... xmrVb was poppin' until I saw the old server is at 0 Bonus level now
-
grndslm
why do i always miss the union meetings?
-
QuickBASIC
grndslm I recall XvB said something about wanting to incentivize the miners on his pool to move over to p2pool, so you're in the right place. Off-topic: is your username a reference to GGG's PoE?
-
grndslm
QuickBASIC: negative. baseball connotation, disemvoweled (sp?)
-
QuickBASIC
Ack grand slam, not ground slam. grndslm
-
grndslm
bingo ;)
-
grndslm
soo... on my windows rig, copying this modified monerod over the original and running this new monerod, p2pool, & xmrig will "just work"? how are xmrig config files setup for p2pool?
-
grndslm
don't see any option on the "old" Configuration Wizard ...
xmrig.com/wizard
-
DataHoarder
New monerod should just work, it is a new rpc
-
DataHoarder
p2pool just exposes a stratum port
-
DataHoarder
connect xmrig to that
-
grndslm
localhost:randomPort?
-
DataHoarder
-
grndslm
monerod needs to be run as administrator?
-
hyc
no
-
DataHoarder
You don’t need a full xmrig config file if you just want to specify to connect to p2pool, but should work too :)
-
grndslm
strictly xmrig && the -o switch is all I need? very nice
-
QuickBASIC
You might want -u x+30000 in there too to set the diff. (Where 30000 represents approx 30 * hashrate expected). i.e 30000 is 1000*30.
-
grndslm
"2021-09-19 21:28:05.445 F Error starting server: Failed to bind IPv4 (set to required)"
-
grndslm
this an OS thing, or a router thing?
-
grndslm
i hate changing things that were working just fine a few days ago...
-
QuickBASIC
What program is giving that error?
-
grndslm
monerod... says it should be run until fully synced
-
QuickBASIC
It stopped working when running with --zmq-pub tcp://127.0.0.1:18083 ?
-
grndslm
hmm... maybe it was already running..
-
QuickBASIC
Yup. That's because it can't bind the interface on a specific port if it's already being used.
-
QuickBASIC
CTRL+SHIFT+ESC then Show All, then look for multiple monerod under "Background Processes"
-
QuickBASIC
If you're serious about running a node on Windows I suggest using something like nssm to run it as a Windows service so you can start and stop it easily.
-
grndslm
jesus, i hate windows
-
grndslm
wtf are there 7 tabs of different running processes?
-
grndslm
monerod wasn't under Processes, but "Details"...
-
grndslm
Windows 10 is bleh
-
grndslm
QuickBASIC: how do i determine best -u x+???? setting for my rig?
-
grndslm
if my expected hashrate is 2000, i should set it to 60000?
-
grndslm
ahh... now i see your i.e.
-
grndslm
think on my last step now....
-
grndslm
opening port 3333 for xmrig.exe
-
grndslm
i'm definitely not a windows person, and the automagical Defender firewall didn't auto-question me about this new connection. :-/
-
DataHoarder
You do not need to set that but if you want to see stats you can put a value there
-
DataHoarder
and btw if you want the raffle, set it to around 600000 otherwise XvB will ignore it
-
grndslm
i think i've pretty much had to approve each new app.... monderod, p2pool, and now xmrig incoming on port 3333 doesn't seem to be working
-
grndslm
it blows my mind that PC manufacturers are still shipping Windows.... even if it is free
-
grndslm
i see i can just allow the app on all ports. brilliant!!
-
QuickBASIC
If you don't like windows, then don't use it. I've got my p2pool set up on a VPS with Ubuntu Linux, so I can just connect my Windows machines to it as if it was a normal pool.
-
QuickBASIC
You could also recycle old hardware, by installing a Linux distribution on it and using it as a server for your miners.
-
QuickBASIC
Hell, if it's only one computer and you're running on Windows, You could run monerod and p2pool in WSL2 (just use netsh to proxy the port), or you could install a docker image.
-
grndslm
just bough this brand new HP computer with 24" monitor for a couple hundo... added better RAM and SSD.... was trying to preserve moving 1TB windows partition to a 500 GB ssd, but doesn't look like that'll be easy, either.
-
grndslm
been a looonnnggg time since using a desktop or windows. need to grease the ol' gears or something like that
-
QuickBASIC
You're better off making sure that your windows license is attached to your Microsoft account and then doing a full reinstall then trying to transfer an EFI partition.
-
grndslm
that's another thing. Microsoft accounts to use an OS? ffs
-
QuickBASIC
You can skip the Microsoft account login, if you disconnect your Wi-Fi during the OOBE.
-
QuickBASIC
But it's better to have a throw away Microsoft account not attached to anything else, because your Windows license and BitLocker keys are tied to it.
-
grndslm
xmrig.exe now saying no active connection... "127.0.0.1:3333 connect error: "connection refused"
-
grndslm
even after adding TCP / UDP incoming connections for xmrig
-
grndslm
QuickBASIC: good to know
-
grndslm
throwaway name used to be a porn star's name. Booted up Xbox One after several years of sitting in a box somewhere, the kids are like: "Who's Ron Jeremy?"
-
QuickBASIC
Are you sure p2pool is running?
-
QuickBASIC
You shouldn't have to open any ports to connect to local host on windows.
-
grndslm
mom and i are like STFU... and they're like: "hey google, who's Ron Jeremy?" changed my name to Scooby Doo, but it took a few days for the windows login name to change. just retardedness all around
-
grndslm
QuickBASIC: yup, definitely running and appears to be running properly
-
QuickBASIC
What come in line are you running to run p2pool?
-
grndslm
height = 2453094
-
QuickBASIC
*command line
-
grndslm
p2pool.exe --host 127.0.0.1 --wallet <wallet_addy_here>
-
QuickBASIC
Try running it without --host 127.0.0.1 just --wallet
-
grndslm
QuickBASIC: same thing... "connection refused"
-
DataHoarder
Is it connected to monerod grndslm
-
DataHoarder
p2pool will not expose stratum port before it is connected to monerod both on RPC and ZMQ ports, and monerod has synced to network
-
grndslm
DataHoarder: is xmrig connected to monerod?
-
grndslm
DataHoarder: thought that's what the purpose of p2pool is.. :-)
-
grndslm
but xmrig is fully synced and running, p2pool appears to be running correctly, as well
-
grndslm
just xmrig isn't working..
-
grndslm
DataHoarder: i am so slow.... so yea, apparently i haven't enabled ports for RPC and ZMQ
-
grndslm
DataHoarder: i'm assuming i should be making p2pool incoming connections open on those ports, right? not monerod
-
grndslm
altho, the newer monerod was updating RPC... hmm...
-
DataHoarder
xmrig is not the thing that syncs
-
DataHoarder
xmrig connects to p2pool for the mining
-
DataHoarder
p2pool connects to monerod to get current Monero network information
-
DataHoarder
without it connecting to Monero, well, you don’t produce valid work
-
DataHoarder
you need to enable RPC and ZMQ on monerod. Please read provided README for p2pool for the command line parameters :)
-
grndslm
DataHoarder: so p2pool does NOT need RPC & ZMQ incoming ports open?
-
grndslm
only mention of either RPC or ZMQ on the p2pool README is the command: "monerod.exe --zmq-pub tcp://......" which i am running
-
grndslm
changed only enabling TCP/UDP to enabling ALL ports in Windows firewall....
-
grndslm
no p2pool won't work at all
-
grndslm
*now
-
DataHoarder
p2pool connects TO those ports
-
DataHoarder
anyhow seems like you are fighting windows more than anything, would do as QuickBASIC recommended
-
grndslm
i'm so close... i'll figure it out soon enough. thanks for the help, DataHoarder
-
DataHoarder
Yep, a few ports to remember, read a bit about monerod help and maybe that has some guides about these Windows issues
-
QuickBASIC
grndslm, I hadn't actually tested this on Windows yet, but I just did on my Windows machine to see what problems you might be running into. In my test, I was able to just run monerod.exe --zmq-pub tcp://127.0.0.1:18083 and p2pool.exe -wallet walletaddresshere and xmrig -u x+30000 -o 127.0.0.1 from an unelevated command prompt and Windows firewall
-
QuickBASIC
prompted me once to allow p2pool to connect to the internet.
-
QuickBASIC
I suggest you go to Windows Settings > Windows Security > Firewall and Network Protection and Reset your firewall. I didn't have to add any manual rules for ports.
-
QuickBASIC
So maybe you put something in there that's causing the issue because you were messing with the firewall settings.
-
QuickBASIC
Also check that your new HP didn't come with any firewall or internet security apps that are running by default. (Norton 360 is pretty common nowadays on HP OEM installs, I see it all the time.)
-
QuickBASIC
grndslm, I was able to repro the error you're seeing on Windows and I think I know the solution. Windows Smartscreen is probably triggering. Run monerod.exe once by double-clicking it, click "More Info", then "Run anyway", then you can run from command line as normal or use Unblock-File PowerShell cmdlet.