Skip to content

Commit

Permalink
Make Node init public
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Nevstad committed May 16, 2019
1 parent 7cc8c76 commit 84b4f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BlockchainSwift/Network/Node.swift
Expand Up @@ -69,7 +69,7 @@ public class Node {
/// Create a new Node
/// - Parameter address: This Node's address
/// - Parameter wallet: This Node's wallet, created if nil
init(type: NodeType = .peer, blockchain: Blockchain? = nil, mempool: [Transaction]? = nil) {
public init(type: NodeType = .peer, blockchain: Blockchain? = nil, mempool: [Transaction]? = nil) {
self.type = type
self.blockchain = blockchain ?? Blockchain()
self.mempool = mempool ?? [Transaction]()
Expand Down

0 comments on commit 84b4f02

Please sign in to comment.