Confusion with Permissions

+1 vote


Using listpermission mine on any of the nodes gives me the nodeA (first node) address only. However during setup, I set "anyone-can-mine" to true and also observed from looking at the blocks that all nodes are actually participating in the mining. The listpermission mine result is confusing.

P.S I have noticed similar confusions with the other permissions. Although this is not really a problem for me, but I am wondering if there is an explanation or am I missing the meaning of the permissions?



asked Jan 22, 2017 by Rosevelt

1 Answer

0 votes

The listpermissions API only shows addresses that have been explicitly granted permissions. It doesn't show all addresses in the event that one of the anyone-can-* settings is true in the blockchain parameters. Not least, because there's no way for one node to know all the other addresses belonging to other nodes, until they've used them in transactions. We'll make this clearer in the online documentation now.

answered Jan 23, 2017 by MultiChain