Bitcoin Forum
June 27, 2024, 01:47:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Warning about block reorg?  (Read 410 times)
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 01, 2018, 05:44:51 PM
 #1

Is there a warning in case of successful attack-51 block reorganization in Bitcoin Core?

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
aliashraf
Legendary
*
Offline Offline

Activity: 1456
Merit: 1174

Always remember the cause!


View Profile WWW
December 01, 2018, 06:27:58 PM
 #2

No, there is not such thing.
bones261
Legendary
*
Offline Offline

Activity: 1806
Merit: 1827



View Profile
December 01, 2018, 06:53:10 PM
 #3

This is not standard for the Bitcoin core implementation. You will probably have to find a program that monitors the blockchain and warns you if a reorg takes place. I believe several exchanges implement such warning systems in order to mitigate the damage already done by a double spend attack.
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 01, 2018, 07:02:37 PM
 #4

This is not standard for the Bitcoin core implementation.

I can write such program myself.
But why not to have a warning message in reference client?
I think such feature would be useful... Hmm.. would be interesting?
No. Pleasant? Doubt. My English is poor. I can not properly define my feelings.

Do you think we need such warning in reference client? I vote for it.

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
bones261
Legendary
*
Offline Offline

Activity: 1806
Merit: 1827



View Profile
December 01, 2018, 07:20:46 PM
 #5

Do you think we need such warning in reference client? I vote for it.

If we can think message which won't confuse user or make user panic, then i don't have reason to disagree.
Otherwise, such warning should only be shown for bitcoin-cli users or on debug window.

Additionally, re-org doesn't mean 51% attack is happening. There's chance it's done intentionally for good non-hostile due to accidental hard-fork (just like after qt 0.8 release in 2013) or some nodes mines/runs on invalid blocks (such as overflow bug in 2010).

Well, it could clue someone in that something may be going on. Even if the reorg is benign, the node user may discover sooner that they should update their software. Plus, since it just your software indicating a reorg took place, it cannot be as open to attack like the alert system was.
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 01, 2018, 07:29:59 PM
 #6

If we can think message which won't confuse user or make user panic,

It will be too late for panic Smiley
And of course it will confuse 99% users Smiley
But I think that we should have it in client.

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 02, 2018, 06:03:08 AM
Last edit: December 02, 2018, 03:33:57 PM by amaclin1
 #7

You're right, but we should find correct message which don't confuse user. For example,
What if we just pass optional command-line argument(s) / conf-file parameter(s) to a client?
Something like (this is just example)

Code:
-reorgwarnblocks=3                  # how many blocks have been reorganized         
-reorgmessage="Alert. Reorg!"       # for me it will be more than enough
-reorgcommand=somethng.sh           # command to run in case of

Most of users with default parameters (no warning and actions by default) will not be confused at all.


Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
Zin-Zang
Member
**
Offline Offline

Activity: 364
Merit: 13

Killing Lightning Network with a 51% Ignore attack


View Profile
December 02, 2018, 06:44:02 AM
Last edit: December 02, 2018, 07:04:25 AM by Zin-Zang
 #8

Is there a warning in case of successful attack-51 block reorganization in Bitcoin Core?


All you have to do is Monitor your Debug Log, and it reports any reorgs, even shows which blocks were reorg.
Quote
REORGANIZE
REORGANIZE: Disconnect 1 blocks; abbf58ed9574e5c686fe..80fcae8fac3d8df7280f
REORGANIZE: Connect 2 blocks; abbf58ed9574e5c686fe..d3912153810ff7b496c2
REORGANIZE: done

A reorg is not necessary a 51% attack. It is just your client just noticed a longer chain of blocks with a higher difficulty and switched to it.

Most reorgs are limited to a small group that for some reason just did not see the longer chain with higher difficulty,
maybe some segmentation on the internet.

Once a reorg occurs , your client automatically resend any coins , that were originally sent on the short fork,
it is only if you had blocked it from sending will a double spend occur and only if the person you were sending too, was also on the short fork at the same time.
Odds are they were not, so a double spend could not happen during normal reorgs, as most people are totally unaware of them until they are over.

51% attack is the miners rewriting the blockchain for all nodes,
most reorgs are limited to very few nodes at one time for a very brief time period.  Smiley
The blocks with lower difficulty are just Orphaned.
https://en.bitcoin.it/wiki/Orphan_Block



I was Red Tagged because Lauda Blows Theymos to get back on DT
The rest are just lauda's personal butt monkeys=> Hhampuz , Vod, TMAN , achow101
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 02, 2018, 06:59:53 AM
 #9

all you have to do is Monitor your Debug Log, and it reports any reorgs,
Are you crazy? I do not spend my time watching log file 24/7

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
Zin-Zang
Member
**
Offline Offline

Activity: 364
Merit: 13

Killing Lightning Network with a 51% Ignore attack


View Profile
December 02, 2018, 07:06:33 AM
Last edit: December 02, 2018, 07:18:40 AM by Zin-Zang
 #10

all you have to do is Monitor your Debug Log, and it reports any reorgs,
Are you crazy? I do not spend my time watching log file 24/7

