mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 17:26:28 +01:00
PeerGroup: create a context as a convenience for apps that mainly operate on a PeerGroup
This commit is contained in:
parent
02aa41e254
commit
03687a807e
1 changed files with 1 additions and 0 deletions
|
@ -352,6 +352,7 @@ public class PeerGroup implements TransactionBroadcaster {
|
|||
*/
|
||||
protected PeerGroup(NetworkParameters params, @Nullable AbstractBlockChain chain, ClientConnectionManager connectionManager) {
|
||||
checkNotNull(params);
|
||||
Context.getOrCreate(); // create a context for convenience
|
||||
this.params = params;
|
||||
this.chain = chain;
|
||||
fastCatchupTimeSecs = params.getGenesisBlock().getTimeSeconds();
|
||||
|
|
Loading…
Add table
Reference in a new issue