retrieve_peer_state
current_peer.state = retrieve_peer_state($2, global_state.proto);
static uint8_t retrieve_peer_state(const char*, int);