Use `id_from_pubkeys()` in `blocks` and `net` commands

Use id_from_pubkeys() in blocks and net commands.

This function will most likely become useless when migrating to GVA usage.

Edited by Moul