Generate a sync message to send to the peer represented by inState
Returns
An array of [newSyncState, syncMessage | null] where
newSyncState should replace inState and syncMessage should be sent to
the peer if it is not null. If syncMessage is null then we are up to date.
Generate a sync message to send to the peer represented by
inState
Returns
An array of
[newSyncState, syncMessage | null]
wherenewSyncState
should replaceinState
andsyncMessage
should be sent to the peer if it is not null. IfsyncMessage
is null then we are up to date.