Open debug log and it show a history , you can search.

Any warning you build only monitoring your local node, will not know it is on an orphan chain , until it reorgs.

So exactly why do you think you need to monitor it 24x7 anyway?  Hmm?

 Cool

FYI:
If you are a decent programmer,
write a separate program to monitor the debug log for the word reorganize at a specified time interval ,
and have it pop up an alert or email or call you on the fucking telephone if that is your goal.  Cheesy


FYI2:
Only Way To know if you are on an orphan chain ,
you have to create a program that monitor multiple block explorers and constantly compares it to your node's blocks ,
and if the blocks don't match, you are running on an orphan chain.

I was Red Tagged because Lauda Blows Theymos to get back on DT
The rest are just lauda's personal butt monkeys=> Hhampuz , Vod, TMAN , achow101
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 02, 2018, 07:23:08 AM
 #11

If you are a decent programmer,
write a separate program to monitor the debug log for the word reorganize at a specified time interval ,
and have it pop up an alert or email or call you on the fucking telephone if that is your goal.  Cheesy
Why not to have this code in client?
I can implement changes in my sources (forked from master), but I am not too familar
with code to make this task perfect. Anyway, why not to talk about these changes in
this forum? I think this topic matches the "Development & Technical Discussion"

you have to create a program that monitor multiple block explorers and constantly compares it to your node's blocks ,
and if the blocks don't match, you running on an orphan chain.
Why on Earth should I use block-explorers if I have the full node?

Quote
So exactly why do you think you need to monitor it 24x7 anyway?  Hmm?
Very easy question.
I want to be notified ASAP in case of attack-51

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
Zin-Zang
Member
**
Offline Offline

Activity: 364
Merit: 13

Killing Lightning Network with a 51% Ignore attack


View Profile
December 02, 2018, 07:34:03 AM
Last edit: December 02, 2018, 07:57:34 AM by Zin-Zang
 #12

If you are a decent programmer,
write a separate program to monitor the debug log for the word reorganize at a specified time interval ,
and have it pop up an alert or email or call you on the fucking telephone if that is your goal.  Cheesy
Why not to have this code in client?
I can implement changes in my sources (forked from master), but I am not too familar
with code to make this task perfect. Anyway, why not to talk about these changes in
this forum? I think this topic matches the "Development & Technical Discussion"

Up to you where you place the code,  Smiley

you have to create a program that monitor multiple block explorers and constantly compares it to your node's blocks ,
and if the blocks don't match, you running on an orphan chain.
Why on Earth should I use block-explorers if I have the full node?

Because if your Local Node is on an orphan chain, your Local Node does not know it, until the Reorganize Happens.
The only way to know early is to compare your node blocks, with a block explorer, that way you know in ~real time.


So exactly why do you think you need to monitor it 24x7 anyway?  Hmm?
Very easy question.
I want to be notified ASAP in case of attack-51

I think you missed my earlier point , not all reorgs will be a 51% attack.
And it is doubtful core will add that to the client as it will just frighten newbies ,
that don't know the difference between a normal reorg which is no big deal from a 51% attack which is.

Chinese Miners have had the capability to 51% attack bitcoin for ~3 years now.
They don't do it for a very simple reason, it would make their bitcoins and millions dollars of investment into mining worthless overnight.
Oddly enough your bitcoins are safe from 51% attack because of the collusion of the Chinese mining majority which is over 51%.
BTC lost decentralization, but centralization collusion by the Chinese is protecting it from 51% attacks at the current time.


FYI: Other PoW Coins
51% Attack Double Spends normally target Exchanges
51% Attack blocking only new transactions from being entered into the blockchain ignore old transaction that already occurred.
Any successful 51% Attack wiping out a large part of the blockchain can be overturned ,(if the developers) release an updated program checkpoint and resyncing the blockchain up until the point where it was attacked.
The Danger is anything after the checkpoint is still fair game for a new attack and the damage to the public image of the coin.



I was Red Tagged because Lauda Blows Theymos to get back on DT
The rest are just lauda's personal butt monkeys=> Hhampuz , Vod, TMAN , achow101
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 02, 2018, 07:53:55 AM
 #13

Because if your Local Node is on an orphan chain, your Local Node does not know it, until the Reorganize Happens.
And I want to been notified this second. Point.

Quote
I think you missed my earlier point , not all reorgs will be a 51% attack.
I will be able to ignore "false positives" Smiley

Quote
And it is doubtful core will add that to the client as it will just frighten newbies ,
I suggest this optionaly.

Quote
They don't do it for a very simple reason, it would make their bitcoins and millions dollars of investment into mining worthless overnight.
I do not want to speculate about economical reasons here and with anyone. This is technical question.

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
Zin-Zang
Member
**
Offline Offline

Activity: 364
Merit: 13

Killing Lightning Network with a 51% Ignore attack


View Profile
December 02, 2018, 08:00:31 AM
 #14

Because if your Local Node is on an orphan chain, your Local Node does not know it, until the Reorganize Happens.
And I want to been notified this second. Point.

