consumePeerRecord abstract method
ConsumePeerRecord stores a signed peer record and the contained addresses for ttl duration. The addresses contained in the signed peer record will expire after ttl. If any address is already present in the peer store, it'll expire at max of existing ttl and provided ttl. The signed peer record itself will be expired when all the addresses associated with the peer, self-certified or not, are removed from the AddrBook.
To delete the signed peer record, use AddrBook.updateAddrs,AddrBook.setAddrs, or
AddrBook.clearAddrs with ttl 0.
Note: Future calls to ConsumePeerRecord will not expire self-certified addresses from the
previous calls.
The accepted return value indicates that the record was successfully processed. If
accepted is false but no error is returned, it means that the record was ignored, most
likely because a newer record exists for the same peer with a greater seq value.
The Envelopes containing the signed peer records can be retrieved by calling getPeerRecord(peerId).
Implementation
Future<bool> consumePeerRecord(Envelope s, Duration ttl);