Cool! Does it have to be a public node to be a part of your lottery?
I get nodes with getPeers&active=true request, I believe it means they have to also be public nodes.
i saw in the nxtportal nodes page a lot of outdated versoins running in a lot nodes... will be excluded from the lottery ?
Outdated versions (< 1.7) are automatically blacklisted by NRS so they shouldn't have active=true status but I'll verify again.
can you also extract account from hallmark if myPlatform is not set but hallmarked?
With api this should be simple: https://localhost:7876/test?requestType=decodeHallmark
and if you do both hallmarked node already have better (maybe twice) as much probability, because they have either 2 accounts or the same account twice in the lottery?
Yes I can extract accounts from hallmarks but don't know if I should. Hallmarked nodes receive NSC coin rewards.
There are several possibilities:
1) to only check myPlatform setting as it is now;
2) combine myPlatform and hallmark to give nodes hallmarked and myPlatformed with the same NXT account double odds to win.
3) check myPlatform and hallmark and if hallmark account is present in myPlatforms list, give it a small weight-adjusted bonus on top of the normal lottery reward for the effort.
PS: some nodes that have added NXT address to myPlatform
are not available, even though they have an open port, because "Maximum number of inbound connections exceeded". They should increase the setting nxt.maxNumberOfInboundConnections
to be able to participate.