Created
December 29, 2017 22:09
-
-
Save azamsharp/8dabd9ac1e8ef9f332b3d80ca77f6816 to your computer and use it in GitHub Desktop.
registernode and getnodes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getNodes() -> [BlockchainNode] { | |
return self.blockchain.nodes | |
} | |
func registerNode(_ blockchainNode :BlockchainNode) { | |
self.blockchain.addNode(blockchainNode) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment