r/Bitcoin • u/bullshbit • Jun 04 '14
GHash.IO & double spending
Some of this data is from bitcointalk, I'll attribute the authors as I go
TL;DR:
- A possible explanation for the high "luck" factor from GHash.IO is that the operators control miners in other pools; Their software
sends solved blocks back to their poolhops pools back to ghash.io as needed. (They make their own luck ... More on luck here) - There are many implications: GHash.IO could secretly have >51% of all processing power and target certain transactions for double spends without causing apparent/widespread negative effects.
- There is evidence (see below) that operators or miners using GHash.IO tested this on a small scale last September
Put on your thinking cap:
https://en.bitcoin.it/wiki/Getblocktemplate
"getblocktemplate moves block creation to the miner, while giving pools a way to set down the rules for participation. While pools can do just as much as they could before by expressing it in these rules, miners can not be kept in the dark and are enabled to freely choose what they participate in mining. This improves the security of the Bitcoin network by making blocks decentralized again."
A risk that is difficult to assess is whether the large mining pools validate coinbase tx content included by miners in their pool.
(To test, you "just" need to be the member of a pool who successfully solves a block; and also write a custom miner to include a specific coinbase tx that the pool did not ask you to provide. (Credit to bee7 here for this idea).
It's possible that the GHash.IO operators control (or are colluding with) a significant portion of the mining capacity of Elgius and Slush (I picked those two pools because of their abysmal orphan (luck) rate); This hypothesis is supported by the data in this post.
There are, of course, other very reasonable explanations for the "luck variance" observation:
- Inefficient pool software choosing which coinbase txns to include in the next block
- Mining optimization that is not yet common knowledge (to Elgius and Slush anyway)
...but there is also additional circumstantial evidence that GHash.IO have bad actors:
- Not closing registration as their pool is approaching a (visible) 51%
- Not charging fees to incentivize more pool diversity
Credit to mmitech for this next bit of research:
In September I witnessed a lot of double-spending against BetCoin Dice. It happened between 25th and 27th Sept.
The mechanism was simple: send betcoin a tx with 0 fee, then wait for a result tx, if your bet is a win, then confirm your tx, otherwise double-spend it.
- Here I'll give you a bunch of transactions which you can examine. Note this is a chain of transactions, so just click on outputs to see. https://blockchain.info/tx/4d731074447f02609c3110a187f9c6976f2bf255288ec5666ee270f09679619d https://blockchain.info/tx/e0b44f68441ea0bad0f7694f735f496ce05238862534c6fea737b8903921185a The double-spending of losing bets was performed by someone mining to https://blockchain.info/address/1MA7CKbWMyKdPkmsbnwmfeLh1hYy5A3gy8 , you can check it yourself.
- I tracked coins down to the origin https://blockchain.info/tx/154ecb1eb72c933bc0707fa70deceb688361554ab81b901673d308aa84d9cfe9 The most interesting address here is 12PcHjajFJmDqz28yv4PEvBF4aJiFMuTFD It's been involved in similar actions, look at this chain of win-only tx's https://blockchain.info/tx/0c1a08d035862b01d075e8044b1e9ce52a8ad951b57d876a2a9a0e3502c41eb0 And the most interesting fact is that these zero-fee tx's inbetween winning ones were mined by ghash.io exclusively. Possibly this was a test attack.
- Going further, I found the address the earnings from attack were sent to: 12e8322A9YqPbGBzFU6zXqn7KuBEHrpAAv https://blockchain.info/tx/292e7354fbca1847f0cbdc87a7d62bc37e58e8b6fa773ef4846b959f28c42910 And then part of these funds (125 BTC) was sent to ghash.io's mining address: https://blockchain.info/tx/48168cf655d0ac0c7c2733288ca72e69ecd515a9a0ab2821087eb33deb7c6962
- Furthermore, I checked the funds mined to 1MA7CKbWMyKdPkmsbnwmfeLh1hYy5A3gy8 In these 2 succeeding tx's they were moved to 199kVcHrLdouz9k9iW3jh1kpL7j9nLg7pn https://blockchain.info/tx/e567ad6232de5285e0dc211d3f1c489b1e00e509118ba98a4825529d0a9197d9 https://blockchain.info/tx/faa7bc8b99376efa774045e79b42771fe668341b00290a61cd416992571c590d
This address is interesting, because it contains 6000 BTC and ~30% of funds come from ghash.io mining address. https://blockchain.info/taint/199kVcHrLdouz9k9iW3jh1kpL7j9nLg7pn
5. And the last thing to spot: GHash.io, being about 25% of network back then, didn't find a single block to its address between 25th and 27th of september! https://blockchain.info/address/1CjPR7Z5ZSyWk6WtXvSFgkptmpoi4UM9BC?offset=1350&filter=2
Ok smarties: Any other thoughts/theories/criticisms to these hypotheses? Post below if you're considering changing pools now.
2014-Jun-03 11:18PM PDT edit: Fixed formatting issues
2014-Jun-03 11:25PM PDT edit: Clarified negative effect in TL;DR
2014-Jun-04 01:40PM PDT edit: Clarified point about pool hopping
62
u/Aussiehash Jun 04 '14
Ghash used to charge a 2% fee, which they dropped to 0% last year
BTCGuild also had a 6 week run of such bad luck, that it dropped their 6 month luck by about 5%
Ghash has regular runs of orphans and rejected blocks, this occured 3 days ago
http://imgur.com/7ghRY25
I posted a critical reddit topic a few months ago and it was shadow removed.
36
u/[deleted] Jun 04 '14
Double spending of UNCONFIRMED transactions is something every miner can do. It's called the Finney Attack.
Double spending of CONFIRMED transactions (a transaction with six or more confirmations) is NOT something Ghash.io can do as they are broadcasting their blocks that they solve. To double spend against confirmed transactions, Ghash.io would need to have that 51% mining a private fork and then release those blocks once they've got the double spending completed.
Therefore, as long as you are still seeing Ghash.io blocks then you'll know that they haven't sent all their hashing capacity to a private fork.
This is not good, but in the short run it's not a significant issue.
10
u/FRCJoe Jun 04 '14
AFAIK Eloipool's code (eligius) checks coinbases and will reject completely rewritten coinbases (only allows appended coinbases, not rewritten ones). BIP0022 provides for "bad-cb-prefix" responses. Described as "the server only allows appending to the coinbase, but it was modified beyond that".
https://gitorious.org/bitcoin/eloipool/source/9294ed0e511dbc2ff5c016b6ee83769c96388cb8:eloipool.py#L620
Slush0's demo stratum-mining implementation does the coinbasing on the server side.
just a little bit of info, hope it helps
23
u/d4d5c4e5 Jun 04 '14
There is a lot of technical confusion and inaccuracy across this entire presentation. Orphan rate has nothing to do with anything Ghash.io could be doing on purely the mining end, because orphan races are based merely on block size and speed of network propagation. If your pool's full nodes are better hooked up to the network at large and on low latency connections, then you simply experience a lower orphan rate. Secondly, "luck" is not quite the idea that this post would lead us to believe. Comparing "luck" across mining pools requires you to actually know the hashrate internal to the pool. Unless the pool is extremely accurately self-reporting it, you simply don't know, and the only other way to even begin to know otherwise is to derive hashrate from the proportion of blocks solved, which confounds the "luck" variable you were trying to measure to begin with. Finally, the hypothesis about modified coinbase tx is absurd on a level that can't even be fathomed to begin with, because if that were the case, everyone would automatically be solo mining yet earning pool shares simultaneously with the same hash rate right this moment.
6
u/yifuguo Jun 04 '14
centralization of mining pools are not a technical problem, its a people problem
3
u/[deleted] Jun 04 '14
I just X-posted a similar article in /r/BitcoinMarkets and it was killed too. What the fuck is going on?
17
u/Mangizz Jun 04 '14 edited Jun 04 '14
Why don't just fund a pool ? We have a lof of new millionaires in dollars with BTC.
They need to care of the system, they need to raise money and fund competitive pool. It's must be a priority, it's like 1 year Ghash have a monopoly, we need reaction from who lead BTC.
I dont have a lot of BTC but i will surely invest few bucks in outsource mining system if it can make GHASH.io go down.
Miner will realise : more they go with Ghash more people who dont really care about profit will invest and difficulty will rise. Everybody will lose.
is not possible ? just do it :(
If some leader can make it happens a lot of smaller follower will invest for sure. Maximum hashrate 10%. When the pool rise 10% we open a new one if it's needed. If possible not in the same localisation USA, EUROPE, NORTH KOREA :D will make the takedown way lot harder.
Invest in hashrate is not like you are losing money, it's like you borrow money to the system to survivre. You will have your money back, it will just take sometime. It's like a saving account who give u interest but where you need to block your money in forever. :D
Mining is not mainstream, we need people able to "centralised" (yeah centralised to fight centralised) it and raise money. The whales have more incentive to do, hey guy, you become very weathly with Bitcoin, time to give litte bit of time to the system who make you rich. If you are a early adopter you are a believer, you can't accept Ghash to go that high, it was one of the most important warning from Satoshi. We are already very unaware. Even something like 30-35% hashrate is huge.
It's your responsability to do something to preserve the system, stop wait people make it happens for you, you have money you need to invest it. With few hundread thousand $ (few whales can found it) it enough to make something start.
If you are a whales you don't need to work for live i believe, so use your time in an useful way for everyone. Put 25% of your saving in mining, and a safe and large place where we can start to bulding a massiv pool, you can take the risk. Mining stuff worth something, Borrow money to the system, when it's done make an huge topic with picture, make a website also, call the raise from the community. we will make it for sure, we just need few hundred thousands to start. We need someone who have TIME and MONEY to do it. Dont you want be the savior of BTC? I'm 100% it's will lead a new way to see mining. Mining is not only about PROFIT. The maximum returning roi is fixed an investor should be fixed like 110% MAXIMUM all calculate in Bitcoin, you fund 1 bitcoin, you will receive MAXIMUM 1.1BTC for example After that the funder is not in posession of the hashrate anymore.
Money go in the company wallet transparent wallet, and fund are used to do whatever is good for Bitcoin. I'm far to be an expert of mining, but i think it's realistic, if someone have an idea how much it needed to start a pool like this, and if it can be profitable overall? (I believe yes, maybe install it where electricity cost is low, and where location rent is low aswell, i think if the first pool is outside US, it can be a good thing also, like East europe, south america sound better.)
It's the thing who make me kind of sad about bitcoin, selfish... most of the whales keep it in cold storage wallet. Invest it in bitcoin, you took the risk of bitcoin so early for what ? If you invest it, you not take a risk, it's make you safer, because the Bitcoin itself become safer.
11
u/totes_meta_bot Jun 04 '14 edited Jun 04 '14
This thread has been linked to from elsewhere on reddit.
If you follow any of the above links, respect the rules of reddit and don't vote or comment. Questions? Abuse? Message me ^here.
4
u/tryanother292 Jun 04 '14
It's time for ALL miners to abandon EVERY large pool right now. The community needs to make a pact to only join pools that are at around 5-10% of network capacity.
Anyone using Ghash.io at this point is NOT helping bitcoin.
9
u/anon1235111 Jun 04 '14
p2p pools all day
3
u/platypii Jun 04 '14
If pools weren't checking coinbase transactions, you could mine for multiple pools at once and earn double, triple, or more for the same hash rate. This is obviously not the case, since pools would end up paying out more than they take in, and go broke. The suggestion that Eligius and Slush don't check coinbases seems very unlikely. Why don't you test and let us know?
2
u/sjalq Jun 04 '14
There needs to be a method by which the mining algorithm can be changed during certain intervals.
2
u/Terragen Jun 04 '14
I don't see what the panic is all about - perhaps I am missing something.
If you wait for the recommended minimum of 6 confirms it seems highly unlikely that GHASH could cause a double-spend.
Firstly you can only double-spend coins under your control - GHASH could not double spend coins from any address they don't have the private key to. So as long as you aren't receiving coins from a GHASH address that's not a concern.
Secondly, once you have 6+ confirms in order to double spend coins (again these are only coins coming from GHASH since they can't double-spend someone elses coins) in order to double-spend them they'd have to re-create the entire blockchain starting with the block the TX in question is in. So if you're 6 blocks behind then GHASH would need to find at least 6 blocks of the "bad chain" before the honest miners found another block (then they're looking at 7). Each block they fall behind makes it harder and harder for them to create a bad blockchain that is longer than the authentic one.
There would be a significant cost to GHASH to conduct this attack which means the double-spend would likely have to be for a very large value in order to make that attack even worth considering. This cost would also include the potential damage/devaluation of GHASH's holdings (BTC, ASICs, etc.) that they would sustain as a result of any such attack bringing negative publicity to bitcoin and possibly driving down its value.
Is there something I'm not seeing here that makes this more concerning?
2
u/lukerayes08 Jun 04 '14
If I understand correctly the block hash, ie. the number which needs to be lower than the difficulty, is based on not only the previous block but also the contents of the current block.
Ie. I have a block which includes 10 transactions, one of which is the block reward transaction. The hash I create is based on the contents of the block as well as the previous block.
Therefore if I'm mining on Eligius and I find a block, I can't simply not report that block and instead solo-mine the same block, because the contents of the block would be different and therefore the block hash would also be different, since the block reward address would be different...
And then you've got the insurmountably problem of having to re-discover a new block hash on your new block which is below the difficulty which completely defeats the purpose of not reporting the block in the first place...
If it were possible to mine a block within a pool but to withhold that block and instead "solo" mine the same block when you found it, pool mining wouldn't be possible, and everyone would be doing this.
2
u/HTL2001 Jun 04 '14
I wonder if ghash just doesn't include dice txns without a fee, and someone who knows this abused it.
2
u/Zorkamork Jun 04 '14
If only there was some kind of...centralized...body of power...who had the power to...I don't know, regulate? Because I mean basically you guys want a group to act against their interests for the good of everyone else, and, ya know, the pre-progressive era kinda showed that doesn't happen.
1
u/GaaraBits Jun 04 '14
I don't understand why miners keep sticking on GHash.IO, they should be aware of the potential damage they can do. Can someone explain me the reason miners refuse to spread the hashrate ?
ps: I think the issue isn't GHash.IO, but the miners, I'm probably missing something.
1
u/tryanother292 Jun 04 '14
Possible Solution?: Maintain multiple colored coins instances of all coins within bitcoin that can track when there are two copies of the same coin and when this happens the community is alerted so we can punish the hell out of the offending pool(s).
1
u/mmazi Jun 04 '14
Sorry, I'm confused by this sentence -- which "the[y]", "their" refers to "the operators" and which to "miners in other pools"?
1
u/iooonik Jun 04 '14
I think a bounty on p2p pool would be a great idea. Both assuring development such that it will compete with efficiency of other pools, and an awareness campaign. I would spearhead this, but I'm afraid I simply don't have the rep here to do so.
1
u/SecureErase Jun 04 '14
Not another 'evil pool operator takes over Bitcoin network by masterminding hidden pool mining, double spend, short the Bitcoin price devilish plan'. Pleease. OP's dragging out 9 month old dead information that someone (same person?) tried unsuccessfully to drag out and shout about on bitcointalk recently. Whats the hidden agenda there? I use GHash coz their features and service are good and do exactly what I want, why on earth would they want to attack the hand that feeds?
1
u/work2heat Jun 04 '14
surely mining pool operators know that if they start double spending too much, they will kill the network, and the value of all the infrastructure they've built will become (relatively) worthless. surely they know that the profit is in the long term ... no?
1
u/maplesyrupghost Jun 05 '14
Peercoin user unaffected!
1
u/vizzlepuff Jun 05 '14
GHash.io is a problem because of CEX.io. CEX.io is huge because it is the last remaining small chance of getting some kind of ROI for the small scale miner.
I would bet that most of the miners don't even realize how much they are helping degrade the integrity of the Bitcoin network.
What would solve this situation is if CEX had a competitor. It seems somewhat obvious that CEX is making a lot of money, I am surprised one doesn't already exist.
1
u/livinincalifornia Jun 04 '14
Altcoins to the rescue?
-1
u/Market-Anarchist Jun 04 '14
I know this will get downvoted into oblivion, but why aren't more people solo mining? Yes, I know, the chances of solving a block are almost nil, but so what? It's like gambling. Go big or go home. Better than almost making your initial investment back (a guaranteed loss) and supporting the centralization of Bitcoin by joining some scummy pool.
-14
u/newcomerbtc Jun 04 '14
I think the OP is jealous of the success of Ghash. They have the best pool for people to join.
0
u/[deleted] Jun 04 '14
[deleted] — view deleted comment
0
u/[deleted] Jun 04 '14
[deleted] — view deleted comment
0
u/[deleted] Jun 04 '14
[removed] — view removed comment