Make wallets autosave every 200msec instead of every second. Also, save immediately upon creation of a fresh wallet in case the app doesn't sync to the network for some reason.
Payment protocol: add PaymentSession.getNetworkParameters method.
PaymentSession: Expose params and throw if transactions don't match requested params.

Resolves issue 551.
WalletFiles: don't delete temp file if rename failed. It might be the only copy of the wallet we have! Only really should affect Windows.
Correct the default thread used by AbstractBlockChain.addListener()
Refactor bloom filter calculations out of PeerGroup into a separate FilterMerger class.
Require PeerFilterProviders to expose a lock, and use them to avoid a race that occurs during Bloom filter construction.

It's possible in some uses to cause the Wallet to create two batches of keys one after the other, but independently such that the second batch of keys is derived (with HDWs) whilst the filter is being recalculated from the first. This in turn could race with filter calculation and cause asserts or miscalculated filters.
Update script JSON files with latest changes from Peter Todd.
Tighten scope of the FileInputStream in WalletAppKit to avoid lock collisions on Windows. Resolves issue 556.
BloomFilter: set a lower bound on nHashFuncs of 1: there must always be at least one function. Thanks to Kalpesh Parmar for debugging this.

Static import Math for shorter more readable code.
Fixed comment for Wallet.sendCoins regarding MIN_NONDUST_OUTPUT.
Add Addy's main net DNS seed and remove Matt's testnet seed as it doesn't work properly.
Reformat log messages in DnsDiscovery and add one log message for the success case, to make more clear what's going on.

Also, rename hostNames to dnsSeeds as this name is more speaking for itself, and is used in other places as well.
Correctness fix: compare nBits directly not in BigInteger form as nBits has multiple non-canonical encodings.
Wallet: keep risk dropped txns around in RAM and don't miss them when a Bloom filtered block includes them. Resolves issue 545.
Don't crash if there's no logging handler installed.
Fixed type references in javadoc to avoid IntelliJ error reports on rebuild.
renaming to nonexisting file on Windows

The method fails in case the file does not exists before renaming. canonical.delete() returns false in that case and the method throws an exception.