Definition of longest chain

Hi all! As far as I'm aware, when a block reorg happens on bitcoin, the software follows the chain with the most chainwork by default. NOT the chain with the greatest height.

Can anyone confirm this is correct?

When was this change made in the software? Is there a BIP you can point me to?

Much appreciated!

submitted by /u/AAdamsDL to r/btc
[link] [comments]
Quelle: bitcoin-en