bitcoinj/bitcoinj — pull request #87 by qertoip (2014-06-02 16:27:56+00:00)
Title: Fix for NetworkParameters construction thread safety. Resolves issue #549.

Breaks dependency cycle between Script.\, Script.\ and NetworkParamenters.\.

Script.\ depended on both Script.\ and NetworkParameters.\ to prepare ScriptChunk cache. At the same time NetworkParameters.\ depended on Script.\ by using Script.writeBytes().

The fix frees Script.\ from both the NetworkParameters and Script objects.

This hopefully removes the root cause behind NetworkParameters construction not being thread safe.