Guest User

Untitled

a guest
Oct 18th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. contract PermissionedNetworks {
  2. //Track nodes and their particular network state (their network permission).
  3. mapping(uint8 => mapping(bytes32 => bool)) public networkNodes;
  4.  
  5. //Add a node to a particular network partition/zone.
  6. function addNodeToPermissionedNetwork(bytes32 _nodeID, uint8 _networkID, bool _nodeState) public {
  7. networkNodes[_networkID][_nodeID] = networkNodes[_networkID][_nodeID] = _nodeState;
  8. }
  9. }
Add Comment
Please, Sign In to add comment