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.
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,
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.