Change node.lastId to node.LastAcceptedId.
Only learners and acceptors keep logs.