Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created December 29, 2017 22:09
Show Gist options
  • Save azamsharp/8dabd9ac1e8ef9f332b3d80ca77f6816 to your computer and use it in GitHub Desktop.
Save azamsharp/8dabd9ac1e8ef9f332b3d80ca77f6816 to your computer and use it in GitHub Desktop.
registernode and getnodes
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