Example #1
0
void Codec12::readNewTopologyIfPresent(
    Transport& transport, const HeaderParams& params) const
{
    uint8_t topologyChangeByte = transport.readByte();
    if (topologyChangeByte == 1)
        readNewTopologyAndHash(transport, params.topologyId);
}
Example #2
0
void Codec20::readNewTopologyIfPresent(
    Transport& transport, HeaderParams& params) const
{
    uint8_t topologyChangeByte = transport.readByte();
    if (topologyChangeByte == 1)
    {
    	TRACE("Topology has changes");
        readNewTopologyAndHash(transport, params);
    }
    else
    {
    	TRACE("No topology changes");
    }
}