Quote
I think you missed my earlier point , not all reorgs will be a 51% attack.
I will be able to ignore "false positives" Smiley

Fair enough, then you need to devise a way to determine a normal reorganize from a 51% attack.
Hopefully someone has some insight on that to help you.

Later,
ZZ


I was Red Tagged because Lauda Blows Theymos to get back on DT
The rest are just lauda's personal butt monkeys=> Hhampuz , Vod, TMAN , achow101
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 02, 2018, 08:13:48 AM
 #15

Fair enough, then you need to devise a way to determine a normal reorganize from a 51% attack.
If there is a victim of it - the reorganization is attack. Point.
I also do not want to talk about terminology. I just propose an option, improvement.
Right now we just talking about do we need this functionality in reference client
If yes - then how to implement this better and simply.

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
Zin-Zang
Member
**
Offline Offline

Activity: 364
Merit: 13

Killing Lightning Network with a 51% Ignore attack


View Profile
December 02, 2018, 08:30:36 AM
Last edit: December 02, 2018, 08:41:13 AM by Zin-Zang
 #16

Fair enough, then you need to devise a way to determine a normal reorganize from a 51% attack.
If there is a victim of it - the reorganization is attack. Point.
I also do not want to talk about terminology. I just propose an option, improvement.
Right now we just talking about do we need this functionality in reference client
If yes - then how to implement this better and simply.


True , but most victims are discovered by the funds being missing in the exchange, usually after some complaints.
Many times in other coins that were double spend on, it was hours to weeks before they discovered the double spend.
In some cases the exchanges were hit with multiple double spends (days apart) before they noticed it.
I am unaware of any automated system that does the above in real time.

If there was an automated way to determine a 51% attack from a normal reorg,
I would think the exchanges would be implementing it as they are the main targets of 51% attacks,
but as many 51% attack that hit exchanges in other Coins , it is doubtful they can tell the difference until someone complains.




I was Red Tagged because Lauda Blows Theymos to get back on DT
The rest are just lauda's personal butt monkeys=> Hhampuz , Vod, TMAN , achow101
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 02, 2018, 08:37:24 AM
 #17

I am unaware of an automated system that does the above in real time.

Fuck. My English is poor, seems to me that you do not understand me at all.
I do not speculate about prices, exchanges, victims, miners, attackers and so on.

I want to have an option in my program. Point.
I also do not want to code it myself. I can do it, but I am lazy.
I think that not only me will switch this option on. Let us talk - how
would it better to implement it and should we ask developers (pull request)
to make the changes in next release.

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
Zin-Zang
Member
**
Offline Offline

Activity: 364
Merit: 13

Killing Lightning Network with a 51% Ignore attack


View Profile
December 02, 2018, 08:48:10 AM
 #18

I am unaware of an automated system that does the above in real time.

Fuck. My English is poor, seems to me that you do not understand me at all.
I do not speculate about prices, exchanges, victims, miners, attackers and so on.

I want to have an option in my program. Point.
I also do not want to code it myself. I can do it, but I am lazy.
I think that not only me will switch this option on. Let us talk - how
would it better to implement it and should we ask developers (pull request)
to make the changes in next release.


https://bitcoin.org/en/development#code-review

Quote
Development discussion takes place on GitHub and the bitcoin-dev mailing list.
Less formal development discussion happens on irc.freenode.net #bitcoin-core-dev (web interface, logs).

I say PM gmaxwell : https://bitcointalk.org/index.php?action=profile;u=11425

Later,
ZZ

I was Red Tagged because Lauda Blows Theymos to get back on DT
The rest are just lauda's personal butt monkeys=> Hhampuz , Vod, TMAN , achow101
aliashraf
Legendary
*
Offline Offline

Activity: 1456
Merit: 1174

Always remember the cause!


View Profile WWW
December 02, 2018, 01:34:11 PM
Last edit: December 02, 2018, 01:59:57 PM by aliashraf
 #19

OP!
Forget about this proposal, my advice.

Bitcoin doesn't support finality. It is what you want and a feature that bitcoin is known for NOT supporting it.  Your proposal about making it a command line option is void and dangerous and escalates network splits in legit chain re-write situations, like when a selfish miner with large hashpower exploits his longer chain temporarily but losses eventually after miners shuffle the lines by choosing faithfull pool operators that are resisting the attacker.

I think, proposing finality as a feature is not an action of good faith as it seems to be a backdoor to centralization especially when considering that it is mostly advocated by trojans in cryptocurrency ecosystem, people like Ethereum's Butterin.
amaclin1 (OP)
Sr. Member
****
Offline Offline

Activity: 784
Merit: 305


View Profile
December 02, 2018, 01:42:50 PM
 #20

Quote
Bitcoin doesn't support finality. It is what you want and a feature that bitcoin
is known for NOT supporting it.  Your proposal about making it a command line option
is void and dangerous and escalates network splits in legit chain re-write situations.
HAHAHAHAHAHA
This is only a warning message on the screen. How can it escalates anything?  Grin
Is my English so bad?  Shocked

OK, I will do it myself for my local client.

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!