Version 0.3.11 with upgrade alerts

14 messages BitcoinTalk Satoshi Nakamoto, Jeff Garzik, BioMike, tcatm, pavelo, torservers, bitcoinex, Michael Marquardt August 27, 2010 — September 2, 2010
Satoshi Nakamoto August 27, 2010 21:54 UTC Source ·

Version 0.3.11 is now available.

Changes:

  • Some blk*.dat checking on load
  • Built the -4way code with -march=amdfam10, which makes it a little faster
  • Warning if your clock is too far off
  • Warnings/errors/alerts can also be seen in the getinfo command
  • Alert system

The alert system can display notifications on the status bar to alert you if you’re running a version that needs to be upgraded for an important security update.

In response to an alert, your node may also go into safe mode, which disables the following json-rpc commands (used by automated websites) to protect it from losing money until you get a chance to upgrade:  sendtoaddress  getbalance  getreceivedbyaddress  getreceivedbylabel  listreceivedbyaddress  listreceivedbylabel

If you decide it’s a false alarm and want to take your chances, you can use the switch -disablesafemode to re-enable them.

This is an important safety improvement.  For a large segment of possible problems, this can warn everyone immediately once a problem is discovered and prevent them from acting on bad information.

Nodes keep operating and do not stop generating in response to an alert, so old versions may still try to make a fork, but the alert system can make sure users are warned not to act on anything in the fork.

Download: http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.3.11/

Jeff Garzik (jgarzik) August 27, 2010 22:12 UTC Source ·

Good stuff. For those who haven’t been following other threads, I think it’s important to note that the alerts are only accepted if signed by a specific key (held by satoshi). Alerts cannot be generated by average nodes.

BioMike August 27, 2010 22:40 UTC Source ·
Quote from: satoshi on August 27, 2010, 12:54:12 PM UTC
  • Built with -march=amdfam10, which makes -4way slightly faster

Doesn’t -march break abi with older systems?

Jeff Garzik (jgarzik) August 27, 2010 23:35 UTC Source ·
Quote from: BioMike on August 27, 2010, 1:40:35 PM UTC
Quote from: satoshi on August 27, 2010, 12:54:12 PM UTC
  • Built with -march=amdfam10, which makes -4way slightly faster

Doesn’t -march break abi with older systems?

It’s quite possible. -mtune=XXXX may be preferred, because -march=XXXX means the compiler expects the binary will only be run on amdfam10.

tcatm August 28, 2010 00:33 UTC Source ·
Quote from: Jeff Garzik on August 27, 2010, 2:35:26 PM UTC

… -march=XXXX means the compiler expects the binary will only be run on amdfam10.

That’s exactly what we want. But I agree, it’s a dirty hack to use -march=amdfam10. In this case it’ll produce the most compact and efficient SSE2 code from the source. A cleaner alternative would be inline assembler.

pavelo August 28, 2010 07:36 UTC Source ·

iirc, it is possible to specify -march on a per-function basis using some gcc attribute. That way, only the function in question would be optimized, and if the user doesn’t specify -4way, everything else should be ok.

BioMike August 28, 2010 08:24 UTC Source ·
Quote from: tcatm on August 27, 2010, 3:33:35 PM UTC
Quote from: Jeff Garzik on August 27, 2010, 2:35:26 PM UTC

… -march=XXXX means the compiler expects the binary will only be run on amdfam10.

That’s exactly what we want. But I agree, it’s a dirty hack to use -march=amdfam10. In this case it’ll produce the most compact and efficient SSE2 code from the source. A cleaner alternative would be inline assembler.

So, what CPU’s support this? Is this only the newest AMD ones? And how many systems are we excluding because of this?

tcatm August 28, 2010 10:12 UTC Source ·
Quote from: BioMike on August 27, 2010, 11:24:05 PM UTC

So, what CPU’s support this? Is this only the newest AMD ones? And how many systems are we excluding because of this?

Phenoms, i5 and i7 from what I know. Those are the only CPUs that have a 128 bit SSE2 instruction decoder and benefit at all, every older CPU will be slower. Don’t think about it as “only works on AMDs K10” but rather as “tweak the compiler to produce the exact assembly code we want and still be flexible to support other vector engines in the future”.

BioMike August 28, 2010 10:48 UTC Source ·
Quote from: tcatm on August 28, 2010, 1:12:18 AM UTC
Quote from: BioMike on August 27, 2010, 11:24:05 PM UTC

So, what CPU’s support this? Is this only the newest AMD ones? And how many systems are we excluding because of this?

Phenoms, i5 and i7 from what I know. Those are the only CPUs that have a 128 bit SSE2 instruction decoder and benefit at all, every older CPU will be slower. Don’t think about it as “only works on AMDs K10” but rather as “tweak the compiler to produce the exact assembly code we want and still be flexible to support other vector engines in the future”.

Ah. Ok. Thank you for the info.

torservers August 28, 2010 13:00 UTC Source ·

The “About” dialog still shows 0.3.10.1 beta.

Satoshi Nakamoto August 28, 2010 14:54 UTC Source ·
Quote from: torservers on August 28, 2010, 4:00:37 AM UTC

The “About” dialog still shows 0.3.10.1 beta.

What OS?  I ran the Windows and 64-bit Linux version and checked the about dialog.

The Mac version is still 0.3.10.1.

Quote from: pavelo on August 27, 2010, 10:36:07 PM UTC

iirc, it is possible to specify -march on a per-function basis using some gcc attribute. That way, only the function in question would be optimized, and if the user doesn’t specify -4way, everything else should be ok.

I updated the first post to be more specific.  Only the -4way code is compiled this way.

torservers August 29, 2010 21:22 UTC Source ·
Quote from: satoshi on August 28, 2010, 2:54:04 PM UTC
Quote from: torservers on August 28, 2010, 1:00:37 PM UTC

The “About” dialog still shows 0.3.10.1 beta.

What OS? I ran the Windows and 64-bit Linux version and checked the about dialog.

Nevermind. All good. 🙄

bitcoinex September 2, 2010 01:59 UTC Source ·
Quote from: Jeff Garzik on August 27, 2010, 10:12:06 PM UTC

Good stuff. For those who haven’t been following other threads, I think it’s important to note that the alerts are only accepted if signed by a specific key (held by satoshi). Alerts cannot be generated by average nodes.

I am concerned about the future, when will be a few bitcoin clients: messages will be sent/received in the network of various clients with various authors public keys? Or is it a temporary solution?

How this is technically implemented now?

theymos September 2, 2010 02:43 UTC Source ·

Alerts are broadcast in the same way as transactions. Each node, upon accepting the alert, sends the alert to all of its peers.

Bitcoin won’t relay alerts that are signed with a different key. Propagation might not be very good for any client if different alert keys start being used.