Why does bitcoin makes use of INIT_PROTO_VERSION (209) for addrme and addryou within the Model Message

0
48


Why does Bitcoin use INIT_PROTO_VERSION (209) within the addrme and addryou message of the Model Message? Why is it not utilizing the nodes protocolVersion which had been marketed in the identical Message.

That is half why the nTime from the node within the Model Message can be ignored

Code used for Debug in protocol.h

   SERIALIZE_METHODS(CAddress, obj)
    {
        SER_READ(obj, obj.nTime = TIME_INIT);
        int nVersion = s.GetVersion();
        if (s.GetType() & SER_DISK) {
            printf("nVersion %dn", nVersion);
            READWRITE(nVersion);
        } else {
            printf("Not evaluated nVersion %d Sort %dn", nVersion, s.GetType());
        }
        if ((s.GetType() & SER_DISK) ||
            (nVersion >= CADDR_TIME_VERSION && !(s.GetType() & SER_GETHASH))) {
            READWRITE(obj.nTime);
            printf("nTime %dn", obj.nTime);
        } else {
            printf("Not evaluated nTime %dn", obj.nTime);
        }
        READWRITE(Utilizing<CustomUintFormatter<8>>(obj.nServices));
        printf("nServicesInt %dn", obj.nServices);
        READWRITEAS(CService, obj);
    }

See under the Output

BTC’s

Obtain addrMe
Not evaluated nVersion 209 Sort 1
Not evaluated nTime 100000000
nServicesInt 0
Obtain addrFrom
Not evaluated nVersion 209 Sort 1
Not evaluated nTime 100000000
nServicesInt 1033
2020-07-07T01:35:08Z New outbound peer linked: model: 70015, blocks=638069, peer=1 (full-relay)

Is that this a needed conduct?



Supply hyperlink

Leave a reply